35 #ifndef _BLAZE_MATH_EXPRESSIONS_TSMATTSMATMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_TSMATTSMATMULTEXPR_H_ 107 template<
typename MT1
109 class TSMatTSMatMultExpr
110 :
public MatMatMultExpr< SparseMatrix< TSMatTSMatMultExpr<MT1,MT2>, true > >
111 ,
private Computation
138 template<
typename T1,
typename T2,
typename T3 >
139 static constexpr
bool CanExploitSymmetry_v =
140 ( IsRowMajorMatrix_v<T1> && IsSymmetric_v<T2> && IsSymmetric_v<T3> );
150 template<
typename T1,
typename T2,
typename T3 >
151 static constexpr
bool IsEvaluationRequired_v =
205 if( IsDiagonal_v<MT1> ) {
208 else if( IsDiagonal_v<MT2> ) {
211 else if( IsTriangular_v<MT1> || IsTriangular_v<MT2> ) {
212 const size_t begin( ( IsUpper_v<MT1> )
213 ?( ( IsLower_v<MT2> )
214 ?(
max( ( IsStrictlyUpper_v<MT1> ? i+1UL : i )
215 , ( IsStrictlyLower_v<MT2> ? j+1UL : j ) ) )
216 :( IsStrictlyUpper_v<MT1> ? i+1UL : i ) )
217 :( ( IsLower_v<MT2> )
218 ?( IsStrictlyLower_v<MT2> ? j+1UL : j )
220 const size_t end( ( IsLower_v<MT1> )
221 ?( ( IsUpper_v<MT2> )
222 ?(
min( ( IsStrictlyLower_v<MT1> ? i : i+1UL )
223 , ( IsStrictlyUpper_v<MT2> ? j : j+1UL ) ) )
224 :( IsStrictlyLower_v<MT1> ? i : i+1UL ) )
225 :( ( IsUpper_v<MT2> )
226 ?( IsStrictlyUpper_v<MT2> ? j : j+1UL )
227 :(
lhs_.columns() ) ) );
251 if( i >=
lhs_.rows() ) {
254 if( j >=
rhs_.columns() ) {
266 inline size_t rows() const noexcept {
277 return rhs_.columns();
286 inline constexpr
size_t nonZeros() const noexcept {
297 inline size_t nonZeros(
size_t i )
const noexcept {
329 template<
typename T >
330 inline bool canAlias(
const T* alias )
const noexcept {
331 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
341 template<
typename T >
342 inline bool isAliased(
const T* alias )
const noexcept {
343 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
353 return (
rows() *
columns() >= SMP_TSMATTSMATMULT_THRESHOLD );
376 template<
typename MT
396 TSMatTSMatMultExpr::selectAssignKernel( ~lhs, A, B );
415 template<
typename MT3
418 static inline void selectAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
420 for(
size_t j=0UL; j<C.columns(); ++j ) {
421 const auto rend( B.end(j) );
422 for(
auto relem=B.begin(j); relem!=rend; ++relem ) {
423 const auto lend( A.end( relem->index() ) );
424 for(
auto lelem=A.begin( relem->index() ); lelem!=lend; ++lelem )
428 C(lelem->index(),j) = lelem->value() * relem->value();
431 C(lelem->index(),j) += lelem->value() * relem->value();
453 template<
typename MT >
454 friend inline auto assign( SparseMatrix<MT,false>& lhs,
const TSMatTSMatMultExpr& rhs )
455 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
468 (~lhs).reserve( tmp.nonZeros() );
487 template<
typename MT >
488 friend inline void assign( SparseMatrix<MT,true>& lhs,
const TSMatTSMatMultExpr& rhs )
506 size_t nonzeros( 0UL );
508 for(
size_t j=0UL; j<(~lhs).
columns(); ++j ) {
509 const auto rend( B.end(j) );
510 for(
auto relem=B.begin(j); relem!=rend; ++relem ) {
511 nonzeros += A.nonZeros( relem->index() );
515 if( nonzeros > (~lhs).rows() * (~lhs).
columns() ) {
519 (~lhs).reserve( nonzeros );
524 SmallArray<bool,128UL> valid ( (~lhs).
rows(),
false );
525 SmallArray<size_t,128UL> indices( (~lhs).
rows(), 0UL );
526 size_t minIndex(
inf ), maxIndex( 0UL );
528 for(
size_t j=0UL; j<(~lhs).
columns(); ++j )
530 const auto rend( B.end(j) );
531 for(
auto relem=B.begin(j); relem!=rend; ++relem )
533 const auto lend( A.end( relem->index() ) );
534 for(
auto lelem=A.begin( relem->index() ); lelem!=lend; ++lelem )
536 if( !valid[lelem->index()] ) {
537 values[lelem->index()] = lelem->value() * relem->value();
538 valid [lelem->index()] =
true;
539 indices[nonzeros] = lelem->index();
541 if( lelem->index() < minIndex ) minIndex = lelem->index();
542 if( lelem->index() > maxIndex ) maxIndex = lelem->index();
545 values[lelem->index()] += lelem->value() * relem->value();
556 if( ( nonzeros + nonzeros ) < ( maxIndex - minIndex ) )
558 std::sort( indices.begin(), indices.begin() + nonzeros );
560 for(
size_t i=0UL; i<nonzeros; ++i )
562 const size_t index( indices[i] );
564 (~lhs).append( index, j, values[index] );
565 reset( values[index] );
568 reset( valid[index] );
572 for(
size_t i=minIndex; i<=maxIndex; ++i )
575 (~lhs).append( i, j, values[i] );
588 (~lhs).finalize( j );
609 template<
typename MT >
611 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
620 assign( ~lhs,
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) );
638 template<
typename MT
640 friend inline auto addAssign( DenseMatrix<MT,SO>& lhs,
const TSMatTSMatMultExpr& rhs )
641 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
658 TSMatTSMatMultExpr::selectAddAssignKernel( ~lhs, A, B );
677 template<
typename MT3
680 static inline void selectAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
682 for(
size_t j=0UL; j<C.columns(); ++j ) {
683 const auto rend( B.end(j) );
684 for(
auto relem=B.begin(j); relem!=rend; ++relem ) {
685 const auto lend( A.end( relem->index() ) );
686 for(
auto lelem=A.begin( relem->index() ); lelem!=lend; ++lelem ) {
687 C(lelem->index(),j) += lelem->value() * relem->value();
710 template<
typename MT >
712 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
721 addAssign( ~lhs,
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) );
743 template<
typename MT
745 friend inline auto subAssign( DenseMatrix<MT,SO>& lhs,
const TSMatTSMatMultExpr& rhs )
746 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
763 TSMatTSMatMultExpr::selectSubAssignKernel( ~lhs, A, B );
782 template<
typename MT3
785 static inline void selectSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
787 for(
size_t j=0UL; j<C.columns(); ++j ) {
788 const auto rend( B.end(j) );
789 for(
auto relem=B.begin(j); relem!=rend; ++relem ) {
790 const auto lend( A.end( relem->index() ) );
791 for(
auto lelem=A.begin( relem->index() ); lelem!=lend; ++lelem ) {
792 C(lelem->index(),j) -= lelem->value() * relem->value();
816 template<
typename MT >
818 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
827 subAssign( ~lhs,
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) );
849 template<
typename MT
851 friend inline void schurAssign( DenseMatrix<MT,SO>& lhs,
const TSMatTSMatMultExpr& rhs )
863 schurAssign( ~lhs, tmp );
896 template<
typename MT
899 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
936 template<
typename MT >
938 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
968 template<
typename MT
971 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1009 template<
typename MT >
1011 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1045 template<
typename MT
1048 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1086 template<
typename MT >
1088 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1119 template<
typename MT
1186 template<
typename MT1
1188 , DisableIf_t< ( ( IsIdentity_v<MT1> || IsIdentity_v<MT2> ) &&
1189 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > ) ||
1190 ( IsIdentity_v<MT1> && IsIdentity_v<MT2> ) ||
1191 ( IsZero_v<MT1> || IsZero_v<MT2> ) >* =
nullptr >
1192 inline const TSMatTSMatMultExpr<MT1,MT2>
1193 tsmattsmatmult(
const SparseMatrix<MT1,true>& lhs,
const SparseMatrix<MT2,true>& rhs )
1199 return TSMatTSMatMultExpr<MT1,MT2>( ~lhs, ~rhs );
1219 template<
typename MT1
1221 , EnableIf_t< !IsIdentity_v<MT1> && IsIdentity_v<MT2> &&
1222 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* =
nullptr >
1224 tsmattsmatmult(
const SparseMatrix<MT1,true>& lhs,
const SparseMatrix<MT2,true>& rhs )
1252 template<
typename MT1
1254 , EnableIf_t< IsIdentity_v<MT1> && !IsIdentity_v<MT2> &&
1255 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* =
nullptr >
1257 tsmattsmatmult(
const SparseMatrix<MT1,true>& lhs,
const SparseMatrix<MT2,true>& rhs )
1284 template<
typename MT1
1286 , EnableIf_t< IsIdentity_v<MT1> && IsIdentity_v<MT2> >* =
nullptr >
1287 inline decltype(
auto)
1288 tsmattsmatmult( const SparseMatrix<MT1,true>& lhs, const SparseMatrix<MT2,true>& rhs )
1296 using ReturnType =
const MultTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
1321 template<
typename MT1
1323 , EnableIf_t< IsZero_v<MT1> || IsZero_v<MT2> >* =
nullptr >
1324 inline decltype(
auto)
1325 tsmattsmatmult( const SparseMatrix<MT1,true>& lhs, const SparseMatrix<MT2,true>& rhs )
1331 using ReturnType =
const MultTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
1369 template<
typename MT1
1371 inline decltype(
auto)
1380 return tsmattsmatmult( ~lhs, ~rhs );
Constraint on the data type.
decltype(auto) subvector(Vector< VT, TF > &, RSAs...)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:329
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
Header file for auxiliary alias declarations.
decltype(auto) column(Matrix< MT, SO > &matrix, RCAs... args)
Creating a view on a specific column of the given matrix.
Definition: Column.h:133
Headerfile for the generic min algorithm.
Header file for the blaze::checked and blaze::unchecked instances.
#define BLAZE_CONSTRAINT_MUST_BE_IDENTITY_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not an identity matrix type...
Definition: Identity.h:60
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: TSMatTSMatMultExpr.h:266
Header file for the UNUSED_PARAMETER function template.
TSMatTSMatMultExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the TSMatTSMatMultExpr class.
Definition: TSMatTSMatMultExpr.h:186
Header file for basic type definitions.
static constexpr bool evaluateLeft
Compilation switch for the composite type of the left-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:123
typename If< Condition, T1, T2 >::Type If_t
Auxiliary alias declaration for the If class template.The If_t alias declaration provides a convenien...
Definition: If.h:109
const ElementType ReturnType
Return type for expression template evaluations.
Definition: TSMatTSMatMultExpr.h:164
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.The ResultType_t alias declaration provides ...
Definition: Aliases.h:390
Header file for the serial shim.
Header file for the IsDiagonal type trait.
MT::Iterator begin(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:372
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:591
static constexpr bool smpAssignable
Compilation flag for SMP assignments.
Definition: CompressedMatrix.h:3113
LeftOperand leftOperand() const noexcept
Returns the left-hand side transpose sparse matrix operand.
Definition: TSMatTSMatMultExpr.h:308
constexpr Unchecked unchecked
Global Unchecked instance.The blaze::unchecked instance is an optional token for the creation of view...
Definition: Check.h:138
Constraint on the data type.
Header file for the IsIdentity type trait.
Header file for the Computation base class.
Header file for the MatMatMultExpr base class.
Header file for the reset shim.
Header file for the RequiresEvaluation type trait.
constexpr void UNUSED_PARAMETER(const Args &...)
Suppression of unused parameter warnings.
Definition: Unused.h:81
constexpr size_t columns(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of columns of the matrix.
Definition: Matrix.h:514
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:80
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:137
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: TSMatTSMatMultExpr.h:352
Header file for the SparseMatrix base class.
Constraint on the data type.
CompositeType_t< MT1 > CT1
Composite type of the left-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:117
Headerfile for the generic max algorithm.
Header file for the DisableIf class template.
Header file for the SmallArray implementation.
Header file for the multiplication trait.
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: TSMatTSMatMultExpr.h:176
constexpr bool IsResizable_v
Auxiliary variable template for the IsResizable type trait.The IsResizable_v variable template provid...
Definition: IsResizable.h:134
constexpr size_t nonZeros() const noexcept
Returns the number of non-zero elements in the sparse matrix.
Definition: TSMatTSMatMultExpr.h:286
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
static constexpr bool evaluateRight
Compilation switch for the composite type of the right-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:128
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: TSMatTSMatMultExpr.h:276
If_t< IsExpression_v< MT2 >, const MT2, const MT2 &> RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:171
#define BLAZE_CONSTRAINT_MUST_BE_COLUMN_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a column-major dense or sparse matri...
Definition: ColumnMajorMatrix.h:61
MultTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: TSMatTSMatMultExpr.h:160
#define BLAZE_CONSTRAINT_MUST_BE_ZERO_TYPE(T)
Constraint on the data type.In case the given data type T is not a zero vector or matrix type...
Definition: Zero.h:61
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1147
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.This macro encapsulates the default way of Bl...
Definition: Exception.h:331
Numerical infinity for built-in data types.
RightOperand rhs_
Right-hand side sparse matrix of the multiplication expression.
Definition: TSMatTSMatMultExpr.h:360
Expression object for transpose sparse matrix-transpose sparse matrix multiplications.The TSMatTSMatMultExpr class represents the compile time expression for multiplications between two column-major sparse matrices.
Definition: Forward.h:179
Header file for the IsLower type trait.
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: TSMatTSMatMultExpr.h:161
LeftOperand lhs_
Left-hand side sparse matrix of the multiplication expression.
Definition: TSMatTSMatMultExpr.h:359
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: TSMatTSMatMultExpr.h:250
Header file for the IsTriangular type trait.
Header file for the exception macros of the math module.
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1179
MT::Iterator end(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition: Matrix.h:438
Constraint on the data type.
Header file for all forward declarations for expression class templates.
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: TSMatTSMatMultExpr.h:162
ResultType_t< MT1 > RT1
Result type of the left-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:115
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_MATMATMULTEXPR(T1, T2)
Constraint on the data type.In case the given data types T1 and T2 do not form a valid matrix/matrix ...
Definition: MatMatMultExpr.h:103
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: TSMatTSMatMultExpr.h:330
typename MultTrait< T1, T2 >::Type MultTrait_t
Auxiliary alias declaration for the MultTrait class template.The MultTrait_t alias declaration provid...
Definition: MultTrait.h:240
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.The OppositeType_t alias declaration provi...
Definition: Aliases.h:270
size_t nonZeros(size_t i) const noexcept
Returns the number of non-zero elements in the specified row.
Definition: TSMatTSMatMultExpr.h:297
#define BLAZE_CONSTRAINT_MUST_NOT_BE_SYMMETRIC_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is a symmetric matrix type, a compilation error is created.
Definition: Symmetric.h:79
typename T::TransposeType TransposeType_t
Alias declaration for nested TransposeType type definitions.The TransposeType_t alias declaration pro...
Definition: Aliases.h:470
Header file for run time assertion macros.
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.The CompositeType_t alias declaration pro...
Definition: Aliases.h:90
If_t< IsExpression_v< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:168
auto smpAddAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:131
RightOperand rightOperand() const noexcept
Returns the right-hand side transpose sparse matrix operand.
Definition: TSMatTSMatMultExpr.h:318
decltype(auto) row(Matrix< MT, SO > &, RRAs...)
Creating a view on a specific row of the given matrix.
Definition: Row.h:133
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: TSMatTSMatMultExpr.h:342
Header file for the IsZero type trait.
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:94
Header file for the isDefault shim.
auto smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:100
Constraint on the data type.
Constraints on the storage order of matrix types.
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:808
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.In case the given data type T requires an intermediate evaluation within ...
Definition: RequiresEvaluation.h:81
auto smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:194
constexpr size_t rows(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of rows of the matrix.
Definition: Matrix.h:498
ResultType_t< MT2 > RT2
Result type of the right-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:116
const ResultType CompositeType
Data type for composite expression templates.
Definition: TSMatTSMatMultExpr.h:165
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3081
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:765
Header file for the IsRowMajorMatrix type trait.
Header file for the IsComputation type trait class.
Header file for the IsBuiltin type trait.
auto smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:162
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: TSMatTSMatMultExpr.h:201
Header file for the IntegralConstant class template.
constexpr Infinity inf
Global Infinity instance.The blaze::inf instance can be used wherever a built-in data type is expecte...
Definition: Infinity.h:1080
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:631
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: TSMatTSMatMultExpr.h:163
Header file for the IsUpper type trait.
typename DisableIf< Condition, T >::Type DisableIf_t
Auxiliary type for the DisableIf class template.The DisableIf_t alias declaration provides a convenie...
Definition: DisableIf.h:138
Constraint on the data type.
CompositeType_t< MT2 > CT2
Composite type of the right-hand side sparse matrix expression.
Definition: TSMatTSMatMultExpr.h:118
Header file for the IsResizable type trait.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_ZERO_TYPE(T)
Constraint on the data type.In case the given data type T is a zero vector or matrix type...
Definition: Zero.h:81
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
constexpr bool IsSame_v
Auxiliary variable template for the IsSame type trait.The IsSame_v variable template provides a conve...
Definition: IsSame.h:161
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:101
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional matrix type...
Definition: SparseMatrix.h:61
Header file for the IsExpression type trait class.
Header file for the function trace functionality.