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

Compile time check for row selections. More...

#include <IsRows.h>

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

Detailed Description

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

Compile time check for row selections.

This type trait tests whether or not the given template parameter is a row selection (i.e. a view on rows of a dense or sparse matrix). In case the type is a row selection, 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 RowsType1 = decltype( blaze::rows<2UL,4UL>( A ) );
using RowsType2 = decltype( blaze::rows( B, 8UL, 24UL ) );
using RowsType3 = decltype( blaze::rows( C, 5UL, 13UL ) );
blaze::IsRows< volatile RowsType3 > // Is derived from TrueType
blaze::IsRows< 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
constexpr size_t rows(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of rows of the matrix.
Definition Matrix.h:644
Compile time check for row selections.
Definition IsRows.h:91

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