MCL
A C++ library mirroring some of the most common Matlab functions.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Namespaces | Functions
pointwiseop.h File Reference
#include <cassert>
#include "mcltypes.h"
#include <vector>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  mcl
 

Functions

template<class T >
std::vector< T > mcl::Add (const std::vector< T > &vector_a, const std::vector< T > &vector_b) noexcept
 
void mcl::Add (const Real *input_data_a, const Real *input_data_b, Int num_samples, Real *output_data) noexcept
 
template<>
std::vector< Real > mcl::Add (const std::vector< Real > &vector_a, const std::vector< Real > &vector_b) noexcept
 
template<class T >
std::vector< T > mcl::Opposite (const std::vector< T > &vector) noexcept
 
std::vector< Real > mcl::Inverse (const std::vector< Real > &vector) noexcept
 
template<class T >
std::vector< T > mcl::Subtract (const std::vector< T > &vector_a, const std::vector< T > &vector_b) noexcept
 
template<class T >
std::vector< T > mcl::Multiply (const std::vector< T > &vector_a, const std::vector< T > &vector_b) noexcept
 
void mcl::Multiply (const Real *input_data_a, const Real *input_data_b, Int num_samples, Real *output_data) noexcept
 
template<>
std::vector< Real > mcl::Multiply (const std::vector< Real > &vector_a, const std::vector< Real > &vector_b) noexcept
 
template<class T >
std::vector< T > mcl::Divide (const std::vector< T > &vector_a, const std::vector< T > &vector_b) noexcept
 
template<class T >
std::vector< T > mcl::Exp (const std::vector< T > &vector) noexcept
 
std::vector< Complex > mcl::Conj (const std::vector< Complex > &vector) noexcept
 
std::vector< Complex > mcl::ComplexVector (const std::vector< Real > &input) noexcept
 
std::vector< Real > mcl::RealPart (const std::vector< Complex > &input) noexcept
 
std::vector< Real > mcl::Imag (const std::vector< Complex > &input) noexcept
 
std::vector< Real > mcl::Pow (const std::vector< Real > &vector, Real exponent) noexcept
 
std::vector< Real > mcl::Abs (const std::vector< Real > &input) noexcept
 
std::vector< Real > mcl::Abs (const std::vector< Complex > &input) noexcept
 
std::vector< Real > mcl::HalfWave (const std::vector< Real > &vector) noexcept
 
std::vector< Real > mcl::Cos (const std::vector< Real > &vector) noexcept
 
std::vector< Real > mcl::Sin (const std::vector< Real > &vector) noexcept
 
std::vector< Real > mcl::Log (const std::vector< Real > &vector) noexcept
 
std::vector< Real > mcl::Log10 (const std::vector< Real > &vector) noexcept
 
std::vector< Int > mcl::ConvertToInt (const std::vector< UInt > &vector) noexcept
 
bool mcl::PointWiseOpTest ()