Main MRPT website > C++ reference
MRPT logo

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

TMatrixSameSizeOfType: Metaprogramming helper to create a matrix of the same size that another type, in compile time. More...

#include <mrpt/math/matrices_metaprogramming.h>

List of all members.

Public Types

typedef CMatrixFixedNumeric< T,
NR1, NC1 > 
mat_type

Detailed Description

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

TMatrixSameSizeOfType: Metaprogramming helper to create a matrix of the same size that another type, in compile time.

This assume usage of DECLARE_MRPT_CONTAINER_IS_MATRIX and DECLARE_MRPT_CONTAINER_IS_MATRIX_FIXED. Example of usage with the helper macro MAT_TYPE_SAMESIZE_OF():

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

Definition at line 225 of file matrices_metaprogramming.h.


Member Typedef Documentation

template<typename T , size_t NR1, size_t NC1>
typedef CMatrixFixedNumeric<T,NR1,NC1> mrpt::math::detail::TMatrixSameSizeOfType< T, NR1, NC1 >::mat_type

Definition at line 227 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