35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATSMATMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DMATSMATMULTEXPR_H_ 117 template<
typename MT1
124 :
public MatMatMultExpr< DenseMatrix< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF>, false > >
150 SYM = ( SF && !( HF || LF || UF ) ),
151 HERM = ( HF && !( LF || UF ) ),
152 LOW = ( LF || ( ( SF || HF ) && UF ) ),
153 UPP = ( UF || ( ( SF || HF ) && LF ) )
164 template<
typename T1,
typename T2,
typename T3 >
165 struct CanExploitSymmetry {
177 template<
typename T1,
typename T2,
typename T3 >
178 struct IsEvaluationRequired {
179 enum :
bool { value = ( evaluateLeft || evaluateRight ) &&
180 !CanExploitSymmetry<T1,T2,T3>::value };
190 template<
typename T1,
typename T2,
typename T3 >
191 struct UseOptimizedKernel {
192 enum :
bool { value = useOptimizedKernels &&
204 template<
typename T1,
typename T2,
typename T3 >
205 struct UseDefaultKernel {
206 enum :
bool { value = !UseOptimizedKernel<T1,T2,T3>::value };
257 enum :
bool { simdEnabled =
false };
260 enum :
bool { smpAssignable = !evaluateLeft && MT1::smpAssignable &&
261 !evaluateRight && MT2::smpAssignable };
311 :(
lhs_.columns() ) ) );
315 const size_t n(
end - begin );
334 if( i >=
lhs_.rows() ) {
337 if( j >=
rhs_.columns() ) {
349 inline size_t rows() const noexcept {
360 return rhs_.columns();
390 template<
typename T >
391 inline bool canAlias(
const T* alias )
const noexcept {
392 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
402 template<
typename T >
403 inline bool isAliased(
const T* alias )
const noexcept {
404 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
414 return lhs_.isAligned();
447 template<
typename MT
467 DMatSMatMultExpr::selectAssignKernel( ~lhs, A, B );
483 template<
typename MT3
486 static inline void selectAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
488 if( C.rows() * C.columns() < DMATSMATMULT_THRESHOLD )
489 selectSmallAssignKernel( C, A, B );
491 selectLargeAssignKernel( C, A, B );
510 template<
typename MT3
513 static inline void selectDefaultAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
519 for(
size_t k=0UL; k<B.rows(); ++k )
526 for( ; element!=
end; ++element ) {
527 C(k,element->index()) = A(k,k) * element->value();
540 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
544 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
546 for( ; element!=
end; ++element )
548 const size_t j1( element->index() );
549 const size_t ibegin( SYM || HERM || LOW ?
max(j1,ii) : ii );
550 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
552 for(
size_t i=ibegin; i<iend; ++i ) {
554 C(i,j1) = A(i,k) * element->value();
556 C(i,j1) += A(i,k) * element->value();
564 for(
size_t i=0UL; i<A.rows(); ++i ) {
565 for(
size_t j=i+1UL; j<B.columns(); ++j ) {
566 C(i,j) = HERM ?
conj( C(j,i) ) : C(j,i);
587 template<
typename MT3
591 selectSmallAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
593 selectDefaultAssignKernel( C, A, B );
613 template<
typename MT3
617 selectSmallAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
623 for(
size_t j=0UL; j<B.rows(); ++j )
633 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
637 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
639 for( ; element!=
end; ++element )
641 const size_t j1( element->index() );
642 const size_t ibegin( SYM || HERM || LOW ?
max(j1,ii) : ii );
643 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
645 for(
size_t i=ibegin; i<iend; ++i ) {
646 C(i,j1) += A(i,j) * element->value();
653 for(
size_t i=0UL; i<A.rows(); ++i ) {
654 for(
size_t j=i+1UL; j<B.columns(); ++j ) {
655 C(i,j) = HERM ?
conj( C(j,i) ) : C(j,i);
676 template<
typename MT3
680 selectLargeAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
682 selectDefaultAssignKernel( C, A, B );
702 template<
typename MT3
706 selectLargeAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
710 const ForwardFunctor fwd;
713 assign( C, fwd( A * tmp ) );
731 template<
typename MT
750 const ForwardFunctor fwd;
752 const TmpType tmp(
serial( rhs ) );
753 assign( ~lhs, fwd( tmp ) );
773 template<
typename MT
785 const ForwardFunctor fwd;
810 template<
typename MT
830 DMatSMatMultExpr::selectAddAssignKernel( ~lhs, A, B );
846 template<
typename MT3
849 static inline void selectAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
851 if( C.rows() * C.columns() < DMATSMATMULT_THRESHOLD )
852 selectSmallAddAssignKernel( C, A, B );
854 selectLargeAddAssignKernel( C, A, B );
873 template<
typename MT3
876 static inline void selectSmallAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
880 for(
size_t j=0UL; j<B.rows(); ++j )
887 for( ; element!=
end; ++element ) {
888 C(j,element->index()) += A(j,j) * element->value();
901 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
905 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
907 for( ; element!=
end; ++element )
909 const size_t j1( element->index() );
910 const size_t ibegin( LOW ?
max(j1,ii) : ii );
911 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
913 for(
size_t i=ibegin; i<iend; ++i ) {
914 C(i,j1) += A(i,j) * element->value();
938 template<
typename MT3
941 static inline void selectLargeAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
945 const ForwardFunctor fwd;
948 addAssign( C, fwd( A * tmp ) );
968 template<
typename MT
980 const ForwardFunctor fwd;
1009 template<
typename MT
1029 DMatSMatMultExpr::selectSubAssignKernel( ~lhs, A, B );
1045 template<
typename MT3
1048 static inline void selectSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1050 if( C.rows() * C.columns() < DMATSMATMULT_THRESHOLD )
1051 selectSmallSubAssignKernel( C, A, B );
1053 selectLargeSubAssignKernel( C, A, B );
1072 template<
typename MT3
1075 static inline void selectSmallSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1079 for(
size_t j=0UL; j<B.rows(); ++j )
1086 for( ; element!=
end; ++element ) {
1087 C(j,element->index()) -= A(j,j) * element->value();
1100 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
1104 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
1106 for( ; element!=
end; ++element )
1108 const size_t j1( element->index() );
1109 const size_t ibegin( LOW ?
max(j1,ii) : ii );
1110 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
1112 for(
size_t i=ibegin; i<iend; ++i ) {
1113 C(i,j1) -= A(i,j) * element->value();
1137 template<
typename MT3
1140 static inline void selectLargeSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1144 const ForwardFunctor fwd;
1147 subAssign( C, fwd( A * tmp ) );
1167 template<
typename MT
1179 const ForwardFunctor fwd;
1208 template<
typename MT
1222 schurAssign( ~lhs, tmp );
1254 template<
typename MT
1294 template<
typename MT
1313 const ForwardFunctor fwd;
1315 const TmpType tmp( rhs );
1336 template<
typename MT
1348 const ForwardFunctor fwd;
1375 template<
typename MT
1415 template<
typename MT
1427 const ForwardFunctor fwd;
1459 template<
typename MT
1499 template<
typename MT
1511 const ForwardFunctor fwd;
1540 template<
typename MT
1621 template<
typename MT1
1623 inline decltype(
auto)
1670 template<
typename MT1
1715 template<
typename MT1
1760 template<
typename MT1
1805 template<
typename MT1
1850 template<
typename MT1
1881 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1882 struct Rows< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1899 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1900 struct Columns< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1917 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1918 struct IsAligned< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1935 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1936 struct IsSymmetric< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1939 , IsBuiltin< ElementType_< DMatSMatMultExpr<MT1,MT2,false,true,false,false> > > >
1940 , And< Bool<LF>, Bool<UF> > >::value >
1956 template<
typename MT1,
typename MT2,
bool SF,
bool LF,
bool UF >
1957 struct IsHermitian< DMatSMatMultExpr<MT1,MT2,SF,true,LF,UF> >
1974 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1975 struct IsLower< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1977 , And< IsLower<MT1>, IsLower<MT2> >
1978 , And< Or< Bool<SF>, Bool<HF> >
1979 , IsUpper<MT1>, IsUpper<MT2> > >::value >
1995 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1996 struct IsUniLower< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1997 :
public BoolConstant< Or< And< IsUniLower<MT1>, IsUniLower<MT2> >
1998 , And< Or< Bool<SF>, Bool<HF> >
1999 , IsUniUpper<MT1>, IsUniUpper<MT2> > >::value >
2015 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2017 :
public BoolConstant< Or< And< IsStrictlyLower<MT1>, IsLower<MT2> >
2018 , And< IsStrictlyLower<MT2>, IsLower<MT1> >
2019 , And< Or< Bool<SF>, Bool<HF> >
2020 , Or< And< IsStrictlyUpper<MT1>, IsUpper<MT2> >
2021 , And< IsStrictlyUpper<MT2>, IsUpper<MT1> > > > >::value >
2037 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2038 struct IsUpper< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
2040 , And< IsUpper<MT1>, IsUpper<MT2> >
2041 , And< Or< Bool<SF>, Bool<HF> >
2042 , IsLower<MT1>, IsLower<MT2> > >::value >
2058 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2059 struct IsUniUpper< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
2060 :
public BoolConstant< Or< And< IsUniUpper<MT1>, IsUniUpper<MT2> >
2061 , And< Or< Bool<SF>, Bool<HF> >
2062 , IsUniLower<MT1>, IsUniLower<MT2> > >::value >
2078 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2080 :
public BoolConstant< Or< And< IsStrictlyUpper<MT1>, IsUpper<MT2> >
2081 , And< IsStrictlyUpper<MT2>, IsUpper<MT1> >
2082 , And< Or< Bool<SF>, Bool<HF> >
2083 , Or< And< IsStrictlyLower<MT1>, IsLower<MT2> >
2084 , And< IsStrictlyLower<MT2>, IsLower<MT1> > > > >::value >
#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.
Headerfile for the generic min algorithm.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:72
decltype(auto) decldiag(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as diagonal.
Definition: DMatDeclDiagExpr.h:996
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatSMatMultExpr.h:391
Header file for the Rows type trait.
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatSMatMultExpr.h:349
Header file for the IsUniUpper type trait.
EnableIf_< IsDenseMatrix< MT1 > > smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:196
Compile time check for triangular matrix types.This type trait tests whether or not the given templat...
Definition: IsTriangular.h:87
Header file for basic type definitions.
Flag for symmetric matrices.
Definition: DMatSMatMultExpr.h:150
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatSMatMultExpr.h:413
const ResultType CompositeType
Data type for composite expression templates.
Definition: DMatSMatMultExpr.h:240
Subvector< VT, AF > subvector(Vector< VT, TF > &vector, size_t index, size_t size)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:322
EnableIf_< IsDenseMatrix< MT1 > > smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:164
Header file for the serial shim.
If_< IsExpression< MT2 >, const MT2, const MT2 &> RightOperand
Composite type of the right-hand side sparse matrix expression.
Definition: DMatSMatMultExpr.h:246
Header file for the IsDiagonal type trait.
Generic wrapper for a compile time constant integral value.The IntegralConstant class template repres...
Definition: IntegralConstant.h:71
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:61
Header file for the DeclUpp functor.
BLAZE_ALWAYS_INLINE MT::Iterator begin(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:198
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:560
typename DisableIf< Condition, T >::Type DisableIf_
Auxiliary type for the DisableIf class template.The DisableIf_ alias declaration provides a convenien...
Definition: DisableIf.h:224
Header file for the And class template.
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1762
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:88
Flag for Hermitian matrices.
Definition: DMatSMatMultExpr.h:151
decltype(auto) declupp(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as upper.
Definition: DMatDeclUppExpr.h:1027
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:250
Column< MT > column(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific column of the given matrix.
Definition: Column.h:124
Header file for the Computation base class.
Header file for the MatMatMultExpr base class.
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:88
Constraints on the storage order of matrix types.
DMatSMatMultExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the DMatSMatMultExpr class.
Definition: DMatSMatMultExpr.h:270
Header file for the RequiresEvaluation type trait.
System settings for performance optimizations.
RightOperand rightOperand() const noexcept
Returns the right-hand side sparse matrix operand.
Definition: DMatSMatMultExpr.h:379
Header file for the IsUniLower type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:343
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1809
EnableIf_< IsDenseMatrix< MT1 > > smpAddAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:133
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:78
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:129
typename IfTrue< Condition, T1, T2 >::Type IfTrue_
Auxiliary alias declaration for the IfTrue class template.The IfTrue_ alias declaration provides a co...
Definition: If.h:109
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatSMatMultExpr.h:285
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatSMatMultExpr.h:423
Row< MT > row(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific row of the given matrix.
Definition: Row.h:124
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Constraint on the data type.
Constraint on the data type.
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:72
const ElementType ReturnType
Return type for expression template evaluations.
Definition: DMatSMatMultExpr.h:239
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
Compile time check for upper unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniUpper.h:86
Headerfile for the generic max algorithm.
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatSMatMultExpr.h:359
MultTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DMatSMatMultExpr.h:235
Header file for the DisableIf class template.
Header file for the multiplication trait.
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatSMatMultExpr.h:236
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the DeclLow functor.
Flag for lower matrices.
Definition: DMatSMatMultExpr.h:152
Header file for the If class template.
#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
Generic wrapper for the decllow() function.
Definition: DeclLow.h:58
EnableIf_< IsDenseMatrix< MT1 > > smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:102
Header file for the Or class template.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatSMatMultExpr.h:369
#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
Header file for the DenseMatrix base class.
Header file for the Columns type trait.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3087
ResultType_< MT1 > RT1
Result type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:129
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
decltype(auto) decllow(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as lower.
Definition: DMatDeclLowExpr.h:1027
Header file for the IsLower type trait.
Header file for the IsAligned type trait.
Compile time check for diagonal matrices.This type trait tests whether or not the given template para...
Definition: IsDiagonal.h:90
ResultType_< MT2 > RT2
Result type of the right-hand side sparse matrix expression.
Definition: DMatSMatMultExpr.h:130
Flag for upper matrices.
Definition: DMatSMatMultExpr.h:153
Generic wrapper for the null function.
Definition: Noop.h:58
Header file for the IsTriangular type trait.
Constraints on the storage order of matrix types.
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
Header file for the exception macros of the math module.
Compile time check for strictly upper triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyUpper.h:86
BLAZE_ALWAYS_INLINE 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:264
Header file for the DeclDiag functor.
Constraint on the data type.
Header file for all forward declarations for expression class templates.
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:108
Compile time check for lower unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniLower.h:86
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatSMatMultExpr.h:333
Header file for the conjugate shim.
Compile time check for resizable data types.This type trait tests whether the given data type is a re...
Definition: IsResizable.h:75
Base class for all matrix/matrix multiplication expression templates.The MatMatMultExpr class serves ...
Definition: MatMatMultExpr.h:67
#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
#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
Header file for run time assertion macros.
IfTrue_< evaluateRight, const RT2, CT2 > RT
Type for the assignment of the right-hand side sparse matrix operand.
Definition: DMatSMatMultExpr.h:252
Utility type for generic codes.
Expression object for dense matrix-sparse matrix multiplications.The DMatSMatMultExpr class represent...
Definition: DMatSMatMultExpr.h:123
CompositeType_< MT2 > CT2
Composite type of the right-hand side sparse matrix expression.
Definition: DMatSMatMultExpr.h:134
If_< IsExpression< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:243
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
ElementType_< RT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:131
Header file for the reset shim.
#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
decltype(auto) declsym(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as symmetric.
Definition: DMatDeclSymExpr.h:1029
Header file for the isDefault shim.
Compile time check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
Base class for matrices.The Matrix class is a base class for all dense and sparse matrix classes with...
Definition: Forward.h:101
Constraint on the data type.
Constraints on the storage order of matrix types.
Generic wrapper for the declherm() function.
Definition: DeclHerm.h:58
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:819
Header file for the Noop functor.
#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
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:263
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.In case either of the two given data types T1 or T2 is not a matrix type ...
Definition: StorageOrder.h:84
Generic wrapper for the declupp() function.
Definition: DeclUpp.h:58
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
CompositeType_< MT1 > CT1
Composite type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:133
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3082
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:790
decltype(auto) declherm(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as Hermitian.
Definition: DMatDeclHermExpr.h:1029
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatSMatMultExpr.h:237
Header file for the IsComputation type trait class.
Header file for the IsBuiltin type trait.
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
IfTrue_< evaluateLeft, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense matrix operand.
Definition: DMatSMatMultExpr.h:249
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:75
Generic wrapper for the decldiag() function.
Definition: DeclDiag.h:58
Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:75
RightOperand rhs_
Right-hand side sparse matrix of the multiplication expression.
Definition: DMatSMatMultExpr.h:431
Header file for the DeclHerm functor.
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:600
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatSMatMultExpr.h:238
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
Header file for the IsUpper type trait.
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition: DMatMapExpr.h:1321
Constraint on the data type.
Generic wrapper for the declsym() function.
Definition: DeclSym.h:58
BLAZE_ALWAYS_INLINE bool isSquare(const Matrix< MT, SO > &matrix) noexcept
Checks if the given matrix is a square matrix.
Definition: Matrix.h:742
Header file for the IsResizable type trait.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
#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
Header file for the Bool class template.
Header file for the DeclSym functor.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatSMatMultExpr.h:403
#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.
ElementType_< RT2 > ET2
Element type of the right-hand side sparse matrix expression.
Definition: DMatSMatMultExpr.h:132
LeftOperand lhs_
Left-hand side dense matrix of the multiplication expression.
Definition: DMatSMatMultExpr.h:430