Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions
mrpt::math::CArrayNumeric< T, N > Class Template Reference

Detailed Description

template<typename T, std::size_t N>
class mrpt::math::CArrayNumeric< T, N >

CArrayNumeric is an array for numeric types supporting several mathematical operations (actually, just a wrapper on Eigen::Matrix<T,N,1>)

See also
CArrayFloat, CArrayDouble, CArray

Definition at line 26 of file CArrayNumeric.h.

#include <mrpt/math/CArrayNumeric.h>

Inheritance diagram for mrpt::math::CArrayNumeric< T, N >:
Inheritance graph

Public Types

typedef T value_type
 
typedef Eigen::Matrix< T, N, 1 > Base
 

Public Member Functions

 CArrayNumeric ()
 Default constructor. More...
 
 CArrayNumeric (const T *ptr)
 Constructor from initial values ptr[0]-ptr[N-1]. More...
 
template<class ARRAYLIKE >
 CArrayNumeric (const ARRAYLIKE &obj)
 Initialization from a vector-like source, that is, anything implementing operator[]. More...
 
template<typename OtherDerived >
CArrayNumeric< T, N > & operator= (const Eigen::MatrixBase< OtherDerived > &other)
 

Member Typedef Documentation

◆ Base

template<typename T, std::size_t N>
typedef Eigen::Matrix<T, N, 1> mrpt::math::CArrayNumeric< T, N >::Base

Definition at line 30 of file CArrayNumeric.h.

◆ value_type

template<typename T, std::size_t N>
typedef T mrpt::math::CArrayNumeric< T, N >::value_type

Definition at line 29 of file CArrayNumeric.h.

Constructor & Destructor Documentation

◆ CArrayNumeric() [1/3]

template<typename T, std::size_t N>
mrpt::math::CArrayNumeric< T, N >::CArrayNumeric ( )
inline

Default constructor.

Definition at line 33 of file CArrayNumeric.h.

◆ CArrayNumeric() [2/3]

template<typename T, std::size_t N>
mrpt::math::CArrayNumeric< T, N >::CArrayNumeric ( const T *  ptr)
inline

Constructor from initial values ptr[0]-ptr[N-1].

Definition at line 35 of file CArrayNumeric.h.

◆ CArrayNumeric() [3/3]

template<typename T, std::size_t N>
template<class ARRAYLIKE >
mrpt::math::CArrayNumeric< T, N >::CArrayNumeric ( const ARRAYLIKE &  obj)
inlineexplicit

Initialization from a vector-like source, that is, anything implementing operator[].

Definition at line 41 of file CArrayNumeric.h.

Member Function Documentation

◆ operator=()

template<typename T, std::size_t N>
template<typename OtherDerived >
CArrayNumeric<T, N>& mrpt::math::CArrayNumeric< T, N >::operator= ( const Eigen::MatrixBase< OtherDerived > &  other)
inline

Definition at line 46 of file CArrayNumeric.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019