MRPT logo
Public Types

mrpt::math::detail::TMatrixProductType< T, NR1, NC1, NR2, NC2 > Struct Template Reference

TMatrixProductType: Metaprogramming helper to determine the type of the product of two matrices, in compile time. More...

#include <mrpt/math/matrices_metaprogramming.h>

List of all members.

Public Types

typedef CMatrixFixedNumeric< T,
NR1, NC2 > 
mat_type

Detailed Description

template<typename T, size_t NR1, size_t NC1, size_t NR2, size_t NC2>
struct mrpt::math::detail::TMatrixProductType< T, NR1, NC1, NR2, NC2 >

TMatrixProductType: Metaprogramming helper to determine the type of the product of two matrices, in compile time.

This assume usage ofDECLARE_MRPT_CONTAINER_IS_MATRIX and DECLARE_MRPT_CONTAINER_IS_MATRIX_FIXED Example of usage with the helper macro MAT_TYPE_PRODUCT_OF():

   void f(MAT1 m1,MAT2 m2) {
        MAT_TYPE_PRODUCT_OF(MAT1,MAT2) res;
        res = m1*m2;
        ...

Definition at line 49 of file matrices_metaprogramming.h.


Member Typedef Documentation

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

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