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 {
321 return iterator_.load() *
set(
scalar_ );
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
724 const ResultType tmp(
serial( rhs ) );
725 addAssign( ~lhs, tmp );
748 template<
typename MT2
762 const ResultType tmp(
serial( rhs ) );
763 subAssign( ~lhs, tmp );
794 template<
typename MT2
824 template<
typename MT2
854 template<
typename MT2
868 const ResultType tmp( rhs );
892 template<
typename MT2
906 const ResultType tmp( rhs );
961 template<
typename MT
1003 template<
typename T1
1037 template<
typename T1
1070 template<
typename VT
1105 template<
typename MT
1133 template<
typename ST1
1161 template<
typename MT
1191 template<
typename MT
1220 template<
typename VT
1251 template<
typename MT
1283 template<
typename VT
1313 template<
typename MT
1317 inline const MultExprTrait_< DMatScalarMultExpr<MT,ST,SO>, VT >
1342 template<
typename VT
1373 template<
typename MT
1405 template<
typename VT
1435 template<
typename MT1
1465 template<
typename MT1
1495 template<
typename MT1
1526 template<
typename MT1
1531 inline const MultExprTrait_< DMatScalarMultExpr<MT1,ST,SO1>, MT2 >
1556 template<
typename MT1
1587 template<
typename MT1
1619 template<
typename MT1
1646 template<
typename MT,
typename ST,
bool SO >
1647 struct Rows< DMatScalarMultExpr<MT,ST,SO> > :
public Columns<MT>
1663 template<
typename MT,
typename ST,
bool SO >
1664 struct Columns< DMatScalarMultExpr<MT,ST,SO> > :
public Rows<MT>
1680 template<
typename MT,
typename ST,
bool SO >
1681 struct IsAligned< DMatScalarMultExpr<MT,ST,SO> >
1698 template<
typename MT,
typename ST,
bool SO >
1699 struct IsPadded< DMatScalarMultExpr<MT,ST,SO> >
1716 template<
typename MT,
typename ST,
bool SO >
1717 struct IsSymmetric< DMatScalarMultExpr<MT,ST,SO> >
1734 template<
typename MT,
typename ST,
bool SO >
1735 struct IsHermitian< DMatScalarMultExpr<MT,ST,SO> >
1752 template<
typename MT,
typename ST,
bool SO >
1753 struct IsLower< DMatScalarMultExpr<MT,ST,SO> >
1770 template<
typename MT,
typename ST,
bool SO >
1788 template<
typename MT,
typename ST,
bool SO >
1789 struct IsUpper< DMatScalarMultExpr<MT,ST,SO> >
1806 template<
typename MT,
typename ST,
bool SO >
1824 template<
typename MT,
typename ST1,
typename ST2 >
1848 template<
typename MT,
typename ST1,
typename ST2 >
1872 template<
typename MT,
typename ST1,
typename ST2 >
1903 template<
typename MT,
typename ST1,
typename ST2 >
1934 template<
typename MT,
typename ST,
typename VT >
1952 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
1978 template<
typename MT,
typename ST,
typename VT >
1996 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
2022 template<
typename VT,
typename MT,
typename ST >
2040 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2066 template<
typename VT,
typename MT,
typename ST >
2084 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2110 template<
typename MT,
typename ST,
typename VT >
2128 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
2154 template<
typename MT,
typename ST,
typename VT >
2172 template<
typename MT,
typename ST1,
typename VT,
typename ST2 >
2198 template<
typename VT,
typename MT,
typename ST >
2216 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2242 template<
typename VT,
typename MT,
typename ST >
2260 template<
typename VT,
typename ST1,
typename MT,
typename ST2 >
2286 template<
typename MT1,
typename ST,
typename MT2 >
2304 template<
typename MT1,
typename MT2,
typename ST >
2322 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2323 struct DMatDMatMultExprTrait< DMatScalarMultExpr<MT1,ST1,false>, DMatScalarMultExpr<MT2,ST2,false> >
2348 template<
typename MT1,
typename ST,
typename MT2 >
2366 template<
typename MT1,
typename MT2,
typename ST >
2384 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2410 template<
typename MT1,
typename ST,
typename MT2 >
2428 template<
typename MT1,
typename MT2,
typename ST >
2446 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2472 template<
typename MT1,
typename ST,
typename MT2 >
2490 template<
typename MT1,
typename MT2,
typename ST >
2508 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2534 template<
typename MT1,
typename ST,
typename MT2 >
2552 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2553 struct DMatSMatMultExprTrait< DMatScalarMultExpr<MT1,ST1,false>, SMatScalarMultExpr<MT2,ST2,false> >
2578 template<
typename MT1,
typename ST,
typename MT2 >
2596 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2622 template<
typename MT1,
typename ST,
typename MT2 >
2640 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2666 template<
typename MT1,
typename ST,
typename MT2 >
2684 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2710 template<
typename MT1,
typename ST,
typename MT2 >
2728 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2729 struct SMatDMatMultExprTrait< SMatScalarMultExpr<MT1,ST1,false>, DMatScalarMultExpr<MT2,ST2,false> >
2754 template<
typename MT1,
typename ST,
typename MT2 >
2772 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2798 template<
typename MT1,
typename ST,
typename MT2 >
2816 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2842 template<
typename MT1,
typename ST,
typename MT2 >
2860 template<
typename MT1,
typename ST1,
typename MT2,
typename ST2 >
2886 template<
typename MT,
typename ST,
bool SO,
bool AF >
2908 template<
typename MT,
typename ST,
bool SO >
2930 template<
typename MT,
typename ST,
bool SO >
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: SVecScalarMultExpr.h:450
Pointer difference type of the Blaze library.
DifferenceType difference_type
Difference between two iterators.
Definition: DMatScalarMultExpr.h:221
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecScalarMultExpr.h:542
Compile time check for row vector types.This type trait tests whether or not the given template argum...
Definition: IsRowVector.h:80
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.
Evaluation of the expression type of a transpose dense matrix/transpose sparse matrix multiplication...
Definition: TDMatTSMatMultExprTrait.h:79
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
typename DMatScalarMultExprTrait< MT, ST >::Type DMatScalarMultExprTrait_
Auxiliary alias declaration for the DMatScalarMultExprTrait class template.The DMatScalarMultExprTrai...
Definition: DMatScalarMultExprTrait.h:164
Header file for the Rows type trait.
ConstIterator_< MT > IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:224
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: SMatScalarMultExpr.h:492
Header file for basic type definitions.
typename DVecScalarMultExprTrait< VT, ST >::Type DVecScalarMultExprTrait_
Auxiliary alias declaration for the DVecScalarMultExprTrait class template.The DVecScalarMultExprTrai...
Definition: DVecScalarMultExprTrait.h:164
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DVecScalarMultExpr.h:552
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
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatScalarMultExpr.h:560
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 ColumnExprTrait class template.
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:364
Evaluation of the expression type of a dense matrix/transpose sparse matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense matrix/ transpose sparse matrix multiplication. Given the row-major dense matrix type MT1 and the column-major sparse matrix type MT2, the nested type Type corresponds to the resulting expression type. In case either MT1 is not a row-major dense matrix type or MT2 is not a column-major sparse matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: DMatTSMatMultExprTrait.h:78
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
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse matrix operand.
Definition: SMatScalarMultExpr.h:482
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatScalarMultExpr.h:550
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.
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:88
Evaluation of the expression type of a sparse matrix/transpose dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a sparse matrix/transpose dense matrix multiplication. Given the row-major sparse matrix type MT1 and the column-major dense matrix type MT2, the nested type Type corresponds to the resulting expression type. In case either MT1 is not a row-major sparse matrix type or MT2 is not a column-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: SMatTDMatMultExprTrait.h:79
typename TDMatScalarDivExprTrait< MT, ST >::Type TDMatScalarDivExprTrait_
Auxiliary alias declaration for the TDMatScalarDivExprTrait class template.The TDMatScalarDivExprTrai...
Definition: TDMatScalarDivExprTrait.h:171
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatScalarMultExpr.h:624
const DMatSerialExpr< MT, SO > serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:721
Evaluation of the expression type of a sparse vector/transpose dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a sparse vector/transpose dense matrix multiplication. Given the transpose sparse vector type VT and the column-major dense matrix type MT, the nested type Type corresponds to the resulting expression type. In case either VT is not a transpose sparse vector type or MT is not a column-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TSVecTDMatMultExprTrait.h:81
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.
Evaluation of the expression type of a dense matrix/dense vector multiplication.Via this type trait i...
Definition: DMatDVecMultExprTrait.h:78
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatScalarMultExpr.h:310
Header file for the UnderlyingElement type trait.
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:88
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
Evaluation of the expression type of a transpose sparse matrix/transpose dense matrix multiplication...
Definition: TSMatTDMatMultExprTrait.h:79
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatScalarMultExpr.h:320
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:71
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:119
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
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Evaluation of the expression type of a transpose dense matrix/sparse matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense matrix/sparse matrix multiplication. Given the column-major dense matrix type MT1 and the row-major sparse matrix type MT2, the nested type Type corresponds to the resulting expression type. In case either MT1 is not a column-major dense matrix type or MT2 is not a row-major sparse matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDMatSMatMultExprTrait.h:79
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
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatScalarMultExpr.h:592
Header file for the IsTemporary type trait class.
Compile time check for dense vector types.This type trait tests whether or not the given template par...
Definition: IsDenseVector.h:78
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.
Compile time check for row-major matrix types.This type trait tests whether or not the given template...
Definition: IsRowMajorMatrix.h:83
Header file for the UnderlyingBuiltin type trait.
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2939
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
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
#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.
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.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:331
Evaluation of the expression type of a dense matrix/sparse vector multiplication.Via this type trait ...
Definition: DMatSVecMultExprTrait.h:80
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
Compile time check for sparse vector types.This type trait tests whether or not the given template pa...
Definition: IsSparseVector.h:78
Evaluation of the expression type of a transpose dense matrix/transpose dense matrix multiplication...
Definition: TDMatTDMatMultExprTrait.h:77
Evaluation of the expression type type of a submatrix operation.Via this type trait it is possible to...
Definition: SubmatrixExprTrait.h:80
#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
typename TDMatScalarMultExprTrait< MT, ST >::Type TDMatScalarMultExprTrait_
Auxiliary alias declaration for the TDMatScalarMultExprTrait class template.The TDMatScalarMultExprTr...
Definition: TDMatScalarMultExprTrait.h:164
Header file for the IsLower type trait.
ElementType * PointerType
Pointer return type.
Definition: DMatScalarMultExpr.h:212
Header file for the IsAligned type trait.
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DMatScalarMultExpr.h:580
#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
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
Compile time check for column vector types.This type trait tests whether or not the given template ar...
Definition: IsColumnVector.h:80
Evaluation of the expression type of a dense matrix/sparse matrix multiplication.Via this type trait ...
Definition: DMatSMatMultExprTrait.h:78
Evaluation of the expression type of a dense matrix/scalar multiplication.Via this type trait it is p...
Definition: DMatScalarMultExprTrait.h:126
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.
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:375
CompositeType_< MT > CT
Composite type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:132
Compile time check for strictly upper triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyUpper.h:86
Evaluation of the expression type type of a row operation.Via this type trait it is possible to evalu...
Definition: RowExprTrait.h:79
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
Compile time check for dense matrix types.This type trait tests whether or not the given template par...
Definition: IsDenseMatrix.h:78
Header file for the RowExprTrait class template.
Expression object for sparse matrix-scalar multiplications.The SMatScalarMult class represents the co...
Definition: Forward.h:106
Header file for all forward declarations for expression class templates.
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatScalarMultExpr.h:397
Header file for the IsDenseMatrix type trait.
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
Evaluation of the expression type of a transpose dense matrix/scalar multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense matrix/scalar multiplication. Given the column-major dense matrix type MT and the scalar type ST, the nested type Type corresponds to the resulting expression type. In case either MT is not a column-major dense matrix type or ST is not a scalar type, the resulting Type is set to INVALID_TYPE.
Definition: TDMatScalarMultExprTrait.h:126
typename DivTrait< T1, T2 >::Type DivTrait_
Auxiliary alias declaration for the DivTrait class template.The DivTrait_ alias declaration provides ...
Definition: DivTrait.h:245
typename DMatScalarDivExprTrait< MT, ST >::Type DMatScalarDivExprTrait_
Auxiliary alias declaration for the DMatScalarDivExprTrait class template.The DMatScalarDivExprTrait_...
Definition: DMatScalarDivExprTrait.h:172
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
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatScalarMultExpr.h:496
Header file for the IsNumeric type trait.
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
Evaluation of the expression type of a transpose dense matrix/sparse vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense matrix/sparse vector multiplication. Given the column-major dense matrix type MT and the non-transpose sparse vector type VT, the nested type Type corresponds to the resulting expression type. In case either MT is not a column-major dense matrix type or VT is not a non-transpose sparse vector type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDMatSVecMultExprTrait.h:79
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.
Compile time check for column-major matrix types.This type trait tests whether or not the given templ...
Definition: IsColumnMajorMatrix.h:83
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
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:93
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatScalarMultExpr.h:529
Compile time check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
Compile time check for data types.This type trait tests whether or not the given template parameter i...
Definition: IsInvertible.h:83
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatScalarMultExpr.h:540
Evaluation of the expression type of a dense matrix/scalar division.Via this type trait it is possibl...
Definition: DMatScalarDivExprTrait.h:134
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatScalarMultExpr.h:279
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatScalarMultExpr.h:604
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.
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:386
ElementType_< MT > ET
Element type of the dense matrix expression.
Definition: DMatScalarMultExpr.h:131
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatScalarMultExpr.h:289
Evaluation of the expression type of a dense vector/dense matrix multiplication.Via this type trait i...
Definition: TDVecDMatMultExprTrait.h:78
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
Evaluation of the expression type of a sparse vector/dense matrix multiplication.Via this type trait ...
Definition: TSVecDMatMultExprTrait.h:78
Evaluation of the expression type of a dense vector/transpose dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense vector/transpose dense matrix multiplication. Given the transpose dense vector type VT and the column-major dense matrix type MT, the nested type Type corresponds to the resulting expression type. In case either VT is not a transpose dense vector type or MT is not a column-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDVecTDMatMultExprTrait.h:79
Evaluation of the expression type of a transpose dense matrix/dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense matrix/dense matrix multiplication. Given the column-major dense matrix type MT1 and the row-major dense matrix type MT2, the nested type Type corresponds to the resulting expression type. In case either MT1 is not a column-major dense matrix type or MT2 is not a row-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDMatDMatMultExprTrait.h:78
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
Expression object for dense vector-scalar multiplications.The DVecScalarMultExpr class represents the...
Definition: DVecScalarMultExpr.h:117
Evaluation of the expression type of a transpose sparse matrix/dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose sparse matrix/dense matrix multiplication. Given the column-major sparse matrix type MT1 and the row-major dense matrix type MT2, the nested type Type corresponds to the resulting expression type. In case either MT1 is not a column-major sparse matrix type or MT2 is not a row-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: TSMatDMatMultExprTrait.h:79
typename DivExprTrait< T1, T2 >::Type DivExprTrait_
Auxiliary alias declaration for the DivExprTrait class template.The DivExprTrait_ alias declaration p...
Definition: DivExprTrait.h:196
Expression object for sparse vector-scalar multiplications.The SVecScalarMultExpr class represents th...
Definition: Forward.h:129
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:59
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatScalarMultExpr.h:481
Compile time logical or evaluation.The Or class template performs at compile time a logical or ('&&')...
Definition: Or.h:101
DMatScalarMultExpr(const MT &matrix, ST scalar) noexcept
Constructor for the DMatScalarMultExpr class.
Definition: DMatScalarMultExpr.h:468
Evaluation of the expression type of a transpose dense matrix/dense vector multiplication.Via this type trait it is possible to evaluate the resulting expression type of a transpose dense matrix/dense vector multiplication. Given the column-major dense matrix type MT and the non-transpose dense vector type VT, the nested type Type corresponds to the resulting expression type. In case either MT is not a column-major dense matrix type or VT is not a non-transpose dense vector type, the resulting data type Type is set to INVALID_TYPE.
Definition: TDMatDVecMultExprTrait.h:79
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:120
PointerType pointer
Pointer return type.
Definition: DMatScalarMultExpr.h:219
Header file for the IntegralConstant class template.
Compile time evaluation of the number of columns of a matrix.The Columns type trait evaluates the num...
Definition: Columns.h:76
Compile time evaluation of the number of rows of a matrix.The Rows type trait evaluates the number of...
Definition: Rows.h:76
Compile time check for sparse matrix types.This type trait tests whether or not the given template pa...
Definition: IsSparseMatrix.h:78
Evaluation of the expression type of a dense matrix/transpose dense matrix multiplication.Via this type trait it is possible to evaluate the resulting expression type of a dense matrix/transpose dense matrix multiplication. Given the row-major dense matrix type MT1 and the column-major dense matrix type MT2, the nested type Type corresponds to the resulting expression type. In case either MT1 is not a row-major dense matrix type or MT2 is not a column-major dense matrix type, the resulting data type Type is set to INVALID_TYPE.
Definition: DMatTDMatMultExprTrait.h:78
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 TDVecScalarMultExprTrait< VT, ST >::Type TDVecScalarMultExprTrait_
Auxiliary alias declaration for the TDVecScalarMultExprTrait class template.The TDVecScalarMultExprTr...
Definition: TDVecScalarMultExprTrait.h:164
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:353
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatScalarMultExpr.h:614
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
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatScalarMultExpr.h:342
Header file for the IsHermitian type trait.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatScalarMultExpr.h:570
const DMatDMatMultExpr< T1, T2, false, false, false, false > 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:7505
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.
Evaluation of the expression type type of a column operation.Via this type trait it is possible to ev...
Definition: ColumnExprTrait.h:78
#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
LeftOperand leftOperand() const noexcept
Returns the left-hand side sparse vector operand.
Definition: SVecScalarMultExpr.h:440
Evaluation of the expression type of a transpose dense matrix/scalar division.Via this type trait it ...
Definition: TDMatScalarDivExprTrait.h:133
Evaluation of the expression type of a sparse matrix/dense matrix multiplication.Via this type trait ...
Definition: SMatDMatMultExprTrait.h:77
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
ValueType value_type
Type of the underlying elements.
Definition: DMatScalarMultExpr.h:218
Evaluation of the expression type of a dense matrix/dense matrix multiplication.Via this type trait i...
Definition: DMatDMatMultExprTrait.h:76