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

Compile time check for columns. More...

#include <IsColumn.h>

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

Detailed Description

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

Compile time check for columns.

This type trait tests whether or not the given template parameter is a column (i.e. dense or sparse column). In case the type is a column, 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 ColumnType1 = decltype( blaze::column<4UL>( A ) );
using ColumnType2 = decltype( blaze::column( B, 16UL ) );
using ColumnType3 = decltype( blaze::column( C, 17UL ) );
blaze::IsColumn< volatile ColumnType3 > // Is derived from TrueType
blaze::IsColumn< 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) column(Matrix< MT, SO > &matrix, RCAs... args)
Creating a view on a specific column of the given matrix.
Definition Column.h:137
@ aligned
Flag for aligned vectors and matrices.
Definition AlignmentFlag.h:65
Compile time check for columns.
Definition IsColumn.h:91

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