35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATSCALARMULTEXPR_H_
36 #define _BLAZE_MATH_EXPRESSIONS_DMATSCALARMULTEXPR_H_
120 template<
typename MT
159 template<
typename MT2 >
162 enum :
bool { value = useAssign };
175 template<
typename MT2 >
176 struct UseSMPAssign {
177 enum :
bool { value = ( !MT2::smpAssignable || !MT::smpAssignable ) && useAssign };
234 : iterator_( iterator )
320 inline auto load() const noexcept {
448 enum :
bool { simdEnabled = MT::simdEnabled &&
454 enum :
bool { smpAssignable = MT::smpAssignable };
496 inline ReturnType
at(
size_t i,
size_t j )
const {
550 inline size_t rows() const noexcept {
591 template<
typename T >
592 inline bool canAlias(
const T* alias )
const noexcept {
603 template<
typename T >
604 inline bool isAliased(
const T* alias )
const noexcept {
605 return matrix_.isAliased( alias );
625 return matrix_.canSMPAssign() ||
626 (
rows() *
columns() >= SMP_DMATSCALARMULT_THRESHOLD );
650 template<
typename MT2
661 assign( ~lhs, (~lhs) * rhs.
scalar_ );
680 template<
typename MT2
710 template<
typename MT2
712 friend inline EnableIf_< UseAssign<MT2> >
724 const ResultType tmp(
serial( rhs ) );
725 addAssign( ~lhs, tmp );
748 template<
typename MT2
750 friend inline EnableIf_< UseAssign<MT2> >
762 const ResultType tmp(
serial( rhs ) );
763 subAssign( ~lhs, tmp );
794 template<
typename MT2
796 friend inline EnableIf_< UseSMPAssign<MT2> >
824 template<
typename MT2
826 friend inline EnableIf_< UseSMPAssign<MT2> >
835 (~lhs) *= rhs.scalar_;
854 template<
typename MT2
856 friend inline EnableIf_< UseSMPAssign<MT2> >
868 const ResultType tmp( rhs );
892 template<
typename MT2
894 friend inline EnableIf_< UseSMPAssign<MT2> >
906 const ResultType tmp( rhs );
961 template<
typename MT
963 inline const DMatScalarMultExpr<MT,UnderlyingBuiltin_<MT>,SO>
1003 template<
typename T1
1006 inline const EnableIf_< IsNumeric<T2>, MultExprTrait_<T1,T2> >
1037 template<
typename T1
1040 inline const EnableIf_< IsNumeric<T1>, MultExprTrait_<T1,T2> >
1070 template<
typename VT
1073 inline const DMatScalarMultExpr<VT,ST,TF>
1074 operator-(
const DMatScalarMultExpr<VT,ST,TF>& dm )
1078 return DMatScalarMultExpr<VT,ST,TF>( dm.leftOperand(), -dm.rightOperand() );
1105 template<
typename MT
1109 inline const EnableIf_< IsNumeric<ST2>, MultExprTrait_< DMatScalarMultExpr<MT,ST1,SO>, ST2 > >
1110 operator*(
const DMatScalarMultExpr<MT,ST1,SO>& mat, ST2 scalar )
1114 return mat.leftOperand() * ( mat.rightOperand() * scalar );
1133 template<
typename ST1
1137 inline const EnableIf_< IsNumeric<ST1>, MultExprTrait_< ST1, DMatScalarMultExpr<MT,ST2,SO> > >
1138 operator*( ST1 scalar,
const DMatScalarMultExpr<MT,ST2,SO>& mat )
1142 return mat.leftOperand() * ( scalar * mat.rightOperand() );
1161 template<
typename MT
1165 inline const EnableIf_< And< IsNumeric<ST2>, Or< IsInvertible<ST1>, IsInvertible<ST2> > >
1166 , DivExprTrait_< DMatScalarMultExpr<MT,ST1,SO>, ST2 > >
1167 operator/(
const DMatScalarMultExpr<MT,ST1,SO>& mat, ST2 scalar )
1171 return mat.leftOperand() * ( mat.rightOperand() / scalar );
1191 template<
typename MT
1195 inline const MultExprTrait_< DMatScalarMultExpr<MT,ST,SO>, VT >
1196 operator*(
const DMatScalarMultExpr<MT,ST,SO>& mat,
const DenseVector<VT,false>& vec )
1200 return ( mat.leftOperand() * (~vec) ) * mat.rightOperand();
1220 template<
typename VT
1224 inline const MultExprTrait_< VT, DMatScalarMultExpr<MT,ST,SO> >
1225 operator*(
const DenseVector<VT,true>& vec,
const DMatScalarMultExpr<MT,ST,SO>& mat )
1229 return ( (~vec) * mat.leftOperand() ) * mat.rightOperand();
1251 template<
typename MT
1256 inline const DVecScalarMultExpr< MultExprTrait_<MT,VT>, MultTrait_<ST1,ST2>,
false >
1257 operator*(
const DMatScalarMultExpr<MT,ST1,SO>& mat,
const DVecScalarMultExpr<VT,ST2,false>& vec )
1261 return ( mat.leftOperand() * vec.leftOperand() ) * ( mat.rightOperand() * vec.rightOperand() );
1283 template<
typename VT
1288 inline const MultExprTrait_< DVecScalarMultExpr<VT,ST1,true>, DMatScalarMultExpr<MT,ST2,SO> >
1289 operator*(
const DVecScalarMultExpr<VT,ST1,true>& vec,
const DMatScalarMultExpr<MT,ST2,SO>& mat )
1293 return ( vec.leftOperand() * mat.leftOperand() ) * ( vec.rightOperand() * mat.rightOperand() );
1313 template<
typename MT
1317 inline const MultExprTrait_< DMatScalarMultExpr<MT,ST,SO>, VT >
1318 operator*(
const DMatScalarMultExpr<MT,ST,SO>& mat,
const SparseVector<VT,false>& vec )
1322 return ( mat.leftOperand() * (~vec) ) * mat.rightOperand();
1342 template<
typename VT
1346 inline const MultExprTrait_< VT, DMatScalarMultExpr<MT,ST,SO> >
1347 operator*(
const SparseVector<VT,true>& vec,
const DMatScalarMultExpr<MT,ST,SO>& mat )
1351 return ( (~vec) * mat.leftOperand() ) * mat.rightOperand();
1373 template<
typename MT
1378 inline const MultExprTrait_< DMatScalarMultExpr<MT,ST1,SO>, SVecScalarMultExpr<VT,ST2,false> >
1379 operator*(
const DMatScalarMultExpr<MT,ST1,SO>& mat,
const SVecScalarMultExpr<VT,ST2,false>& vec )
1383 return ( mat.leftOperand() * vec.leftOperand() ) * ( mat.rightOperand() * vec.rightOperand() );
1405 template<
typename VT
1410 inline const MultExprTrait_< SVecScalarMultExpr<VT,ST1,true>, DMatScalarMultExpr<MT,ST2,SO> >
1411 operator*(
const SVecScalarMultExpr<VT,ST1,true>& vec,
const DMatScalarMultExpr<MT,ST2,SO>& mat )
1415 return ( vec.leftOperand() * mat.leftOperand() ) * ( vec.rightOperand() * mat.rightOperand() );
1435 template<
typename MT1
1440 inline const MultExprTrait_< DMatScalarMultExpr<MT1,ST,SO1>, MT2 >
1441 operator*(
const DMatScalarMultExpr<MT1,ST,SO1>& lhs,
const DenseMatrix<MT2,SO2>& rhs )
1445 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1465 template<
typename MT1
1470 inline const MultExprTrait_< MT1, DMatScalarMultExpr<MT2,ST,SO2> >
1471 operator*(
const DenseMatrix<MT1,SO1>& lhs,
const DMatScalarMultExpr<MT2,ST,SO2>& rhs )
1475 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1495 template<
typename MT1
1501 inline const MultExprTrait_< DMatScalarMultExpr<MT1,ST1,SO1>, DMatScalarMultExpr<MT2,ST2,SO2> >
1502 operator*(
const DMatScalarMultExpr<MT1,ST1,SO1>& lhs,
const DMatScalarMultExpr<MT2,ST2,SO2>& rhs )
1506 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1526 template<
typename MT1
1531 inline const MultExprTrait_< DMatScalarMultExpr<MT1,ST,SO1>, MT2 >
1532 operator*(
const DMatScalarMultExpr<MT1,ST,SO1>& lhs,
const SparseMatrix<MT2,SO2>& rhs )
1536 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1556 template<
typename MT1
1561 inline const MultExprTrait_< MT1, DMatScalarMultExpr<MT2,ST,SO2> >
1562 operator*(
const SparseMatrix<MT1,SO1>& lhs,
const DMatScalarMultExpr<MT2,ST,SO2>& rhs )
1566 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1587 template<
typename MT1
1593 inline const MultExprTrait_< DMatScalarMultExpr<MT1,ST1,SO1>, SMatScalarMultExpr<MT2,ST2,SO2> >
1594 operator*(
const DMatScalarMultExpr<MT1,ST1,SO1>& mat,
const SMatScalarMultExpr<MT2,ST2,SO2>& vec )
1598 return ( mat.leftOperand() * vec.leftOperand() ) * ( mat.rightOperand() * vec.rightOperand() );
1619 template<
typename MT1
1625 inline const MultExprTrait_< SMatScalarMultExpr<MT1,ST1,SO1>, DMatScalarMultExpr<MT2,ST2,SO2> >
1626 operator*(
const SMatScalarMultExpr<MT1,ST1,SO1>& mat,
const DMatScalarMultExpr<MT2,ST2,SO2>& vec )
1630 return ( mat.leftOperand() * vec.leftOperand() ) * ( mat.rightOperand() * vec.rightOperand() );
1646 template<
typename MT,
typename ST,
bool SO >
1663 template<
typename MT,
typename ST,
bool SO >
1680 template<
typename MT,
typename ST,
bool SO >
1698 template<
typename MT,
typename ST,
bool SO >
1716 template<
typename MT,
typename ST,
bool SO >
1734 template<
typename MT,
typename ST,
bool SO >
1752 template<
typename MT,
typename ST,
bool SO >
1770 template<
typename MT,
typename ST,
bool SO >
1788 template<
typename MT,
typename ST,
bool SO >
1806 template<
typename MT,
typename ST,
bool SO >
1824 template<
typename MT,
typename ST1,
typename ST2 >
1829 using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>, IsNumeric<ST1>, IsNumeric<ST2> >
1830 , DMatScalarMultExprTrait_< MT, MultTrait_<ST1,ST2> >
1848 template<
typename MT,
typename ST1,
typename ST2 >
1853 using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>, IsNumeric<ST1>, IsNumeric<ST2> >
1854 , TDMatScalarMultExprTrait_< MT, MultTrait_<ST1,ST2> >
1872 template<
typename MT,
typename ST1,
typename ST2 >
1877 typedef DivTrait_<ST1,ST2> ScalarType;
1882 using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>, IsNumeric<ST1>, IsNumeric<ST2> >
1883 , If_< IsInvertible<ScalarType>
1884 , DMatScalarMultExprTrait_<MT,ScalarType>
1885 , DMatScalarDivExprTrait_<MT,ScalarType> >
1903 template<
typename MT,
typename ST1,
typename ST2 >
1908 typedef DivTrait_<ST1,ST2> ScalarType;
1913 using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>, IsNumeric<ST1>, IsNumeric<ST2> >
1914 , If_< IsInvertible<ScalarType>
1915 , TDMatScalarMultExprTrait_<MT,ScalarType>
1916 , TDMatScalarDivExprTrait_<MT,ScalarType> >
1934 template<
typename MT,
typename ST,
typename VT >
1939 using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
1940 , IsDenseVector<VT>, IsColumnVector<VT>
1942 , DVecScalarMultExprTrait_< DMatDVecMultExprTrait_<MT,VT>, ST >
1952 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
1953 struct DMatDVecMultExprTrait<
DMatScalarMultExpr<MT,ST1,false>, DVecScalarMultExpr<VT,ST2,false> >
1957 using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
1958 , IsDenseVector<VT>, IsColumnVector<VT>
1959 , IsNumeric<ST1>, IsNumeric<ST2> >
1960 , DVecScalarMultExprTrait_< DMatDVecMultExprTrait_<MT,VT>, MultTrait_<ST1,ST2> >
1978 template<
typename MT,
typename ST,
typename VT >
1983 using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
1984 , IsDenseVector<VT>, IsColumnVector<VT>
1986 , DVecScalarMultExprTrait_< TDMatDVecMultExprTrait_<MT,VT>, ST >
1996 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
1997 struct TDMatDVecMultExprTrait<
DMatScalarMultExpr<MT,ST1,true>, DVecScalarMultExpr<VT,ST2,false> >
2001 using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2002 , IsDenseVector<VT>, IsColumnVector<VT>
2003 , IsNumeric<ST1>, IsNumeric<ST2> >
2004 , DVecScalarMultExprTrait_< TDMatDVecMultExprTrait_<MT,VT>, MultTrait_<ST1,ST2> >
2022 template<
typename VT,
typename MT,
typename ST >
2027 using Type = If_< And< IsDenseVector<VT>, IsRowVector<VT>
2028 , IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
2030 , TDVecScalarMultExprTrait_< TDVecDMatMultExprTrait_<VT,MT>, ST >
2040 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2041 struct TDVecDMatMultExprTrait< DVecScalarMultExpr<VT,ST1,true>,
DMatScalarMultExpr<MT,ST2,false> >
2045 using Type = If_< And< IsDenseVector<VT>, IsRowVector<VT>
2046 , IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
2047 , IsNumeric<ST1>, IsNumeric<ST2> >
2048 , TDVecScalarMultExprTrait_< TDVecDMatMultExprTrait_<VT,MT>, MultTrait_<ST1,ST2> >
2066 template<
typename VT,
typename MT,
typename ST >
2071 using Type = If_< And< IsDenseVector<VT>, IsRowVector<VT>
2072 , IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2074 , TDVecScalarMultExprTrait_< TDVecTDMatMultExprTrait_<VT,MT>, ST >
2084 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2085 struct TDVecTDMatMultExprTrait< DVecScalarMultExpr<VT,ST1,true>,
DMatScalarMultExpr<MT,ST2,true> >
2089 using Type = If_< And< IsDenseVector<VT>, IsRowVector<VT>
2090 , IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2091 , IsNumeric<ST1>, IsNumeric<ST2> >
2092 , TDVecScalarMultExprTrait_< TDVecTDMatMultExprTrait_<VT,MT>, MultTrait_<ST1,ST2> >
2110 template<
typename MT,
typename ST,
typename VT >
2115 using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
2116 , IsSparseVector<VT>, IsColumnVector<VT>
2118 , DVecScalarMultExprTrait_< DMatSVecMultExprTrait_<MT,VT>, ST >
2128 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
2129 struct DMatSVecMultExprTrait<
DMatScalarMultExpr<MT,ST1,false>, SVecScalarMultExpr<VT,ST2,false> >
2133 using Type = If_< And< IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
2134 , IsSparseVector<VT>, IsColumnVector<VT>
2135 , IsNumeric<ST1>, IsNumeric<ST2> >
2136 , DVecScalarMultExprTrait_< DMatSVecMultExprTrait_<MT,VT>, MultTrait_<ST1,ST2> >
2154 template<
typename MT,
typename ST,
typename VT >
2159 using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2160 , IsSparseVector<VT>, IsColumnVector<VT>
2162 , DVecScalarMultExprTrait_< TDMatSVecMultExprTrait_<MT,VT>, ST >
2172 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
2173 struct TDMatSVecMultExprTrait<
DMatScalarMultExpr<MT,ST1,true>, SVecScalarMultExpr<VT,ST2,false> >
2177 using Type = If_< And< IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2178 , IsSparseVector<VT>, IsColumnVector<VT>
2179 , IsNumeric<ST1>, IsNumeric<ST2> >
2180 , DVecScalarMultExprTrait_< TDMatSVecMultExprTrait_<MT,VT>, MultTrait_<ST1,ST2> >
2198 template<
typename VT,
typename MT,
typename ST >
2203 using Type = If_< And< IsSparseVector<VT>, IsRowVector<VT>
2204 , IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
2206 , TDVecScalarMultExprTrait_< TSVecDMatMultExprTrait_<VT,MT>, ST >
2216 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2217 struct TSVecDMatMultExprTrait< SVecScalarMultExpr<VT,ST1,true>,
DMatScalarMultExpr<MT,ST2,false> >
2221 using Type = If_< And< IsSparseVector<VT>, IsRowVector<VT>
2222 , IsDenseMatrix<MT>, IsRowMajorMatrix<MT>
2223 , IsNumeric<ST1>, IsNumeric<ST2> >
2224 , TDVecScalarMultExprTrait_< TSVecDMatMultExprTrait_<VT,MT>, MultTrait_<ST1,ST2> >
2242 template<
typename VT,
typename MT,
typename ST >
2247 using Type = If_< And< IsSparseVector<VT>, IsRowVector<VT>
2248 , IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2250 , TDVecScalarMultExprTrait_< TSVecTDMatMultExprTrait_<VT,MT>, ST >
2260 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2261 struct TSVecTDMatMultExprTrait< SVecScalarMultExpr<VT,ST1,true>,
DMatScalarMultExpr<MT,ST2,true> >
2265 using Type = If_< And< IsSparseVector<VT>, IsRowVector<VT>
2266 , IsDenseMatrix<MT>, IsColumnMajorMatrix<MT>
2267 , IsNumeric<ST1>, IsNumeric<ST2> >
2268 , TDVecScalarMultExprTrait_< TSVecTDMatMultExprTrait_<VT,MT>, MultTrait_<ST1,ST2> >
2286 template<
typename MT1,
typename ST,
typename MT2 >
2291 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2292 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2294 , DMatScalarMultExprTrait_< DMatDMatMultExprTrait_<MT1,MT2>, ST >
2304 template<
typename MT1,
typename MT2,
typename ST >
2309 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2310 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2312 , DMatScalarMultExprTrait_< DMatDMatMultExprTrait_<MT1,MT2>, ST >
2322 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2327 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2328 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2329 , IsNumeric<ST1>, IsNumeric<ST2> >
2330 , DMatScalarMultExprTrait_< DMatDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2348 template<
typename MT1,
typename ST,
typename MT2 >
2353 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2354 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2356 , DMatScalarMultExprTrait_< DMatTDMatMultExprTrait_<MT1,MT2>, ST >
2366 template<
typename MT1,
typename MT2,
typename ST >
2371 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2372 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2374 , DMatScalarMultExprTrait_< DMatTDMatMultExprTrait_<MT1,MT2>, ST >
2384 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2389 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2390 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2391 , IsNumeric<ST1>, IsNumeric<ST2> >
2392 , DMatScalarMultExprTrait_< DMatTDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2410 template<
typename MT1,
typename ST,
typename MT2 >
2415 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2416 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2418 , TDMatScalarMultExprTrait_< TDMatDMatMultExprTrait_<MT1,MT2>, ST >
2428 template<
typename MT1,
typename MT2,
typename ST >
2433 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2434 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2436 , TDMatScalarMultExprTrait_< TDMatDMatMultExprTrait_<MT1,MT2>, ST >
2446 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2451 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2452 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2453 , IsNumeric<ST1>, IsNumeric<ST2> >
2454 , TDMatScalarMultExprTrait_< TDMatDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2472 template<
typename MT1,
typename ST,
typename MT2 >
2477 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2478 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2480 , TDMatScalarMultExprTrait_< TDMatTDMatMultExprTrait_<MT1,MT2>, ST >
2490 template<
typename MT1,
typename MT2,
typename ST >
2495 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2496 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2498 , TDMatScalarMultExprTrait_< TDMatTDMatMultExprTrait_<MT1,MT2>, ST >
2508 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2513 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2514 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2515 , IsNumeric<ST1>, IsNumeric<ST2> >
2516 , TDMatScalarMultExprTrait_< TDMatTDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2534 template<
typename MT1,
typename ST,
typename MT2 >
2539 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2540 , IsSparseMatrix<MT2>, IsRowMajorMatrix<MT2>
2542 , DMatScalarMultExprTrait_< DMatSMatMultExprTrait_<MT1,MT2>, ST >
2552 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2553 struct DMatSMatMultExprTrait<
DMatScalarMultExpr<MT1,ST1,false>, SMatScalarMultExpr<MT2,ST2,false> >
2557 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2558 , IsSparseMatrix<MT2>, IsRowMajorMatrix<MT2>
2559 , IsNumeric<ST1>, IsNumeric<ST2> >
2560 , DMatScalarMultExprTrait_< DMatSMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2578 template<
typename MT1,
typename ST,
typename MT2 >
2583 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2584 , IsSparseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2586 , DMatScalarMultExprTrait_< DMatTSMatMultExprTrait_<MT1,MT2>, ST >
2596 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2597 struct DMatTSMatMultExprTrait<
DMatScalarMultExpr<MT1,ST1,false>, SMatScalarMultExpr<MT2,ST2,true> >
2601 using Type = If_< And< IsDenseMatrix<MT1>, IsRowMajorMatrix<MT1>
2602 , IsSparseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2603 , IsNumeric<ST1>, IsNumeric<ST2> >
2604 , DMatScalarMultExprTrait_< DMatTSMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2622 template<
typename MT1,
typename ST,
typename MT2 >
2627 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2628 , IsSparseMatrix<MT2>, IsRowMajorMatrix<MT2>
2630 , TDMatScalarMultExprTrait_< TDMatSMatMultExprTrait_<MT1,MT2>, ST >
2640 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2641 struct TDMatSMatMultExprTrait<
DMatScalarMultExpr<MT1,ST1,true>, SMatScalarMultExpr<MT2,ST2,false> >
2645 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2646 , IsSparseMatrix<MT2>, IsRowMajorMatrix<MT2>
2647 , IsNumeric<ST1>, IsNumeric<ST2> >
2648 , TDMatScalarMultExprTrait_< TDMatSMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2666 template<
typename MT1,
typename ST,
typename MT2 >
2671 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2672 , IsSparseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2674 , TDMatScalarMultExprTrait_< TDMatTSMatMultExprTrait_<MT1,MT2>, ST >
2684 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2685 struct TDMatTSMatMultExprTrait<
DMatScalarMultExpr<MT1,ST1,true>, SMatScalarMultExpr<MT2,ST2,true> >
2689 using Type = If_< And< IsDenseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2690 , IsSparseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2691 , IsNumeric<ST1>, IsNumeric<ST2> >
2692 , TDMatScalarMultExprTrait_< TDMatTSMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2710 template<
typename MT1,
typename ST,
typename MT2 >
2715 using Type = If_< And< IsSparseMatrix<MT1>, IsRowMajorMatrix<MT1>
2716 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2718 , DMatScalarMultExprTrait_< SMatDMatMultExprTrait_<MT1,MT2>, ST >
2728 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2729 struct SMatDMatMultExprTrait< SMatScalarMultExpr<MT1,ST1,false>,
DMatScalarMultExpr<MT2,ST2,false> >
2733 using Type = If_< And< IsSparseMatrix<MT1>, IsRowMajorMatrix<MT1>
2734 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2735 , IsNumeric<ST1>, IsNumeric<ST2> >
2736 , DMatScalarMultExprTrait_< SMatDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2754 template<
typename MT1,
typename ST,
typename MT2 >
2759 using Type = If_< And< IsSparseMatrix<MT1>, IsRowMajorMatrix<MT1>
2760 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2762 , DMatScalarMultExprTrait_< SMatTDMatMultExprTrait_<MT1,MT2>, ST >
2772 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2773 struct SMatTDMatMultExprTrait< SMatScalarMultExpr<MT1,ST1,false>,
DMatScalarMultExpr<MT2,ST2,true> >
2777 using Type = If_< And< IsSparseMatrix<MT1>, IsRowMajorMatrix<MT1>
2778 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2779 , IsNumeric<ST1>, IsNumeric<ST2> >
2780 , DMatScalarMultExprTrait_< SMatTDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2798 template<
typename MT1,
typename ST,
typename MT2 >
2803 using Type = If_< And< IsSparseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2804 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2806 , TDMatScalarMultExprTrait_< TSMatDMatMultExprTrait_<MT1,MT2>, ST >
2816 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2817 struct TSMatDMatMultExprTrait< SMatScalarMultExpr<MT1,ST1,true>,
DMatScalarMultExpr<MT2,ST2,false> >
2821 using Type = If_< And< IsSparseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2822 , IsDenseMatrix<MT2>, IsRowMajorMatrix<MT2>
2823 , IsNumeric<ST1>, IsNumeric<ST2> >
2824 , TDMatScalarMultExprTrait_< TSMatDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2842 template<
typename MT1,
typename ST,
typename MT2 >
2847 using Type = If_< And< IsSparseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2848 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2850 , TDMatScalarMultExprTrait_< TSMatTDMatMultExprTrait_<MT1,MT2>, ST >
2860 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2861 struct TSMatTDMatMultExprTrait< SMatScalarMultExpr<MT1,ST1,true>,
DMatScalarMultExpr<MT2,ST2,true> >
2865 using Type = If_< And< IsSparseMatrix<MT1>, IsColumnMajorMatrix<MT1>
2866 , IsDenseMatrix<MT2>, IsColumnMajorMatrix<MT2>
2867 , IsNumeric<ST1>, IsNumeric<ST2> >
2868 , TDMatScalarMultExprTrait_< TSMatTDMatMultExprTrait_<MT1,MT2>, MultTrait_<ST1,ST2> >
2886 template<
typename MT,
typename ST,
bool SO,
bool AF >
2891 using Type = MultExprTrait_< SubmatrixExprTrait_<const MT,AF>, ST >;
2908 template<
typename MT,
typename ST,
bool SO >
2913 using Type = MultExprTrait_< RowExprTrait_<const MT>, ST >;
2930 template<
typename MT,
typename ST,
bool SO >
2935 using Type = MultExprTrait_< ColumnExprTrait_<const MT>, ST >;
Pointer difference type of the Blaze library.
DifferenceType difference_type
Difference between two iterators.
Definition: DMatScalarMultExpr.h:221
Header file for auxiliary alias declarations.
Compile time check whether the given type is a computational expression template.This type trait clas...
Definition: IsComputation.h:72
Compile time check for numeric types.This type trait tests whether or not the given template paramete...
Definition: IsNumeric.h:79
Constraint on the data type.
Compile time check whether the given type is a temporary vector or matrix type.This type trait class ...
Definition: IsTemporary.h:70
RightOperand scalar_
Scalar of the multiplication expression.
Definition: DMatScalarMultExpr.h:441
Header file for the Rows type trait.
const DMatDMatMultExpr< T1, T2 > operator*(const DenseMatrix< T1, false > &lhs, const DenseMatrix< T2, false > &rhs)
Multiplication operator for the multiplication of two row-major dense matrices ( ).
Definition: DMatDMatMultExpr.h:7800
ConstIterator_< MT > IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:224
Header file for basic type definitions.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatScalarMultExpr.h:570
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatScalarMultExpr.h:604
ReferenceType reference
Reference return type.
Definition: DMatScalarMultExpr.h:220
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:160
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatScalarMultExpr.h:268
Header file for the IsSparseMatrix type trait.
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatScalarMultExpr.h:300
Header file for the serial shim.
#define BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER(T, SO)
Constraint on the data type.In case the given data type T is not a dense or sparse matrix type and in...
Definition: StorageOrder.h:63
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:386
#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 ColumnExprTrait class template.
Availability of a SIMD multiplication for the given data types.Depending on the available instruction...
Definition: HasSIMDMult.h:162
Header file for the IsColumnMajorMatrix type trait.
RightOperand scalar_
Right-hand side scalar of the multiplication expression.
Definition: DMatScalarMultExpr.h:633
Header file for the IsRowVector type trait.
IteratorCategory iterator_category
The iterator category.
Definition: DMatScalarMultExpr.h:217
Base class for all matrix/scalar multiplication expression templates.The MatScalarMultExpr class serv...
Definition: MatScalarMultExpr.h:66
Header file for the And class template.
Header file for the DenseVector base class.
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatScalarMultExpr.h:320
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatScalarMultExpr.h:560
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:723
typename MultTrait< T1, T2 >::Type MultTrait_
Auxiliary alias declaration for the MultTrait class template.The MultTrait_ alias declaration provide...
Definition: MultTrait.h:245
Header file for the Computation base class.
Header file for the UnderlyingElement type trait.
const DenseIterator< Type, AF > operator-(const DenseIterator< Type, AF > &it, ptrdiff_t inc) noexcept
Subtraction between a DenseIterator and an integral value.
Definition: DenseIterator.h:731
Header file for the RequiresEvaluation type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:323
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:129
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatScalarMultExpr.h:397
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_
Auxiliary alias declaration for the UnderlyingBuiltin type trait.The UnderlyingBuiltin_ alias declara...
Definition: UnderlyingBuiltin.h:133
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:70
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:109
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatScalarMultExpr.h:310
Constraint on the data type.
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
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:343
MultExprTrait_< RN, ST > ExprReturnType
Expression return type for the subscript operator.
Definition: DMatScalarMultExpr.h:145
Header file for the DivExprTrait class template.
ElementType ValueType
Type of the underlying elements.
Definition: DMatScalarMultExpr.h:211
MultTrait_< RT, ST > ResultType
Result type for expression template evaluations.
Definition: DMatScalarMultExpr.h:185
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DMatScalarMultExpr.h:580
Constraint on the data type.
typename MultExprTrait< T1, T2 >::Type MultExprTrait_
Auxiliary alias declaration for the MultExprTrait class template.The MultExprTrait_ alias declaration...
Definition: MultExprTrait.h:344
Header file for the MultExprTrait class template.
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:72
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
const EnableIf_< IsNumeric< T2 >, DivExprTrait_< T1, T2 > > operator/(const DenseMatrix< T1, SO > &mat, T2 scalar)
Division operator for the division of a dense matrix by a scalar value ( ).
Definition: DMatScalarDivExpr.h:966
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatScalarMultExpr.h:496
Header file for the IsTemporary type trait class.
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatScalarMultExpr.h:214
Header file for the multiplication trait.
Header file for the IsStrictlyUpper type trait.
const IfTrue_< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DMatScalarMultExpr.h:191
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatScalarMultExpr.h:186
Header file for the If class template.
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:353
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatScalarMultExpr.h:481
Header file for the UnderlyingBuiltin type trait.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2647
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:98
Header file for the Or class template.
Expression object for dense matrix-scalar multiplications.The DMatScalarMultExpr class represents the...
Definition: DMatScalarMultExpr.h:123
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatScalarMultExpr.h:245
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatScalarMultExpr.h:592
#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
IteratorType iterator_
Iterator to the current element.
Definition: DMatScalarMultExpr.h:440
Header file for the DenseMatrix base class.
Header file for the Columns type trait.
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:375
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for all SIMD functionality.
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatScalarMultExpr.h:514
#define BLAZE_CONSTRAINT_MUST_BE_SAME_TYPE(A, B)
Data type constraint.In case the two types A and B are not the same (ignoring all cv-qualifiers of bo...
Definition: SameType.h:71
Header file for the IsLower type trait.
ElementType * PointerType
Pointer return type.
Definition: DMatScalarMultExpr.h:212
Header file for the IsAligned type trait.
#define BLAZE_CONSTRAINT_MUST_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:60
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:331
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatScalarMultExpr.h:614
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatScalarMultExpr.h:550
Constraints on the storage order of matrix types.
Header file for the exception macros of the math module.
CompositeType_< MT > CT
Composite type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:132
LeftOperand matrix_
Left-hand side dense matrix of the multiplication expression.
Definition: DMatScalarMultExpr.h:632
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatScalarMultExpr.h:187
Header file for the RowExprTrait class template.
Header file for all forward declarations for expression class templates.
Header file for the IsDenseMatrix type trait.
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatScalarMultExpr.h:540
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatScalarMultExpr.h:433
Header file for the IsPadded type trait.
If_< IsExpression< MT >, const MT, const MT & > LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatScalarMultExpr.h:197
ConstIterator(IteratorType iterator, RightOperand scalar)
Constructor for the ConstIterator class.
Definition: DMatScalarMultExpr.h:233
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatScalarMultExpr.h:421
Header file for the IsNumeric type trait.
BLAZE_ALWAYS_INLINE const EnableIf_< And< IsIntegral< T >, HasSize< T, 1UL > >, If_< IsSigned< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition: Set.h:76
IfTrue_< useAssign, const ResultType, const DMatScalarMultExpr & > CompositeType
Data type for composite expression templates.
Definition: DMatScalarMultExpr.h:194
ElementType & ReferenceType
Reference return type.
Definition: DMatScalarMultExpr.h:213
Header file for the IsSparseVector type trait.
Header file for the SubmatrixExprTrait class template.
Header file for the HasSIMDMult type trait.
Header file for the MatScalarMultExpr base class.
Header file for run time assertion macros.
Utility type for generic codes.
Header file for the division trait.
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:160
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatScalarMultExpr.h:257
#define BLAZE_CONSTRAINT_MUST_BE_NUMERIC_TYPE(T)
Constraint on the data type.In case the given data type T is not a numeric (integral or floating poin...
Definition: Numeric.h:61
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatScalarMultExpr.h:529
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:342
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:364
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:100
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatScalarMultExpr.h:279
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatScalarMultExpr.h:624
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatScalarMultExpr.h:409
Header file for the IsInvertible type trait.
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:223
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:243
Header file for the IsDenseVector type trait.
ElementType_< MT > ET
Element type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:131
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatScalarMultExpr.h:289
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatScalarMultExpr.h:188
Header file for the IsRowMajorMatrix type trait.
ReturnType_< MT > RN
Return type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:130
Header file for the IsComputation type trait class.
ST RightOperand
Composite type of the right-hand side scalar value.
Definition: DMatScalarMultExpr.h:200
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:59
DMatScalarMultExpr(const MT &matrix, ST scalar) noexcept
Constructor for the DMatScalarMultExpr class.
Definition: DMatScalarMultExpr.h:468
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:157
PointerType pointer
Pointer return type.
Definition: DMatScalarMultExpr.h:219
Header file for the IntegralConstant class template.
Iterator over the elements of the dense matrix.
Definition: DMatScalarMultExpr.h:206
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatScalarMultExpr.h:210
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:403
Header file for the IsUpper type trait.
Header file for the IsColumnVector type trait.
DMatScalarMultExpr< MT, ST, SO > This
Type of this DMatScalarMultExpr instance.
Definition: DMatScalarMultExpr.h:184
Header file for the IsHermitian type trait.
System settings for the inline keywords.
ResultType_< MT > RT
Result type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:129
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 IsExpression type trait class.
Header file for the FunctionTrace class.
ValueType value_type
Type of the underlying elements.
Definition: DMatScalarMultExpr.h:218