blaze::Columns< T > Struct Template Reference

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

#include <Columns.h>

Inherits blaze::PtrdiffT<-1L >.

Detailed Description

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

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

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

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

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