MRPT logo
Public Types

mrpt::math::detail::TArrayOrVectorRowCountOfType< T, NR1 > Struct Template Reference

TArrayOrVectorRowCountOfType: Metaprogramming helper to create a CArray or a std::vector<> with its size to the number of rows of a matrix, in compile time. More...

#include <mrpt/math/matrices_metaprogramming.h>

List of all members.

Public Types

typedef CArrayNumeric< T, NR1 > vec_type

Detailed Description

template<typename T, size_t NR1>
struct mrpt::math::detail::TArrayOrVectorRowCountOfType< T, NR1 >

TArrayOrVectorRowCountOfType: Metaprogramming helper to create a CArray or a std::vector<> with its size to the number of rows of a matrix, in compile time.

This assume usage of DECLARE_MRPT_CONTAINER, etc. Example of usage with the helper macro ARRAY_TYPE_SAMESIZE_ROWS_OF():

   void f(MAT1 m1) {
        ARRAY_TYPE_SAMESIZE_ROWS_OF(MAT1) res = ...
        ...

Definition at line 184 of file matrices_metaprogramming.h.


Member Typedef Documentation

template<typename T , size_t NR1>
typedef CArrayNumeric<T,NR1> mrpt::math::detail::TArrayOrVectorRowCountOfType< T, NR1 >::vec_type

Definition at line 186 of file matrices_metaprogramming.h.




Page generated by Doxygen 1.7.1 for MRPT 0.8.1 SVN:exported at Sun Sep 19 14:53:45 UTC 2010