All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 0. More...

#include <Columns.h>

Inherits blaze::SizeT< 0UL >.

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 0.

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

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