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

Compile time check for adaptors. More...

#include <IsAdaptor.h>

Inherits blaze::IntegralConstant< bool, B >< false >.

Detailed Description

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

Compile time check for adaptors.

This type trait tests whether the given template parameter is an adaptor type (for instance LowerMatrix, UpperMatrix, or SymmetricMatrix). In case the type is an adaptor 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. The following example demonstrates this by means of the mentioned matrix adaptors:

using DynamicMatrixType = blaze::DynamicMatrix<float,rowMajor>;
using CompressedMatrixType = blaze::CompressedMatrix<int,rowMajor>;
using LowerStaticType = blaze::LowerMatrix<StaticMatrixType>;
using UpperDynamicType = blaze::UpperMatrix<DynamicMatrixType>;
using SymmetricCompressedType = blaze::SymmetricMatrix<CompressedMatrixType>;
Efficient implementation of a compressed matrix.
Definition CompressedMatrix.h:239
Efficient implementation of a dynamic matrix.
Definition DynamicMatrix.h:242
Matrix adapter for lower triangular matrices.
Definition BaseTemplate.h:558
Efficient implementation of a fixed-sized matrix.
Definition StaticMatrix.h:249
Matrix adapter for symmetric matrices.
Definition BaseTemplate.h:614
Matrix adapter for upper triangular matrices.
Definition BaseTemplate.h:558
constexpr bool rowMajor
Storage order flag for row-major matrices.
Definition StorageOrder.h:71
Compile time check for adaptors.
Definition IsAdaptor.h:89

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