Main MRPT website > C++ reference
MRPT logo

mrpt::math::CArrayNumeric< T, N > Class Template Reference

A CArrayPOD for numeric types, supporting several mathematical operations. More...

#include <mrpt/math/CArray.h>

Inheritance diagram for mrpt::math::CArrayNumeric< T, N >:
Inheritance graph
[legend]
Collaboration diagram for mrpt::math::CArrayNumeric< T, N >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef CArrayNumeric< T, N > mrpt_autotype

Public Member Functions

DECLARE_MRPT_CONTAINER_TYPES CArrayNumeric ()
 Default constructor.
 CArrayNumeric (const T *ptr)
 Constructor from initial values ptr[0]-ptr[N-1].
template<class ARRAYLIKE >
 CArrayNumeric (const ARRAYLIKE &obj)
 Initialization from a vector-like source, that is, anything implementing operator[].
CArrayNumeric< T, N > & operator+= (const CArrayNumeric< T, N > &o)
 Add: this+=other.
CArrayNumeric< T, N > & operator-= (const CArrayNumeric< T, N > &o)
 Substract: this-=other.

Detailed Description

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

A CArrayPOD for numeric types, supporting several mathematical operations.

See also:
CArrayFloat, CArrayDouble, CArrayInt, CArrayPOD, CArray

Definition at line 345 of file CArray.h.


Member Typedef Documentation

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

Definition at line 349 of file CArray.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 354 of file CArray.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 356 of file CArray.h.

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

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

Definition at line 360 of file CArray.h.


Member Function Documentation

template<typename T, std::size_t N>
CArrayNumeric<T,N>& mrpt::math::CArrayNumeric< T, N >::operator+= ( const CArrayNumeric< T, N > &  o  )  [inline]

Add: this+=other.

Definition at line 363 of file CArray.h.

template<typename T, std::size_t N>
CArrayNumeric<T,N>& mrpt::math::CArrayNumeric< T, N >::operator-= ( const CArrayNumeric< T, N > &  o  )  [inline]

Substract: this-=other.

Definition at line 369 of file CArray.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010