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

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.

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

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

Default constructor.

Definition at line 33 of file CArrayNumeric.h.

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.

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

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.6 for MRPT 1.9.9 Git: 6d99412 Sat Nov 18 10:43:44 2017 +0100 at sáb nov 18 10:50:13 CET 2017