Blaze 3.9
Loading...
Searching...
No Matches
blaze::IsZero< T > Struct Template Reference

Compile time check for zero vectors or matrices. More...

#include <IsZero.h>

Inherits IsZeroHelper< T >.

Detailed Description

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

Compile time check for zero vectors or matrices.

This type trait tests whether or not the given template parameter is a zero vector or matrix type (i.e. a vector or matrix type that is guaranteed to be zero at compile time). In case the type is a zero vector or matrix type, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.

blaze::IsZero< ZeroVector<int> >::value // Evaluates to 1
blaze::IsZero< volatile ZeroMatrix<double> > // Is derived from TrueType
blaze::IsZero< DynamicMatrix<int> >::value // Evaluates to 0
blaze::IsZero< volatile CompressedMatrix<int> > // Is derived from FalseType
Matrix adapter for diagonal matrices.
Definition BaseTemplate.h:565
Compile time check for zero vectors or matrices.
Definition IsZero.h:109

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