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

Compile time check for sparse vector types. More...

#include <IsSparseVector.h>

Detailed Description

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

Compile time check for sparse vector types.

This type trait tests whether or not the given template parameter is a sparse vector type (i.e. whether T is derived from the SparseVector base class). In case the type is a sparse vector 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.

using namespace blaze;
IsSparseVector< CompressedVector<double> >::value // Evaluates to 1
IsSparseVector< DynamicVector<double> >::value // Evaluates to 0
IsSparseVector< CompressedMatrix<double> > // Is derived from FalseType
Compile time check for sparse vector types.
Definition IsSparseVector.h:93

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