35 #ifndef _BLAZE_MATH_EXPRESSIONS_TSMATTDMATMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_TSMATTDMATMULTEXPR_H_ 121 template<
typename MT1
127 class TSMatTDMatMultExpr
128 :
public MatMatMultExpr< DenseMatrix< TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>, true > >
129 ,
private Computation
143 static constexpr
bool evaluateLeft = ( IsComputation_v<MT1> || RequiresEvaluation_v<MT1> );
148 static constexpr
bool evaluateRight = ( IsComputation_v<MT2> || RequiresEvaluation_v<MT2> );
152 static constexpr
bool SYM = ( SF && !( HF || LF || UF ) );
153 static constexpr
bool HERM = ( HF && !( LF || UF ) );
154 static constexpr
bool LOW = ( LF || ( ( SF || HF ) && UF ) );
155 static constexpr
bool UPP = ( UF || ( ( SF || HF ) && LF ) );
165 template<
typename T1,
typename T2,
typename T3 >
166 static constexpr
bool CanExploitSymmetry_v = ( IsSymmetric_v<T2> || IsSymmetric_v<T3> );
176 template<
typename T1,
typename T2,
typename T3 >
177 static constexpr
bool IsEvaluationRequired_v =
187 template<
typename T1,
typename T2,
typename T3 >
188 static constexpr
bool UseOptimizedKernel_v =
189 ( useOptimizedKernels &&
191 !IsResizable_v< ElementType_t<T1> > &&
192 !IsResizable_v<ET1> );
201 template<
typename T1,
typename T2,
typename T3 >
202 static constexpr
bool UseDefaultKernel_v = !UseOptimizedKernel_v<T1,T2,T3>;
299 if( IsDiagonal_v<MT1> ) {
302 else if( IsDiagonal_v<MT2> ) {
305 else if( IsTriangular_v<MT1> || IsTriangular_v<MT2> ) {
306 const size_t begin( ( IsUpper_v<MT1> )
307 ?( ( IsLower_v<MT2> )
308 ?(
max( ( IsStrictlyUpper_v<MT1> ? i+1UL : i )
309 , ( IsStrictlyLower_v<MT2> ? j+1UL : j ) ) )
310 :( IsStrictlyUpper_v<MT1> ? i+1UL : i ) )
311 :( ( IsLower_v<MT2> )
312 ?( IsStrictlyLower_v<MT2> ? j+1UL : j )
314 const size_t end( ( IsLower_v<MT1> )
315 ?( ( IsUpper_v<MT2> )
316 ?(
min( ( IsStrictlyLower_v<MT1> ? i : i+1UL )
317 , ( IsStrictlyUpper_v<MT2> ? j : j+1UL ) ) )
318 :( IsStrictlyLower_v<MT1> ? i : i+1UL ) )
319 :( ( IsUpper_v<MT2> )
320 ?( IsStrictlyUpper_v<MT2> ? j : j+1UL )
321 :(
lhs_.columns() ) ) );
345 if( i >=
lhs_.rows() ) {
348 if( j >=
rhs_.columns() ) {
360 inline size_t rows() const noexcept {
371 return rhs_.columns();
401 template<
typename T >
402 inline bool canAlias(
const T* alias )
const noexcept {
403 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
413 template<
typename T >
414 inline bool isAliased(
const T* alias )
const noexcept {
415 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
425 return rhs_.isAligned();
435 return (
rows() *
columns() >= SMP_TSMATTDMATMULT_THRESHOLD ) && !IsDiagonal_v<MT2>;
458 template<
typename MT
478 TSMatTDMatMultExpr::selectAssignKernel( ~lhs, A, B );
494 template<
typename MT3
497 static inline void selectAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
499 const size_t size( C.rows() * C.columns() );
501 if( ( IsRowMajorMatrix_v<MT3> &&
size < TSMATTDMATMULT_THRESHOLD ) ||
502 ( IsColumnMajorMatrix_v<MT3> &&
size < 625UL ) )
503 selectSmallAssignKernel( C, A, B );
505 selectLargeAssignKernel( C, A, B );
525 template<
typename MT3
528 static inline void selectDefaultAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
532 if( IsDiagonal_v<MT5> )
534 for(
size_t i=0UL; i<A.columns(); ++i )
536 const auto end( A.end(i) );
537 auto element( A.begin(i) );
539 for( ; element!=
end; ++element ) {
540 C(element->index(),i) = element->value() * B(i,i);
546 const size_t block( 64UL );
548 for(
size_t jj=0UL; jj<B.columns(); jj+=block )
550 const size_t jpos( ( jj+block > B.columns() )?( B.columns() ):( jj+block ) );
552 for(
size_t i=0UL; i<A.columns(); ++i )
554 const auto end( A.end(i) );
555 auto element( A.begin(i) );
557 for( ; element!=
end; ++element )
559 const size_t i1( element->index() );
561 const size_t jbegin( ( IsUpper_v<MT5> )
563 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
564 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
566 const size_t jend( ( IsLower_v<MT5> )
568 ?(
min( i1+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
569 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
570 :(
LOW ?
min(i1+1UL,jpos) : jpos ) );
575 for(
size_t j=jbegin; j<jend; ++j ) {
577 C(i1,j) = element->value() * B(i,j);
579 C(i1,j) += element->value() * B(i,j);
587 for(
size_t j=0UL; j<B.columns(); ++j ) {
588 for(
size_t i=j+1UL; i<A.rows(); ++i ) {
589 C(i,j) =
HERM ?
conj( C(j,i) ) : C(j,i);
611 template<
typename MT3
614 static inline auto selectSmallAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
615 -> EnableIf_t< UseDefaultKernel_v<MT3,MT4,MT5> >
617 selectDefaultAssignKernel( C, A, B );
637 template<
typename MT3
640 static inline auto selectSmallAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
641 -> EnableIf_t< UseOptimizedKernel_v<MT3,MT4,MT5> >
643 const size_t block( IsRowMajorMatrix_v<MT3> ? 128UL : 64UL );
645 for(
size_t jj=0UL; jj<B.columns(); jj+=block )
647 const size_t jpos( ( jj+block > B.columns() )?( B.columns() ):( jj+block ) );
649 for(
size_t i=0UL; i<A.rows(); ++i ) {
650 for(
size_t j=jj; j<jpos; ++j ) {
655 for(
size_t i=0UL; i<A.columns(); ++i )
657 const auto end( A.end(i) );
658 auto element( A.begin(i) );
660 const size_t nonzeros( A.nonZeros(i) );
661 const size_t kpos( nonzeros &
size_t(-4) );
664 for(
size_t k=0UL; k<kpos; k+=4UL )
666 const size_t i1( element->index() );
667 const ET1 v1( element->value() );
669 const size_t i2( element->index() );
670 const ET1 v2( element->value() );
672 const size_t i3( element->index() );
673 const ET1 v3( element->value() );
675 const size_t i4( element->index() );
676 const ET1 v4( element->value() );
681 const size_t jbegin( ( IsUpper_v<MT5> )
683 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
684 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
686 const size_t jend( ( IsLower_v<MT5> )
688 ?(
min( i4+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
689 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
690 :(
LOW ?
min(i4+1UL,jpos) : jpos ) );
695 for(
size_t j=jbegin; j<jend; ++j ) {
696 C(i1,j) += v1 * B(i,j);
697 C(i2,j) += v2 * B(i,j);
698 C(i3,j) += v3 * B(i,j);
699 C(i4,j) += v4 * B(i,j);
703 for( ; element!=
end; ++element )
705 const size_t i1( element->index() );
707 const size_t jbegin( ( IsUpper_v<MT5> )
709 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
710 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
712 const size_t jend( ( IsLower_v<MT5> )
714 ?(
min( i1+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
715 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
716 :(
LOW ?
min(i1+1UL,jpos) : jpos ) );
721 for(
size_t j=jbegin; j<jend; ++j ) {
722 C(i1,j) += element->value() * B(i,j);
729 for(
size_t j=0UL; j<B.columns(); ++j ) {
730 for(
size_t i=j+1UL; i<A.rows(); ++i ) {
731 C(i,j) =
HERM ?
conj( C(j,i) ) : C(j,i);
753 template<
typename MT3
756 static inline auto selectLargeAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
757 -> EnableIf_t< UseDefaultKernel_v<MT3,MT4,MT5> >
759 selectDefaultAssignKernel( C, A, B );
779 template<
typename MT3
782 static inline auto selectLargeAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
783 -> EnableIf_t< UseOptimizedKernel_v<MT3,MT4,MT5> >
787 const ForwardFunctor fwd;
789 const OppositeType_t<MT4> tmp(
serial( A ) );
790 assign( C, fwd( tmp * B ) );
808 template<
typename MT
811 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
815 using TmpType = If_t< SO, ResultType, OppositeType >;
827 const ForwardFunctor fwd;
829 const TmpType tmp(
serial( rhs ) );
830 assign( ~lhs, fwd( tmp ) );
850 template<
typename MT
853 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
862 const ForwardFunctor fwd;
864 if( IsSymmetric_v<MT1> && IsSymmetric_v<MT2> )
865 assign( ~lhs, fwd(
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) ) );
866 else if( IsSymmetric_v<MT1> )
867 assign( ~lhs, fwd(
trans( rhs.lhs_ ) * rhs.rhs_ ) );
869 assign( ~lhs, fwd( rhs.lhs_ *
trans( rhs.rhs_ ) ) );
887 template<
typename MT
889 friend inline auto addAssign( DenseMatrix<MT,SO>& lhs,
const TSMatTDMatMultExpr& rhs )
890 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
907 TSMatTDMatMultExpr::selectAddAssignKernel( ~lhs, A, B );
923 template<
typename MT3
926 static inline void selectAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
928 const size_t size( C.rows() * C.columns() );
930 if( ( IsRowMajorMatrix_v<MT3> &&
size < TSMATTDMATMULT_THRESHOLD ) ||
931 ( IsColumnMajorMatrix_v<MT3> &&
size < 625UL ) )
932 selectSmallAddAssignKernel( C, A, B );
934 selectLargeAddAssignKernel( C, A, B );
954 template<
typename MT3
957 static inline void selectDefaultAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
959 if( IsDiagonal_v<MT5> )
961 for(
size_t i=0UL; i<A.columns(); ++i )
963 const auto end( A.end(i) );
964 auto element( A.begin(i) );
966 for( ; element!=
end; ++element ) {
967 C(element->index(),i) += element->value() * B(i,i);
973 const size_t block( 64UL );
975 for(
size_t jj=0UL; jj<B.columns(); jj+=block )
977 const size_t jpos( ( jj+block > B.columns() )?( B.columns() ):( jj+block ) );
979 for(
size_t i=0UL; i<A.columns(); ++i )
981 const auto end( A.end(i) );
982 auto element( A.begin(i) );
984 for( ; element!=
end; ++element )
986 const size_t i1( element->index() );
988 const size_t jbegin( ( IsUpper_v<MT5> )
990 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
991 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
992 :(
UPP ?
max(i1,jj) : jj ) );
993 const size_t jend( ( IsLower_v<MT5> )
995 ?(
min( i1+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
996 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
997 :(
LOW ?
min(i1+1UL,jpos) : jpos ) );
1002 for(
size_t j=jbegin; j<jend; ++j ) {
1003 C(i1,j) += element->value() * B(i,j);
1027 template<
typename MT3
1030 static inline auto selectSmallAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1031 -> EnableIf_t< UseDefaultKernel_v<MT3,MT4,MT5> >
1033 selectDefaultAddAssignKernel( C, A, B );
1053 template<
typename MT3
1056 static inline auto selectSmallAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1057 -> EnableIf_t< UseOptimizedKernel_v<MT3,MT4,MT5> >
1059 const size_t block( IsRowMajorMatrix_v<MT3> ? 128UL : 64UL );
1061 for(
size_t jj=0UL; jj<B.columns(); jj+=block )
1063 const size_t jpos( ( jj+block > B.columns() )?( B.columns() ):( jj+block ) );
1065 for(
size_t i=0UL; i<A.columns(); ++i )
1067 const auto end( A.end(i) );
1068 auto element( A.begin(i) );
1070 const size_t nonzeros( A.nonZeros(i) );
1071 const size_t kpos( nonzeros &
size_t(-4) );
1074 for(
size_t k=0UL; k<kpos; k+=4UL )
1076 const size_t i1( element->index() );
1077 const ET1 v1( element->value() );
1079 const size_t i2( element->index() );
1080 const ET1 v2( element->value() );
1082 const size_t i3( element->index() );
1083 const ET1 v3( element->value() );
1085 const size_t i4( element->index() );
1086 const ET1 v4( element->value() );
1091 const size_t jbegin( ( IsUpper_v<MT5> )
1093 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
1094 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
1095 :(
UPP ?
max(i1,jj) : jj ) );
1096 const size_t jend( ( IsLower_v<MT5> )
1098 ?(
min( i4+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
1099 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
1100 :(
LOW ?
min(i4+1UL,jpos) : jpos ) );
1102 if( jbegin >= jend )
1105 for(
size_t j=jbegin; j<jend; ++j ) {
1106 C(i1,j) += v1 * B(i,j);
1107 C(i2,j) += v2 * B(i,j);
1108 C(i3,j) += v3 * B(i,j);
1109 C(i4,j) += v4 * B(i,j);
1113 for( ; element!=
end; ++element )
1115 const size_t i1( element->index() );
1117 const size_t jbegin( ( IsUpper_v<MT5> )
1119 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
1120 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
1121 :(
UPP ?
max(i1,jj) : jj ) );
1122 const size_t jend( ( IsLower_v<MT5> )
1124 ?(
min( i1+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
1125 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
1126 :(
LOW ?
min(i1+1UL,jpos) : jpos ) );
1128 if( jbegin >= jend )
1131 for(
size_t j=jbegin; j<jend; ++j ) {
1132 C(i1,j) += element->value() * B(i,j);
1155 template<
typename MT3
1158 static inline auto selectLargeAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1159 -> EnableIf_t< UseDefaultKernel_v<MT3,MT4,MT5> >
1161 selectDefaultAddAssignKernel( C, A, B );
1181 template<
typename MT3
1184 static inline auto selectLargeAddAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1185 -> EnableIf_t< UseOptimizedKernel_v<MT3,MT4,MT5> >
1189 const ForwardFunctor fwd;
1191 const OppositeType_t<MT4> tmp(
serial( A ) );
1192 addAssign( C, fwd( tmp * B ) );
1212 template<
typename MT
1215 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1224 const ForwardFunctor fwd;
1226 if( IsSymmetric_v<MT1> && IsSymmetric_v<MT2> )
1227 addAssign( ~lhs, fwd(
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) ) );
1228 else if( IsSymmetric_v<MT1> )
1229 addAssign( ~lhs, fwd(
trans( rhs.lhs_ ) * rhs.rhs_ ) );
1231 addAssign( ~lhs, fwd( rhs.lhs_ *
trans( rhs.rhs_ ) ) );
1253 template<
typename MT
1255 friend inline auto subAssign( DenseMatrix<MT,SO>& lhs,
const TSMatTDMatMultExpr& rhs )
1256 -> DisableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1273 TSMatTDMatMultExpr::selectSubAssignKernel( ~lhs, A, B );
1289 template<
typename MT3
1292 static inline void selectSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1294 const size_t size( C.rows() * C.columns() );
1296 if( ( IsRowMajorMatrix_v<MT3> &&
size < TSMATTDMATMULT_THRESHOLD ) ||
1297 ( IsColumnMajorMatrix_v<MT3> &&
size < 625UL ) )
1298 selectSmallSubAssignKernel( C, A, B );
1300 selectLargeSubAssignKernel( C, A, B );
1320 template<
typename MT3
1323 static inline void selectDefaultSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1325 if( IsDiagonal_v<MT5> )
1327 for(
size_t i=0UL; i<A.columns(); ++i )
1329 const auto end( A.end(i) );
1330 auto element( A.begin(i) );
1332 for( ; element!=
end; ++element ) {
1333 C(element->index(),i) -= element->value() * B(i,i);
1339 const size_t block( 64UL );
1341 for(
size_t jj=0UL; jj<B.columns(); jj+=block )
1343 const size_t jpos( ( jj+block > B.columns() )?( B.columns() ):( jj+block ) );
1345 for(
size_t i=0UL; i<A.columns(); ++i )
1347 const auto end( A.end(i) );
1348 auto element( A.begin(i) );
1350 for( ; element!=
end; ++element )
1352 const size_t i1( element->index() );
1354 const size_t jbegin( ( IsUpper_v<MT5> )
1356 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
1357 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
1358 :(
UPP ?
max(i1,jj) : jj ) );
1359 const size_t jend( ( IsLower_v<MT5> )
1361 ?(
min( i1+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
1362 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
1363 :(
LOW ?
min(i1+1UL,jpos) : jpos ) );
1365 if( jbegin >= jend )
1368 for(
size_t j=jbegin; j<jend; ++j ) {
1369 C(i1,j) -= element->value() * B(i,j);
1393 template<
typename MT3
1396 static inline auto selectSmallSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1397 -> EnableIf_t< UseDefaultKernel_v<MT3,MT4,MT5> >
1399 selectDefaultSubAssignKernel( C, A, B );
1419 template<
typename MT3
1422 static inline auto selectSmallSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1423 -> EnableIf_t< UseOptimizedKernel_v<MT3,MT4,MT5> >
1425 const size_t block( IsRowMajorMatrix_v<MT3> ? 128UL : 64UL );
1427 for(
size_t jj=0UL; jj<B.columns(); jj+=block )
1429 const size_t jpos( ( jj+block > B.columns() )?( B.columns() ):( jj+block ) );
1431 for(
size_t i=0UL; i<A.columns(); ++i )
1433 const auto end( A.end(i) );
1434 auto element( A.begin(i) );
1436 const size_t nonzeros( A.nonZeros(i) );
1437 const size_t kpos( nonzeros &
size_t(-4) );
1440 for(
size_t k=0UL; k<kpos; k+=4UL )
1442 const size_t i1( element->index() );
1443 const ET1 v1( element->value() );
1445 const size_t i2( element->index() );
1446 const ET1 v2( element->value() );
1448 const size_t i3( element->index() );
1449 const ET1 v3( element->value() );
1451 const size_t i4( element->index() );
1452 const ET1 v4( element->value() );
1457 const size_t jbegin( ( IsUpper_v<MT5> )
1459 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
1460 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
1461 :(
UPP ?
max(i1,jj) : jj ) );
1462 const size_t jend( ( IsLower_v<MT5> )
1464 ?(
min( i4+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
1465 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
1466 :(
LOW ?
min(i4+1UL,jpos) : jpos ) );
1468 if( jbegin >= jend )
1471 for(
size_t j=jbegin; j<jend; ++j ) {
1472 C(i1,j) -= v1 * B(i,j);
1473 C(i2,j) -= v2 * B(i,j);
1474 C(i3,j) -= v3 * B(i,j);
1475 C(i4,j) -= v4 * B(i,j);
1479 for( ; element!=
end; ++element )
1481 const size_t i1( element->index() );
1483 const size_t jbegin( ( IsUpper_v<MT5> )
1485 ?(
max( i1, IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) )
1486 :(
max( IsStrictlyUpper_v<MT5> ? i+1UL : i, jj ) ) )
1487 :(
UPP ?
max(i1,jj) : jj ) );
1488 const size_t jend( ( IsLower_v<MT5> )
1490 ?(
min( i1+1UL, IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) )
1491 :(
min( IsStrictlyLower_v<MT5> ? i : i+1UL, jpos ) ) )
1492 :(
LOW ?
min(i1+1UL,jpos) : jpos ) );
1494 if( jbegin >= jend )
1497 for(
size_t j=jbegin; j<jend; ++j ) {
1498 C(i1,j) -= element->value() * B(i,j);
1521 template<
typename MT3
1524 static inline auto selectLargeSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1525 -> EnableIf_t< UseDefaultKernel_v<MT3,MT4,MT5> >
1527 selectDefaultSubAssignKernel( C, A, B );
1547 template<
typename MT3
1550 static inline auto selectLargeSubAssignKernel( MT3& C,
const MT4& A,
const MT5& B )
1551 -> EnableIf_t< UseOptimizedKernel_v<MT3,MT4,MT5> >
1555 const ForwardFunctor fwd;
1557 const OppositeType_t<MT4> tmp(
serial( A ) );
1558 subAssign( C, fwd( tmp * B ) );
1578 template<
typename MT
1581 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1590 const ForwardFunctor fwd;
1592 if( IsSymmetric_v<MT1> && IsSymmetric_v<MT2> )
1593 subAssign( ~lhs, fwd(
trans( rhs.lhs_ ) *
trans( rhs.rhs_ ) ) );
1594 else if( IsSymmetric_v<MT1> )
1595 subAssign( ~lhs, fwd(
trans( rhs.lhs_ ) * rhs.rhs_ ) );
1597 subAssign( ~lhs, fwd( rhs.lhs_ *
trans( rhs.rhs_ ) ) );
1619 template<
typename MT
1621 friend inline void schurAssign( DenseMatrix<MT,SO>& lhs,
const TSMatTDMatMultExpr& rhs )
1633 schurAssign( ~lhs, tmp );
1666 template<
typename MT
1669 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1707 template<
typename MT
1710 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1714 using TmpType = If_t< SO, ResultType, OppositeType >;
1726 const ForwardFunctor fwd;
1728 const TmpType tmp( rhs );
1749 template<
typename MT
1752 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1761 const ForwardFunctor fwd;
1763 if( IsSymmetric_v<MT1> && IsSymmetric_v<MT2> )
1765 else if( IsSymmetric_v<MT1> )
1789 template<
typename MT
1792 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1829 template<
typename MT
1832 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1841 const ForwardFunctor fwd;
1843 if( IsSymmetric_v<MT1> && IsSymmetric_v<MT2> )
1845 else if( IsSymmetric_v<MT1> )
1873 template<
typename MT
1876 -> EnableIf_t< IsEvaluationRequired_v<MT,MT1,MT2> >
1913 template<
typename MT
1916 -> EnableIf_t< CanExploitSymmetry_v<MT,MT1,MT2> >
1925 const ForwardFunctor fwd;
1927 if( IsSymmetric_v<MT1> && IsSymmetric_v<MT2> )
1929 else if( IsSymmetric_v<MT1> )
1954 template<
typename MT
2020 template<
typename MT1
2022 , DisableIf_t< ( IsIdentity_v<MT1> &&
2023 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > ) ||
2024 IsZero_v<MT1> >* =
nullptr >
2025 inline const TSMatTDMatMultExpr<MT1,MT2,false,false,false,false>
2026 tsmattdmatmult(
const SparseMatrix<MT1,true>& lhs,
const DenseMatrix<MT2,true>& rhs )
2032 return TSMatTDMatMultExpr<MT1,MT2,false,false,false,false>( ~lhs, ~rhs );
2052 template<
typename MT1
2054 , EnableIf_t< IsIdentity_v<MT1> &&
2055 IsSame_v< ElementType_t<MT1>, ElementType_t<MT2> > >* =
nullptr >
2057 tsmattdmatmult(
const SparseMatrix<MT1,true>& lhs,
const DenseMatrix<MT2,true>& rhs )
2084 template<
typename MT1
2086 , EnableIf_t< IsZero_v<MT1> >* =
nullptr >
2087 inline decltype(
auto)
2088 tsmattdmatmult( const SparseMatrix<MT1,true>& lhs, const DenseMatrix<MT2,true>& rhs )
2094 using ReturnType =
const MultTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
2134 template<
typename MT1
2136 inline decltype(
auto)
2145 return tsmattdmatmult( ~lhs, ~rhs );
2182 template<
typename MT1
2188 inline decltype(
auto)
declsym( const TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>& dm )
2196 using ReturnType =
const TSMatTDMatMultExpr<MT1,MT2,true,HF,LF,UF>;
2197 return ReturnType( dm.leftOperand(), dm.rightOperand() );
2227 template<
typename MT1
2233 inline decltype(
auto)
declherm( const TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>& dm )
2241 using ReturnType =
const TSMatTDMatMultExpr<MT1,MT2,SF,true,LF,UF>;
2242 return ReturnType( dm.leftOperand(), dm.rightOperand() );
2272 template<
typename MT1
2278 inline decltype(
auto)
decllow( const TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>& dm )
2286 using ReturnType =
const TSMatTDMatMultExpr<MT1,MT2,SF,HF,true,UF>;
2287 return ReturnType( dm.leftOperand(), dm.rightOperand() );
2317 template<
typename MT1
2323 inline decltype(
auto)
declupp( const TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>& dm )
2331 using ReturnType =
const TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,true>;
2332 return ReturnType( dm.leftOperand(), dm.rightOperand() );
2362 template<
typename MT1
2368 inline decltype(
auto)
decldiag( const TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>& dm )
2376 using ReturnType =
const TSMatTDMatMultExpr<MT1,MT2,SF,HF,true,true>;
2377 return ReturnType( dm.leftOperand(), dm.rightOperand() );
2393 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2394 struct Size< TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>, 0UL >
2395 :
public Size<MT1,0UL>
2398 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2399 struct Size< TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF>, 1UL >
2400 :
public Size<MT2,1UL>
2416 template<
typename MT1,
typename MT2,
bool SF,
bool HF,
bool LF,
bool UF >
2417 struct IsAligned< TSMatTDMatMultExpr<MT1,MT2,SF,HF,LF,UF> >
2418 :
public IsAligned<MT2>
decltype(auto) subvector(Vector< VT, TF > &, RSAs...)
Creating a view on a specific subvector of the given vector.
Definition: Subvector.h:329
ResultType_t< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: TSMatTDMatMultExpr.h:134
If_t< evaluateRight, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense matrix operand.
Definition: TSMatTDMatMultExpr.h:262
#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.
Header file for the decldiag trait.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: TSMatTDMatMultExpr.h:434
decltype(auto) decldiag(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as diagonal.
Definition: DMatDeclDiagExpr.h:975
Header file for basic type definitions.
Expression object for transpose sparse matrix-transpose dense matrix multiplications.The TSMatTDMatMultExpr class represents the compile time expression for multiplications between a column-major sparse matrix and a column-major dense matrix.
Definition: Forward.h:177
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
Header file for the declherm trait.
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.The ResultType_t alias declaration provides ...
Definition: Aliases.h:390
static constexpr bool LOW
Flag for lower matrices.
Definition: TSMatTDMatMultExpr.h:154
Header file for the serial shim.
static constexpr bool evaluateLeft
Compilation switch for the composite type of the left-hand side sparse matrix expression.
Definition: TSMatTDMatMultExpr.h:143
Header file for the IsDiagonal type trait.
Base template for the DeclUppTrait class.
Definition: DeclUppTrait.h:134
CompositeType_t< MT1 > CT1
Composite type of the left-hand side sparse matrix expression.
Definition: TSMatTDMatMultExpr.h:137
#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
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: TSMatTDMatMultExpr.h:424
Header file for the DeclUpp functor.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: TSMatTDMatMultExpr.h:414
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:591
static constexpr bool smpAssignable
Compilation flag for SMP assignments.
Definition: CompressedMatrix.h:3113
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.
decltype(auto) declupp(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as upper.
Definition: DMatDeclUppExpr.h:1002
Header file for the Computation base class.
Header file for the MatMatMultExpr base class.
Header file for the reset shim.
Constraints on the storage order of matrix types.
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: TSMatTDMatMultExpr.h:267
Header file for the RequiresEvaluation type trait.
System settings for performance optimizations.
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
RightOperand rhs_
Right-hand side dense matrix of the multiplication expression.
Definition: TSMatTDMatMultExpr.h:442
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
const ResultType CompositeType
Data type for composite expression templates.
Definition: TSMatTDMatMultExpr.h:250
Constraint on the data type.
Constraint on the data type.
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: TSMatTDMatMultExpr.h:402
Headerfile for the generic max algorithm.
Header file for the DisableIf class template.
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 DeclLow functor.
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: TSMatTDMatMultExpr.h:270
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
If_t< IsExpression_v< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side sparse matrix expression.
Definition: TSMatTDMatMultExpr.h:253
#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
static constexpr bool UPP
Flag for upper matrices.
Definition: TSMatTDMatMultExpr.h:155
Generic wrapper for the decllow() function.
Definition: DeclLow.h:58
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
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: TSMatTDMatMultExpr.h:295
Header file for the decllow trait.
#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.
LeftOperand lhs_
Left-hand side sparse matrix of the multiplication expression.
Definition: TSMatTDMatMultExpr.h:441
If_t< evaluateLeft, const RT1, CT1 > LT
Type for the assignment of the left-hand side sparse matrix operand.
Definition: TSMatTDMatMultExpr.h:259
static constexpr bool evaluateRight
Compilation switch for the composite type of the right-hand side dense matrix expression.
Definition: TSMatTDMatMultExpr.h:148
TSMatTDMatMultExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the TSMatTDMatMultExpr class.
Definition: TSMatTDMatMultExpr.h:280
decltype(auto) decllow(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as lower.
Definition: DMatDeclLowExpr.h:1002
Header file for the IsLower type trait.
Header file for the IsAligned type trait.
ResultType_t< MT1 > RT1
Result type of the left-hand side sparse matrix expression.
Definition: TSMatTDMatMultExpr.h:133
static constexpr bool SYM
Flag for symmetric matrices.
Definition: TSMatTDMatMultExpr.h:152
Generic wrapper for the null function.
Definition: Noop.h:59
Header file for the IsTriangular type trait.
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: TSMatTDMatMultExpr.h:360
Base template for the DeclSymTrait class.
Definition: DeclSymTrait.h:134
LeftOperand leftOperand() const noexcept
Returns the left-hand side transpose sparse matrix operand.
Definition: TSMatTDMatMultExpr.h:380
Constraints on the storage order of matrix types.
ElementType_t< RT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: TSMatTDMatMultExpr.h:135
Header file for the exception macros of the math module.
typename If_t< HERM, DeclHermTrait< MultTrait_t< RT1, RT2 > >, If_t< SYM, DeclSymTrait< MultTrait_t< RT1, RT2 > >, If_t< LOW, If_t< UPP, DeclDiagTrait< MultTrait_t< RT1, RT2 > >, DeclLowTrait< MultTrait_t< RT1, RT2 > > >, If_t< UPP, DeclUppTrait< MultTrait_t< RT1, RT2 > >, MultTrait< RT1, RT2 > > > > >::Type ResultType
Result type for expression template evaluations.
Definition: TSMatTDMatMultExpr.h:244
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
Header file for the DeclDiag functor.
Constraint on the data type.
Header file for all forward declarations for expression class templates.
const ElementType ReturnType
Return type for expression template evaluations.
Definition: TSMatTDMatMultExpr.h:249
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
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: TSMatTDMatMultExpr.h:247
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.The OppositeType_t alias declaration provi...
Definition: Aliases.h:270
Header file for the conjugate shim.
Header file for the declupp trait.
#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
CompositeType_t< MT2 > CT2
Composite type of the right-hand side dense matrix expression.
Definition: TSMatTDMatMultExpr.h:138
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.
Base template for the DeclHermTrait class.
Definition: DeclHermTrait.h:134
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.The CompositeType_t alias declaration pro...
Definition: Aliases.h:90
Base template for the MultTrait class.
Definition: MultTrait.h:146
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
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: TSMatTDMatMultExpr.h:246
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.
Header file for the declsym 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
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: TSMatTDMatMultExpr.h:248
decltype(auto) declsym(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as symmetric.
Definition: DMatDeclSymExpr.h:1002
Header file for the isDefault shim.
constexpr size_t size(const Matrix< MT, SO > &matrix) noexcept
Returns the total number of elements of the matrix.
Definition: Matrix.h:530
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.
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:808
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
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
ElementType_t< RT2 > ET2
Element type of the right-hand side sparse matrix expression.
Definition: TSMatTDMatMultExpr.h:136
static constexpr bool HERM
Flag for Hermitian matrices.
Definition: TSMatTDMatMultExpr.h:153
#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
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
Base template for the DeclLowTrait class.
Definition: DeclLowTrait.h:134
decltype(auto) declherm(const DenseMatrix< MT, SO > &dm)
Declares the given dense matrix expression dm as Hermitian.
Definition: DMatDeclHermExpr.h:1002
Header file for the IsRowMajorMatrix type trait.
Header file for the IsComputation type trait class.
RightOperand rightOperand() const noexcept
Returns the right-hand side transpose dense matrix operand.
Definition: TSMatTDMatMultExpr.h:390
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
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: TSMatTDMatMultExpr.h:370
If_t< IsExpression_v< MT2 >, const MT2, const MT2 &> RightOperand
Composite type of the right-hand side dense matrix expression.
Definition: TSMatTDMatMultExpr.h:256
Header file for the IntegralConstant class template.
Generic wrapper for the decldiag() function.
Definition: DeclDiag.h:58
Header file for the DeclHerm functor.
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:631
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
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition: DMatMapExpr.h:1326
Constraint on the data type.
Generic wrapper for the declsym() function.
Definition: DeclSym.h:58
Base template for the DeclDiagTrait class.
Definition: DeclDiagTrait.h:134
bool isSquare(const Matrix< MT, SO > &matrix) noexcept
Checks if the given matrix is a square matrix.
Definition: Matrix.h:951
Header file for the IsResizable type trait.
Header file for the Size 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.
#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 DeclSym functor.
#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.
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: TSMatTDMatMultExpr.h:344