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

Compile time check for bands. More...

#include <IsBand.h>

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

Detailed Description

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

Compile time check for bands.

This type trait tests whether or not the given template parameter is a band (i.e. dense or sparse band). In case the type is a band, 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 MatrixType2 = blaze::DynamicMatrix<double>;
using MatrixType3 = blaze::CompressedMatrix<float>;
MatrixType1 A;
MatrixType2 B( 100UL, 200UL );
MatrixType3 C( 200UL, 250UL );
using BandType1 = decltype( blaze::band<0L>( A ) );
using BandType2 = decltype( blaze::band( B, 2L ) );
using BandType3 = decltype( blaze::band( C, -4L ) );
blaze::IsBand< volatile BandType3 > // Is derived from TrueType
blaze::IsBand< volatile MatrixType3 > // Is derived from FalseType
Efficient implementation of a compressed matrix.
Definition CompressedMatrix.h:239
Efficient implementation of a dynamic matrix.
Definition DynamicMatrix.h:242
Efficient implementation of a fixed-sized matrix.
Definition StaticMatrix.h:249
decltype(auto) band(Matrix< MT, SO > &matrix, RBAs... args)
Creating a view on a specific band of the given matrix.
Definition Band.h:140
@ aligned
Flag for aligned vectors and matrices.
Definition AlignmentFlag.h:65
Compile time check for bands.
Definition IsBand.h:92

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