Blaze  3.6
blaze::IsRow< T > Struct Template Reference

Compile time check for rows.This type trait tests whether or not the given template parameter is a row (i.e. a view on a row of a dense or sparse matrix). In case the type is a row, 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. More...

#include <IsRow.h>

Inherits blaze::IntegralConstant< T, N >.

Detailed Description

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

Compile time check for rows.

This type trait tests whether or not the given template parameter is a row (i.e. a view on a row of a dense or sparse matrix). In case the type is a row, 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 RowType1 = decltype( blaze::row<4UL>( A ) );
using RowType2 = decltype( blaze::row( B, 16UL ) );
using RowType3 = decltype( blaze::row( C, 17UL ) );
blaze::IsRow< volatile RowType3 > // Is derived from TrueType
blaze::IsRow< volatile MatrixType3 > // Is derived from FalseType

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