Blaze 3.9
blaze::IsMatrix< T > Struct Template Reference

Compile time check for matrix types. More...

#include <IsMatrix.h>

Inherits decltype isMatrix_backend std::declval< T * >.

Detailed Description

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

Compile time check for matrix types.

This type trait tests whether or not the given template parameter is a dense or sparse matrix type (i.e. whether T is derived from the Matrix base class). In case the type is a matrix type, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise yes is set to false, Type is FalseType, and the class derives from FalseType.

using namespace blaze;
IsMatrix< StaticMatrix<float,3U,3U> >::value // Evaluates to 1
IsMatrix< const DynamicMatrix<double> >::Type // Results in TrueType
IsMatrix< volatile CompressedMatrix<int> > // Is derived from TrueType
IsMatrix< StaticVector<float,3U> >::value // Evaluates to 0
IsMatrix< const DynamicVector<double> >::Type // Results in FalseType
IsMatrix< volatile CompressedVector<int> > // Is derived from FalseType

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