Main MRPT website > C++ reference
MRPT logo

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 263 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 265 of file matrices_metaprogramming.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