blaze::Rows< T > Struct Template Reference

Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of rows of the given matrix type at compile time. In case the given type T is a matrix type with a fixed number of rows (e.g. StaticMatrix), the value member constant is set to the according number of rows. In all other cases, value is set to -1. More...

#include <Rows.h>

Inherits blaze::PtrdiffT<-1L >.

Detailed Description

template<typename T>
struct blaze::Rows< T >

Compile time evaluation of the number of rows of a matrix.

The Rows type trait evaluates the number of rows of the given matrix type at compile time. In case the given type T is a matrix type with a fixed number of rows (e.g. StaticMatrix), the value member constant is set to the according number of rows. In all other cases, value is set to -1.

blaze::Rows< StaticMatrix<int,3UL,2UL> >::value // Evaluates to 3
blaze::Rows< HybridMatrix<int,3UL,2UL> >::value // Evaluates to -1; Only maximum number of rows is fixed!
blaze::Rows< DynamicMatrix<int> >::value // Evaluates to -1; Number of rows not fixed at compile time!
blaze::Rows< int >::value // Evaluates to -1

The documentation for this struct was generated from the following file: