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

Compile time check for submatrices. More...

#include <IsSubmatrix.h>

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

Detailed Description

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

Compile time check for submatrices.

This type trait tests whether or not the given template parameter is a submatrix (i.e. a view on the part of a dense or sparse matrix). In case the type is a submatrix, 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 SubmatrixType1 = decltype( blaze::submatrix<2UL,2UL,4UL,8UL>( A ) );
using SubmatrixType2 = decltype( blaze::submatrix<aligned>( B, 8UL, 8UL, 24UL, 32UL ) );
using SubmatrixType3 = decltype( blaze::submatrix( C, 5UL, 7UL, 13UL, 17UL ) );
blaze::IsSubmatrix< 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
@ aligned
Flag for aligned vectors and matrices.
Definition AlignmentFlag.h:65
decltype(auto) submatrix(Matrix< MT, SO > &, RSAs...)
Creating a view on a specific submatrix of the given matrix.
Definition Submatrix.h:181
Compile time check for submatrices.
Definition IsSubmatrix.h:91

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