Main MRPT website > C++ reference for MRPT 1.5.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 25 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 29 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 28 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 31 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 33 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 39 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 42 of file CArrayNumeric.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020