35 #ifndef _BLAZE_MATH_EXPRESSIONS_SMATSMATMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_SMATSMATMULTEXPR_H_ 106 template<
typename MT1
108 class SMatSMatMultExpr
109 :
public MatMatMultExpr< SparseMatrix< SMatSMatMultExpr<MT1,MT2>, false > >
110 ,
private Computation
137 template<
typename T1,
typename T2,
typename T3 >
138 static constexpr
bool CanExploitSymmetry_v =
139 ( IsColumnMajorMatrix_v<T1> && IsSymmetric_v<T2> && IsSymmetric_v<T3> );
149 template<
typename T1,
typename T2,
typename T3 >
150 static constexpr
bool IsEvaluationRequired_v =
204 if( IsDiagonal_v<MT1> ) {
207 else if( IsDiagonal_v<MT2> ) {
210 else if( IsTriangular_v<MT1> || IsTriangular_v<MT2> ) {
211 const size_t begin( ( IsUpper_v<MT1> )
212 ?( ( IsLower_v<MT2> )
213 ?(
max( ( IsStrictlyUpper_v<MT1> ? i+1UL : i )
214 , ( IsStrictlyLower_v<MT2> ? j+1UL : j ) ) )
215 :( IsStrictlyUpper_v<MT1> ? i+1UL : i ) )
216 :( ( IsLower_v<MT2> )
217 ?( IsStrictlyLower_v<MT2> ? j+1UL : j )
219 const size_t end( ( IsLower_v<MT1> )
220 ?( ( IsUpper_v<MT2> )
221 ?(
min( ( IsStrictlyLower_v<MT1> ? i : i+1UL )
222 , ( IsStrictlyUpper_v<MT2> ? j : j+1UL ) ) )
223 :( IsStrictlyLower_v<MT1> ? i : i+1UL ) )
224 :( ( IsUpper_v<MT2> )
225 ?( IsStrictlyUpper_v<MT2> ? j : j+1UL )
226 :(
lhs_.columns() ) ) );
250 if( i >=
lhs_.rows() ) {
253 if( j >=
rhs_.columns() ) {
265 inline size_t rows() const noexcept {
276 return rhs_.columns();
285 inline constexpr
size_t nonZeros() const noexcept {
296 inline size_t nonZeros(
size_t i )
const noexcept {
328 template<
typename T >
329 inline bool canAlias(
const T* alias )
const noexcept {
330 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
340 template<
typename T >
341 inline bool isAliased(
const T* alias )
const noexcept {
342 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
352 return (
rows() *
columns() >= SMP_SMATSMATMULT_THRESHOLD );
375 template<
typename MT
395 SMatSMatMultExpr::selectAssignKernel( ~lhs, A, B );
413 template<
typename MT3
416 static inline void selectAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
418 for(
size_t i=0UL; i<C.rows(); ++i ) {
419 const auto lend( A.end(i) );
420 for(
auto lelem=A.begin(i); lelem!=lend; ++lelem ) {
421 const auto rend( B.end( lelem->index() ) );
422 for(
auto relem=B.begin( lelem->index() ); relem!=rend; ++relem )
426 C(i,relem->index()) = lelem->value() * relem->value();
429 C(i,relem->index()) += lelem->value() * relem->value();
451 template<
typename MT >
452 friend inline void assign( SparseMatrix<MT,false>& lhs,
const SMatSMatMultExpr& rhs )
470 size_t nonzeros( 0UL );
472 for(
size_t i=0UL; i<(~lhs).
rows(); ++i ) {
473 const auto lend( A.end(i) );
474 for(
auto lelem=A.begin(i); lelem!=lend; ++lelem ) {
475 nonzeros += B.nonZeros( lelem->index() );
479 if( nonzeros > (~lhs).rows() * (~lhs).
columns() ) {
483 (~lhs).reserve( nonzeros );
488 SmallArray<bool,128UL> valid ( (~lhs).
columns(),
false );
489 SmallArray<size_t,128UL> indices( (~lhs).
columns(), 0UL );
490 size_t minIndex(
inf ), maxIndex( 0UL );
492 for(
size_t i=0UL; i<(~lhs).
rows(); ++i )
494 const auto lend( A.end(i) );
495 for(
auto lelem=A.begin(i); lelem!=lend; ++lelem )
497 const auto rend( B.end( lelem->index() ) );
498 for(
auto relem=B.begin( lelem->index() ); relem!=rend; ++relem )
500 if( !valid[relem->index()] ) {
501 values[relem->index()] = lelem->value() * relem->value();
502 valid [relem->index()] =
true;
503 indices[nonzeros] = relem->index();
505 if( relem->index() < minIndex ) minIndex = relem->index();
506 if( relem->index() > maxIndex ) maxIndex = relem->index();
509 values[relem->index()] += lelem->value() * relem->value();
520 if( ( nonzeros + nonzeros ) < ( maxIndex - minIndex ) )
522 std::sort( indices.begin(), indices.begin() + nonzeros );
524 for(
size_t j=0UL; j<nonzeros; ++j )
526 const size_t index( indices[j] );
528 (~lhs).append( i, index, values[index] );
529 reset( values[index] );
532 reset( valid[index] );
536 for(
size_t j=minIndex; j<=maxIndex; ++j )
539 (~lhs).append( i, j, values[j] );
552 (~lhs).finalize( i );
571 template<
typename MT >
572 friend inline auto assign( SparseMatrix<MT,true>& lhs,
const SMatSMatMultExpr& rhs )
573 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
586 (~lhs).reserve( tmp.nonZeros() );
607 template<
typename MT >
608 friend inline auto assign( Matrix<MT,true>& lhs,
const SMatSMatMultExpr& rhs )
609 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
618 assign( ~lhs,
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) );
636 template<
typename MT
638 friend inline auto addAssign( DenseMatrix<MT,SO>& lhs,
const SMatSMatMultExpr& rhs )
639 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
656 SMatSMatMultExpr::selectAddAssignKernel( ~lhs, A, B );
675 template<
typename MT3
678 static inline void selectAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
680 for(
size_t i=0UL; i<C.rows(); ++i ) {
681 const auto lend( A.end(i) );
682 for(
auto lelem=A.begin(i); lelem!=lend; ++lelem ) {
683 const auto rend( B.end( lelem->index() ) );
684 for(
auto relem=B.begin( lelem->index() ); relem!=rend; ++relem ) {
685 C(i,relem->index()) += lelem->value() * relem->value();
708 template<
typename MT >
709 friend inline auto addAssign( Matrix<MT,true>& lhs,
const SMatSMatMultExpr& rhs )
710 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
719 addAssign( ~lhs,
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) );
741 template<
typename MT
743 friend inline auto subAssign( DenseMatrix<MT,SO>& lhs,
const SMatSMatMultExpr& rhs )
744 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
761 SMatSMatMultExpr::selectSubAssignKernel( ~lhs, A, B );
780 template<
typename MT3
783 static inline void selectSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
785 for(
size_t i=0UL; i<C.rows(); ++i ) {
786 const auto lend( A.end(i) );
787 for(
auto lelem=A.begin(i); lelem!=lend; ++lelem ) {
788 const auto rend( B.end( lelem->index() ) );
789 for(
auto relem=B.begin( lelem->index() ); relem!=rend; ++relem ) {
790 C(i,relem->index()) -= lelem->value() * relem->value();
813 template<
typename MT >
814 friend inline auto subAssign( Matrix<MT,true>& lhs,
const SMatSMatMultExpr& rhs )
815 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
824 subAssign( ~lhs,
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) );
846 template<
typename MT
848 friend inline void schurAssign( DenseMatrix<MT,SO>& lhs,
const SMatSMatMultExpr& rhs )
860 schurAssign( ~lhs, tmp );
892 template<
typename MT
895 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
932 template<
typename MT >
934 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
964 template<
typename MT
967 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1004 template<
typename MT >
1006 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1040 template<
typename MT
1043 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1080 template<
typename MT >
1082 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1113 template<
typename MT
1181 template<
typename MT1
1183 ,
DisableIf_t< ( ( IsIdentity_v<MT1> || IsIdentity_v<MT2> ) &&
1184 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > ) ||
1185 ( IsIdentity_v<MT1> && IsIdentity_v<MT2> ) ||
1186 ( IsZero_v<MT1> || IsZero_v<MT2> ) >* =
nullptr >
1187 inline const SMatSMatMultExpr<MT1,MT2>
1188 smatsmatmult(
const SparseMatrix<MT1,false>& lhs,
const SparseMatrix<MT2,false>& rhs )
1194 return SMatSMatMultExpr<MT1,MT2>( ~lhs, ~rhs );
1214 template<
typename MT1
1216 , EnableIf_t< !IsIdentity_v<MT1> && IsIdentity_v<MT2> &&
1217 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* =
nullptr >
1219 smatsmatmult(
const SparseMatrix<MT1,false>& lhs,
const SparseMatrix<MT2,false>& rhs )
1247 template<
typename MT1
1249 , EnableIf_t< IsIdentity_v<MT1> && !IsIdentity_v<MT2> &&
1250 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* =
nullptr >
1252 smatsmatmult(
const SparseMatrix<MT1,false>& lhs,
const SparseMatrix<MT2,false>& rhs )
1279 template<
typename MT1
1281 , EnableIf_t< IsIdentity_v<MT1> && IsIdentity_v<MT2> >* =
nullptr >
1282 inline decltype(
auto)
1283 smatsmatmult( const SparseMatrix<MT1,false>& lhs, const SparseMatrix<MT2,false>& rhs )
1291 using ReturnType =
const MultTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
1296 return ReturnType( (~lhs).
rows() );
1315 template<
typename MT1
1317 , EnableIf_t< IsZero_v<MT1> || IsZero_v<MT2> >* =
nullptr >
1318 inline decltype(
auto)
1319 smatsmatmult( const SparseMatrix<MT1,false>& lhs, const SparseMatrix<MT2,false>& rhs )
1325 using ReturnType =
const MultTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
1330 return ReturnType( (~lhs).
rows(), (~rhs).
columns() );
1363 template<
typename MT1
1365 inline decltype(
auto)
1374 return smatsmatmult( ~lhs, ~rhs );
Constraint on the data type.
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SMatSMatMultExpr.h:200
#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
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SMatSMatMultExpr.h:329
RightOperand rhs_
Right-hand side sparse matrix of the multiplication expression.
Definition: SMatSMatMultExpr.h:359
Header file for basic type definitions.
typename If< Condition, T1, T2 >::Type If_t
Auxiliary alias template for the If class template.The If_t alias template provides a convenient shor...
Definition: If.h:109
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
Header file for the IsColumnMajorMatrix type trait.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:595
CompositeType_t< MT2 > CT2
Composite type of the right-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:117
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.
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: SMatSMatMultExpr.h:175
decltype(auto) subvector(Vector< VT, TF > &, RSAs...)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:154
Header file for the MAYBE_UNUSED function template.
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.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SMatSMatMultExpr.h:341
Constraints on the storage order of matrix types.
Header file for the RequiresEvaluation type trait.
MultTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: SMatSMatMultExpr.h:159
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: SMatSMatMultExpr.h:265
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:81
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes....
Definition: Forward.h:145
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
If_t< IsExpression_v< MT1 >, const MT1, const MT1 & > LeftOperand
Composite type of the left-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:167
RightOperand rightOperand() const noexcept
Returns the right-hand side sparse matrix operand.
Definition: SMatSMatMultExpr.h:317
Header file for the SparseMatrix base class.
Constraint on the data type.
constexpr bool IsResizable_v
Auxiliary variable template for the IsResizable type trait.The IsResizable_v variable template provid...
Definition: IsResizable.h:133
Headerfile for the generic max algorithm.
Header file for the DisableIf class template.
LeftOperand lhs_
Left-hand side sparse matrix of the multiplication expression.
Definition: SMatSMatMultExpr.h:358
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.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
#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:1162
#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
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: SMatSMatMultExpr.h:249
Numerical infinity for built-in data types.
Header file for the IsLower type trait.
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition: MaybeUnused.h:81
Header file for the IsTriangular type trait.
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse matrix operand.
Definition: SMatSMatMultExpr.h:307
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:1198
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 the EnableIf class template.
Header file for the IsStrictlyLower type trait.
size_t nonZeros(size_t i) const noexcept
Returns the number of non-zero elements in the specified row.
Definition: SMatSMatMultExpr.h:296
#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
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 columns() const noexcept
Returns the current number of columns of the matrix.
Definition: SMatSMatMultExpr.h:275
#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,...
Definition: Symmetric.h:79
#define BLAZE_CONSTRAINT_MUST_BE_ROW_MAJOR_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a row-major dense or sparse matrix t...
Definition: RowMajorMatrix.h:61
Expression object for sparse matrix-sparse matrix multiplications.The SMatSMatMultExpr class represen...
Definition: Forward.h:132
SMatSMatMultExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the SMatSMatMultExpr class.
Definition: SMatSMatMultExpr.h:185
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
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
ResultType_t< MT2 > RT2
Result type of the right-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:115
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SMatSMatMultExpr.h:161
decltype(auto) row(Matrix< MT, SO > &, RRAs...)
Creating a view on a specific row of the given matrix.
Definition: Row.h:133
Header file for the IsZero type trait.
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: SMatSMatMultExpr.h:162
#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 all forward declarations for expression class templates.
const ResultType CompositeType
Data type for composite expression templates.
Definition: SMatSMatMultExpr.h:164
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.
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
CompositeType_t< MT1 > CT1
Composite type of the left-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:116
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
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SMatSMatMultExpr.h:160
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:765
static constexpr bool evaluateRight
Compilation switch for the composite type of the right-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:127
Header file for the IsComputation type trait class.
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
const ElementType ReturnType
Return type for expression template evaluations.
Definition: SMatSMatMultExpr.h:163
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
static constexpr bool evaluateLeft
Compilation switch for the composite type of the left-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:122
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:635
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
constexpr size_t nonZeros() const noexcept
Returns the number of non-zero elements in the sparse matrix.
Definition: SMatSMatMultExpr.h:285
ResultType_t< MT1 > RT1
Result type of the left-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:114
Constraint on the data type.
Header file for the IsResizable type trait.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: SMatSMatMultExpr.h:351
#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:159
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression,...
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.
If_t< IsExpression_v< MT2 >, const MT2, const MT2 & > RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: SMatSMatMultExpr.h:170