35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATSMATMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DMATSMATMULTEXPR_H_ 115 template<
typename MT1
122 :
public MatMatMultExpr< DenseMatrix< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF>, false > >
148 SYM = ( SF && !( HF || LF || UF ) ),
149 HERM = ( HF && !( LF || UF ) ),
150 LOW = ( LF || ( ( SF || HF ) && UF ) ),
151 UPP = ( UF || ( ( SF || HF ) && LF ) )
162 template<
typename T1,
typename T2,
typename T3 >
163 struct CanExploitSymmetry {
175 template<
typename T1,
typename T2,
typename T3 >
176 struct IsEvaluationRequired {
177 enum :
bool { value = ( evaluateLeft || evaluateRight ) &&
178 !CanExploitSymmetry<T1,T2,T3>::value };
188 template<
typename T1,
typename T2,
typename T3 >
189 struct UseOptimizedKernel {
190 enum :
bool { value = useOptimizedKernels &&
202 template<
typename T1,
typename T2,
typename T3 >
203 struct UseDefaultKernel {
204 enum :
bool { value = !UseOptimizedKernel<T1,T2,T3>::value };
255 enum :
bool { simdEnabled =
false };
258 enum :
bool { smpAssignable = !evaluateLeft && MT1::smpAssignable &&
259 !evaluateRight && MT2::smpAssignable };
309 :(
lhs_.columns() ) ) );
313 const size_t n(
end - begin );
333 if( i >=
lhs_.rows() ) {
336 if( j >=
rhs_.columns() ) {
348 inline size_t rows() const noexcept {
359 return rhs_.columns();
389 template<
typename T >
390 inline bool canAlias(
const T* alias )
const noexcept {
391 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
401 template<
typename T >
402 inline bool isAliased(
const T* alias )
const noexcept {
403 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
413 return lhs_.isAligned();
446 template<
typename MT
466 DMatSMatMultExpr::selectAssignKernel( ~lhs, A, B );
482 template<
typename MT3
485 static inline void selectAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
487 if( C.rows() * C.columns() < DMATSMATMULT_THRESHOLD )
488 selectSmallAssignKernel( C, A, B );
490 selectLargeAssignKernel( C, A, B );
509 template<
typename MT3
512 static inline void selectDefaultAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
518 for(
size_t k=0UL; k<B.rows(); ++k )
525 for( ; element!=
end; ++element ) {
526 C(k,element->index()) = A(k,k) * element->value();
539 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
543 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
545 for( ; element!=
end; ++element )
547 const size_t j1( element->index() );
548 const size_t ibegin( SYM || HERM || LOW ?
max(j1,ii) : ii );
549 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
551 for(
size_t i=ibegin; i<iend; ++i ) {
553 C(i,j1) = A(i,k) * element->value();
555 C(i,j1) += A(i,k) * element->value();
563 for(
size_t i=0UL; i<A.rows(); ++i ) {
564 for(
size_t j=i+1UL; j<B.columns(); ++j ) {
565 C(i,j) = HERM ?
conj( C(j,i) ) : C(j,i);
586 template<
typename MT3
590 selectSmallAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
592 selectDefaultAssignKernel( C, A, B );
612 template<
typename MT3
616 selectSmallAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
622 for(
size_t j=0UL; j<B.rows(); ++j )
632 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
636 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
638 for( ; element!=
end; ++element )
640 const size_t j1( element->index() );
641 const size_t ibegin( SYM || HERM || LOW ?
max(j1,ii) : ii );
642 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
644 for(
size_t i=ibegin; i<iend; ++i ) {
645 C(i,j1) += A(i,j) * element->value();
652 for(
size_t i=0UL; i<A.rows(); ++i ) {
653 for(
size_t j=i+1UL; j<B.columns(); ++j ) {
654 C(i,j) = HERM ?
conj( C(j,i) ) : C(j,i);
675 template<
typename MT3
679 selectLargeAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
681 selectDefaultAssignKernel( C, A, B );
701 template<
typename MT3
705 selectLargeAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
709 const ForwardFunctor fwd;
712 assign( C, fwd( A * tmp ) );
730 template<
typename MT
749 const ForwardFunctor fwd;
751 const TmpType tmp(
serial( rhs ) );
752 assign( ~lhs, fwd( tmp ) );
772 template<
typename MT
784 const ForwardFunctor fwd;
809 template<
typename MT
829 DMatSMatMultExpr::selectAddAssignKernel( ~lhs, A, B );
845 template<
typename MT3
848 static inline void selectAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
850 if( C.rows() * C.columns() < DMATSMATMULT_THRESHOLD )
851 selectSmallAddAssignKernel( C, A, B );
853 selectLargeAddAssignKernel( C, A, B );
872 template<
typename MT3
875 static inline void selectSmallAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
879 for(
size_t j=0UL; j<B.rows(); ++j )
886 for( ; element!=
end; ++element ) {
887 C(j,element->index()) += A(j,j) * element->value();
900 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
904 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
906 for( ; element!=
end; ++element )
908 const size_t j1( element->index() );
909 const size_t ibegin( LOW ?
max(j1,ii) : ii );
910 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
912 for(
size_t i=ibegin; i<iend; ++i ) {
913 C(i,j1) += A(i,j) * element->value();
937 template<
typename MT3
940 static inline void selectLargeAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
944 const ForwardFunctor fwd;
947 addAssign( C, fwd( A * tmp ) );
967 template<
typename MT
979 const ForwardFunctor fwd;
1008 template<
typename MT
1028 DMatSMatMultExpr::selectSubAssignKernel( ~lhs, A, B );
1044 template<
typename MT3
1047 static inline void selectSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1049 if( C.rows() * C.columns() < DMATSMATMULT_THRESHOLD )
1050 selectSmallSubAssignKernel( C, A, B );
1052 selectLargeSubAssignKernel( C, A, B );
1071 template<
typename MT3
1074 static inline void selectSmallSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1078 for(
size_t j=0UL; j<B.rows(); ++j )
1085 for( ; element!=
end; ++element ) {
1086 C(j,element->index()) -= A(j,j) * element->value();
1099 for(
size_t ii=iibegin; ii<iiend; ii+=8UL )
1103 const size_t itmp( ( ii+8UL > iiend )?( iiend ):( ii+8UL ) );
1105 for( ; element!=
end; ++element )
1107 const size_t j1( element->index() );
1108 const size_t ibegin( LOW ?
max(j1,ii) : ii );
1109 const size_t iend( UPP ?
min(j1+1UL,itmp) : itmp );
1111 for(
size_t i=ibegin; i<iend; ++i ) {
1112 C(i,j1) -= A(i,j) * element->value();
1136 template<
typename MT3
1139 static inline void selectLargeSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1143 const ForwardFunctor fwd;
1146 subAssign( C, fwd( A * tmp ) );
1166 template<
typename MT
1178 const ForwardFunctor fwd;
1207 template<
typename MT
1221 schurAssign( ~lhs, tmp );
1253 template<
typename MT
1293 template<
typename MT
1312 const ForwardFunctor fwd;
1314 const TmpType tmp( rhs );
1335 template<
typename MT
1347 const ForwardFunctor fwd;
1374 template<
typename MT
1414 template<
typename MT
1426 const ForwardFunctor fwd;
1458 template<
typename MT
1498 template<
typename MT
1510 const ForwardFunctor fwd;
1539 template<
typename MT
1620 template<
typename MT1
1622 inline decltype(
auto)
1669 template<
typename MT1
1714 template<
typename MT1
1759 template<
typename MT1
1804 template<
typename MT1
1849 template<
typename MT1
1880 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1881 struct Size< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF>, 0UL >
1882 :
public Size<MT1,0UL>
1885 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1886 struct Size< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF>, 1UL >
1887 :
public Size<MT2,1UL>
1903 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1904 struct IsAligned< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1921 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1922 struct IsSymmetric< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1923 :
public Or< Bool<SF>
1925 , IsBuiltin< ElementType_< DMatSMatMultExpr<MT1,MT2,false,true,false,false> > > >
1926 , And< Bool<LF>, Bool<UF> > >
1942 template<
typename MT1,
typename MT2,
bool SF,
bool LF,
bool UF >
1943 struct IsHermitian< DMatSMatMultExpr<MT1,MT2,SF,true,LF,UF> >
1960 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1961 struct IsLower< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1962 :
public Or< Bool<LF>
1963 , And< IsLower<MT1>, IsLower<MT2> >
1964 , And< Or< Bool<SF>, Bool<HF> >
1965 , IsUpper<MT1>, IsUpper<MT2> > >
1981 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
1982 struct IsUniLower< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
1983 :
public Or< And< IsUniLower<MT1>, IsUniLower<MT2> >
1984 , And< Or< Bool<SF>, Bool<HF> >
1985 , IsUniUpper<MT1>, IsUniUpper<MT2> > >
2001 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2003 :
public Or< And< IsStrictlyLower<MT1>, IsLower<MT2> >
2004 , And< IsStrictlyLower<MT2>, IsLower<MT1> >
2005 , And< Or< Bool<SF>, Bool<HF> >
2006 , Or< And< IsStrictlyUpper<MT1>, IsUpper<MT2> >
2007 , And< IsStrictlyUpper<MT2>, IsUpper<MT1> > > > >
2023 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2024 struct IsUpper< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
2025 :
public Or< Bool<UF>
2026 , And< IsUpper<MT1>, IsUpper<MT2> >
2027 , And< Or< Bool<SF>, Bool<HF> >
2028 , IsLower<MT1>, IsLower<MT2> > >
2044 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2045 struct IsUniUpper< DMatSMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
2046 :
public Or< And< IsUniUpper<MT1>, IsUniUpper<MT2> >
2047 , And< Or< Bool<SF>, Bool<HF> >
2048 , IsUniLower<MT1>, IsUniLower<MT2> > >
2064 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2066 :
public Or< And< IsStrictlyUpper<MT1>, IsUpper<MT2> >
2067 , And< IsStrictlyUpper<MT2>, IsUpper<MT1> >
2068 , And< Or< Bool<SF>, Bool<HF> >
2069 , Or< And< IsStrictlyLower<MT1>, IsLower<MT2> >
2070 , And< IsStrictlyLower<MT2>, IsLower<MT1> > > > >
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:131
Headerfile for the generic min algorithm.
Header file for the blaze::checked and blaze::unchecked instances.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:71
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:390
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatSMatMultExpr.h:348
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:86
Header file for basic type definitions.
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatSMatMultExpr.h:412
const ResultType CompositeType
Data type for composite expression templates.
Definition: DMatSMatMultExpr.h:238
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:244
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:364
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:588
constexpr Unchecked unchecked
Global Unchecked instance.The blaze::unchecked instance is an optional token for the creation of view...
Definition: Check.h:138
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:1903
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:87
decltype(auto) declupp(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as upper.
Definition: DMatDeclUppExpr.h:1026
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:291
Flag for symmetric matrices.
Definition: DMatSMatMultExpr.h:148
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:87
Constraints on the storage order of matrix types.
DMatSMatMultExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the DMatSMatMultExpr class.
Definition: DMatSMatMultExpr.h:268
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:378
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:1950
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:80
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:129
Flag for lower matrices.
Definition: DMatSMatMultExpr.h:150
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:283
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatSMatMultExpr.h:422
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:71
const ElementType ReturnType
Return type for expression template evaluations.
Definition: DMatSMatMultExpr.h:237
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:358
MultTrait_< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DMatSMatMultExpr.h:233
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:234
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 DeclLow functor.
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:368
#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.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3085
ResultType_< MT1 > RT1
Result type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:127
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:1026
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:89
Flag for upper matrices.
Definition: DMatSMatMultExpr.h:151
ResultType_< MT2 > RT2
Result type of the right-hand side sparse matrix expression.
Definition: DMatSMatMultExpr.h:128
Generic wrapper for the null function.
Definition: Noop.h:59
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:430
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:107
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:332
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:250
Expression object for dense matrix-sparse matrix multiplications.The DMatSMatMultExpr class represent...
Definition: DMatSMatMultExpr.h:121
CompositeType_< MT2 > CT2
Composite type of the right-hand side sparse matrix expression.
Definition: DMatSMatMultExpr.h:132
If_< IsExpression< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:241
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
decltype(auto) row(Matrix< MT, SO > &, RRAs...)
Creating a view on a specific row of the given matrix.
Definition: Row.h:131
ElementType_< RT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: DMatSMatMultExpr.h:129
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:1028
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:816
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:131
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3080
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:789
decltype(auto) declherm(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as Hermitian.
Definition: DMatDeclHermExpr.h:1028
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatSMatMultExpr.h:235
Header file for the IsComputation type trait class.
Header file for the IsBuiltin type trait.
Flag for Hermitian matrices.
Definition: DMatSMatMultExpr.h:149
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
Compile time logical 'or' evaluation.The Or alias declaration performs at compile time a logical 'or'...
Definition: Or.h:76
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80
IfTrue_< evaluateLeft, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense matrix operand.
Definition: DMatSMatMultExpr.h:247
Generic wrapper for the decldiag() function.
Definition: DeclDiag.h:58
RightOperand rhs_
Right-hand side sparse matrix of the multiplication expression.
Definition: DMatSMatMultExpr.h:430
Header file for the DeclHerm functor.
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:628
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatSMatMultExpr.h:236
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:908
Header file for the IsResizable type trait.
Header file for the Size 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:402
#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:130
LeftOperand lhs_
Left-hand side dense matrix of the multiplication expression.
Definition: DMatSMatMultExpr.h:429