35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECSCALARMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DVECSCALARMULTEXPR_H_ 134 static constexpr
bool useAssign = ( IsComputation_v<VT> && RequiresEvaluation_v<VT> );
137 template<
typename VT2 >
139 static constexpr
bool UseAssign_v =
useAssign;
151 template<
typename VT2 >
152 static constexpr
bool UseSMPAssign_v =
295 inline auto load() const noexcept {
424 ( VT::simdEnabled && IsNumeric_v<ET> &&
425 ( HasSIMDMult_v<ET,ST> || HasSIMDMult_v<UnderlyingElement_t<ET>,ST> ) );
468 if( index >=
vector_.size() ) {
471 return (*
this)[index];
513 inline size_t size() const noexcept {
544 template<
typename T >
545 inline bool canAlias(
const T* alias )
const noexcept {
546 return IsExpression_v<VT> &&
vector_.canAlias( alias );
556 template<
typename T >
557 inline bool isAliased(
const T* alias )
const noexcept {
558 return vector_.isAliased( alias );
578 return vector_.canSMPAssign() || (
size() > SMP_DVECSCALARMULT_THRESHOLD );
602 template<
typename VT2 >
610 assign( ~lhs, rhs.vector_ );
611 assign( ~lhs, (~lhs) * rhs.scalar_ );
630 template<
typename VT2 >
638 assign( ~lhs, rhs.vector_ );
639 (~lhs) *= rhs.scalar_;
658 template<
typename VT2 >
659 friend inline auto addAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
660 -> EnableIf_t< UseAssign_v<VT2> >
671 addAssign( ~lhs, tmp );
694 template<
typename VT2 >
695 friend inline auto subAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
696 -> EnableIf_t< UseAssign_v<VT2> >
707 subAssign( ~lhs, tmp );
730 template<
typename VT2 >
731 friend inline auto multAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
732 -> EnableIf_t< UseAssign_v<VT2> >
743 multAssign( ~lhs, tmp );
766 template<
typename VT2 >
767 friend inline auto divAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
768 -> EnableIf_t< UseAssign_v<VT2> >
779 divAssign( ~lhs, tmp );
802 template<
typename VT2 >
804 -> EnableIf_t< UseSMPAssign_v<VT2> >
830 template<
typename VT2 >
832 -> EnableIf_t< UseSMPAssign_v<VT2> >
839 (~lhs) *= rhs.scalar_;
858 template<
typename VT2 >
860 -> EnableIf_t< UseSMPAssign_v<VT2> >
894 template<
typename VT2 >
896 -> EnableIf_t< UseSMPAssign_v<VT2> >
930 template<
typename VT2 >
932 -> EnableIf_t< UseSMPAssign_v<VT2> >
966 template<
typename VT2 >
968 -> EnableIf_t< UseSMPAssign_v<VT2> >
1025 template<
typename VT
1068 template<
typename VT
1071 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1072 inline decltype(
auto) operator*( const
DenseVector<VT,TF>& vec, ST scalar )
1105 template<
typename ST
1108 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1109 inline decltype(
auto) operator*( ST scalar, const
DenseVector<VT,TF>& vec )
1146 template<
typename VT
1183 template<
typename VT
1186 inline decltype(
auto) operator-( const DVecScalarMultExpr<VT,ST,TF>& dv )
1190 using ReturnType =
const DVecScalarMultExpr<VT,ST,TF>;
1191 return ReturnType( dv.leftOperand(), -dv.rightOperand() );
1218 template<
typename VT
1222 , EnableIf_t< IsNumeric_v<ST2> >* =
nullptr >
1223 inline decltype(
auto) operator*( const DVecScalarMultExpr<VT,ST1,TF>& vec, ST2 scalar )
1227 return vec.leftOperand() * ( vec.rightOperand() * scalar );
1246 template<
typename ST1
1250 , EnableIf_t< IsNumeric_v<ST1> >* =
nullptr >
1251 inline decltype(
auto) operator*( ST1 scalar, const DVecScalarMultExpr<VT,ST2,TF>& vec )
1255 return vec.leftOperand() * ( scalar * vec.rightOperand() );
1274 template<
typename VT
1278 , EnableIf_t< ( IsNumeric_v<ST2> && ( IsInvertible_v<ST1> || IsInvertible_v<ST2> ) ) >* =
nullptr >
1279 inline decltype(
auto) operator/( const DVecScalarMultExpr<VT,ST1,TF>& vec, ST2 scalar )
1283 return vec.leftOperand() * ( vec.rightOperand() / scalar );
1303 template<
typename VT1
1307 inline decltype(
auto)
1308 operator*( const DVecScalarMultExpr<VT1,ST,TF>& lhs, const DenseVector<VT2,TF>& rhs )
1312 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1332 template<
typename VT1
1336 inline decltype(
auto)
1337 operator*( const DenseVector<VT1,TF>& lhs, const DVecScalarMultExpr<VT2,ST,TF>& rhs )
1341 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1361 template<
typename VT1
1366 inline decltype(
auto)
1367 operator*( const DVecScalarMultExpr<VT1,ST1,TF>& lhs, const DVecScalarMultExpr<VT2,ST2,TF>& rhs )
1371 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1391 template<
typename VT1
1394 inline decltype(
auto)
1395 operator*( const DVecScalarMultExpr<VT1,ST,false>& lhs, const DenseVector<VT2,true>& rhs )
1399 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1419 template<
typename VT1
1422 inline decltype(
auto)
1423 operator*( const DenseVector<VT1,false>& lhs, const DVecScalarMultExpr<VT2,ST,true>& rhs )
1427 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1447 template<
typename VT1
1451 inline decltype(
auto)
1452 operator*( const DVecScalarMultExpr<VT1,ST1,false>& lhs, const DVecScalarMultExpr<VT2,ST2,true>& rhs )
1456 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1476 template<
typename VT1
1480 inline decltype(
auto)
1481 operator*( const DVecScalarMultExpr<VT1,ST,TF>& lhs, const SparseVector<VT2,TF>& rhs )
1485 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1505 template<
typename VT1
1509 inline decltype(
auto)
1510 operator*( const SparseVector<VT1,TF>& lhs, const DVecScalarMultExpr<VT2,ST,TF>& rhs )
1514 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1535 template<
typename VT1
1540 inline decltype(
auto)
1541 operator*( const DVecScalarMultExpr<VT1,ST1,TF>& lhs, const SVecScalarMultExpr<VT2,ST2,TF>& rhs )
1545 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1566 template<
typename VT1
1571 inline decltype(
auto)
1572 operator*( const SVecScalarMultExpr<VT1,ST1,TF>& lhs, const DVecScalarMultExpr<VT2,ST2,TF>& rhs )
1576 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1596 template<
typename VT1
1599 inline decltype(
auto)
1600 operator*( const DVecScalarMultExpr<VT1,ST,false>& lhs, const SparseVector<VT2,true>& rhs )
1604 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1624 template<
typename VT1
1627 inline decltype(
auto)
1628 operator*( const SparseVector<VT1,false>& lhs, const DVecScalarMultExpr<VT2,ST,true>& rhs )
1632 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1653 template<
typename VT1
1657 inline decltype(
auto)
1658 operator*( const DVecScalarMultExpr<VT1,ST1,false>& lhs, const SVecScalarMultExpr<VT2,ST2,true>& rhs )
1662 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1683 template<
typename VT1
1687 inline decltype(
auto)
1688 operator*( const SVecScalarMultExpr<VT1,ST1,false>& lhs, const DVecScalarMultExpr<VT2,ST2,true>& rhs )
1692 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1712 template<
typename MT
1716 inline decltype(
auto)
1717 operator*( const DenseMatrix<MT,SO>& mat, const DVecScalarMultExpr<VT,ST,false>& vec )
1721 return ( (~mat) * vec.leftOperand() ) * vec.rightOperand();
1741 template<
typename VT
1745 inline decltype(
auto)
1746 operator*( const DVecScalarMultExpr<VT,ST,true>& vec, const DenseMatrix<MT,SO>& mat )
1750 return ( vec.leftOperand() * (~mat) ) * vec.rightOperand();
1770 template<
typename MT
1774 inline decltype(
auto)
1775 operator*( const SparseMatrix<MT,SO>& mat, const DVecScalarMultExpr<VT,ST,false>& vec )
1779 return ( (~mat) * vec.leftOperand() ) * vec.rightOperand();
1799 template<
typename VT
1803 inline decltype(
auto)
1804 operator*( const DVecScalarMultExpr<VT,ST,true>& vec, const SparseMatrix<MT,SO>& mat )
1808 return ( vec.leftOperand() * (~mat) ) * vec.rightOperand();
1824 template<
typename VT,
typename ST,
bool TF >
1825 struct IsAligned< DVecScalarMultExpr<VT,ST,TF> >
1826 :
public IsAligned<VT>
1842 template<
typename VT,
typename ST,
bool TF >
1843 struct IsPadded< DVecScalarMultExpr<VT,ST,TF> >
1844 :
public IsPadded<VT>
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecScalarMultExpr.h:567
Pointer difference type of the Blaze library.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecScalarMultExpr.h:523
Header file for auxiliary alias declarations.
Constraint on the data type.
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the multiplication expression.
Definition: DVecScalarMultExpr.h:134
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DVecScalarMultExpr.h:163
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecScalarMultExpr.h:162
Header file for basic type definitions.
Header file for the SparseVector base class.
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
BLAZE_ALWAYS_INLINE auto load(size_t index) const noexcept
Access to the SIMD elements of the vector.
Definition: DVecScalarMultExpr.h:481
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DVecScalarMultExpr.h:533
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecScalarMultExpr.h:166
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.The ResultType_t alias declaration provides ...
Definition: Aliases.h:390
Header file for the serial shim.
const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecScalarMultExpr.h:254
ValueType value_type
Type of the underlying elements.
Definition: DVecScalarMultExpr.h:193
static constexpr bool smpAssignable
Compilation flag for SMP assignments.
Definition: CompressedMatrix.h:3113
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DVecScalarMultExpr.h:428
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: DVecScalarMultExpr.h:513
Header file for the DenseVector base class.
If_t< useAssign, const ResultType, const DVecScalarMultExpr &> CompositeType
Data type for composite expression templates.
Definition: DVecScalarMultExpr.h:169
ConstIterator_t< VT > IteratorType
ConstIterator type of the dense vector expression.
Definition: DVecScalarMultExpr.h:199
Header file for the Computation base class.
auto load() const noexcept
Access to the SIMD elements of the vector.
Definition: DVecScalarMultExpr.h:295
Header file for the UnderlyingElement type trait.
Header file for the RequiresEvaluation type trait.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:306
ConstIterator(IteratorType iterator, RightOperand scalar)
Constructor for the ConstIterator class.
Definition: DVecScalarMultExpr.h:208
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.The ReturnType_t alias declaration provides ...
Definition: Aliases.h:410
Header file for the VecScalarMultExpr base class.
ConstIterator end() const
Returns an iterator just past the last non-zero element of the dense vector.
Definition: DVecScalarMultExpr.h:503
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
auto smpDivAssign(Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > >
Default implementation of the SMP division assignment of a vector to a dense vector.
Definition: DenseVector.h:220
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: DVecScalarMultExpr.h:433
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecScalarMultExpr.h:185
ElementType ValueType
Type of the underlying elements.
Definition: DVecScalarMultExpr.h:186
auto length(const DenseVector< VT, TF > &dv) -> decltype(sqrt(sqrLength(~dv)))
Calculation of the length (magnitude) of the dense vector .
Definition: DenseVector.h:606
Header file for the SparseMatrix base class.
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.The EnableIf_t alias declaration provides a convenient...
Definition: EnableIf.h:138
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: DVecScalarMultExpr.h:467
Header file for the IsTemporary type trait class.
Header file for the multiplication trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the If class template.
ElementType * PointerType
Pointer return type.
Definition: DVecScalarMultExpr.h:187
Header file for the UnderlyingBuiltin type trait.
Type ElementType
Type of the compressed matrix elements.
Definition: CompressedMatrix.h:3080
#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
Iterator over the elements of the dense vector.
Definition: DVecScalarMultExpr.h:181
Header file for the DenseMatrix base class.
decltype(auto) normalize(const DenseVector< VT, TF > &vec)
Normalization of the dense vector ( ).
Definition: DVecScalarMultExpr.h:1148
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3086
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:350
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecScalarMultExpr.h:493
Header file for all SIMD functionality.
ResultType_t< VT > RT
Result type of the dense vector expression.
Definition: DVecScalarMultExpr.h:107
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:76
#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 IsAligned type trait.
Constraint on the data type.
Constraint on the data type.
Header file for the exception macros of the math module.
If_t< IsExpression_v< VT >, const VT, const VT &> LeftOperand
Composite type of the left-hand side dense vector expression.
Definition: DVecScalarMultExpr.h:172
Constraint on the data type.
LeftOperand vector_
Left-hand side dense vector of the multiplication expression.
Definition: DVecScalarMultExpr.h:584
Header file for all forward declarations for expression class templates.
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_t
Auxiliary alias declaration for the UnderlyingBuiltin type trait.The UnderlyingBuiltin_t alias declar...
Definition: UnderlyingBuiltin.h:133
Header file for the EnableIf class template.
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecScalarMultExpr.h:243
Header file for the IsPadded type trait.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecScalarMultExpr.h:557
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecScalarMultExpr.h:372
decltype(std::declval< RN >() *std::declval< ST >()) ExprReturnType
Expression return type for the subscript operator.
Definition: DVecScalarMultExpr.h:123
ReferenceType reference
Reference return type.
Definition: DVecScalarMultExpr.h:195
ElementType & ReferenceType
Reference return type.
Definition: DVecScalarMultExpr.h:188
typename MultTrait< T1, T2 >::Type MultTrait_t
Auxiliary alias declaration for the MultTrait class template.The MultTrait_t alias declaration provid...
Definition: MultTrait.h:240
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecScalarMultExpr.h:384
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:328
Header file for the IsNumeric type trait.
RightOperand scalar_
Right-hand side scalar of the multiplication expression.
Definition: DVecScalarMultExpr.h:585
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecScalarMultExpr.h:454
Base class for all vector/scalar multiplication expression templates.The VecScalarMultExpr class serv...
Definition: VecScalarMultExpr.h:67
CompositeType_t< VT > CT
Composite type of the dense vector expression.
Definition: DVecScalarMultExpr.h:110
Header file for the HasSIMDMult type trait.
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.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DVecScalarMultExpr.h:577
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.The CompositeType_t alias declaration pro...
Definition: Aliases.h:90
IteratorCategory iterator_category
The iterator category.
Definition: DVecScalarMultExpr.h:192
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
IteratorType iterator_
Iterator to the current element.
Definition: DVecScalarMultExpr.h:415
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:317
Constraint on the data type.
#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:295
#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
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecScalarMultExpr.h:396
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
MultTrait_t< RT, ST > ResultType
Result type for expression template evaluations.
Definition: DVecScalarMultExpr.h:161
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:808
#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
ElementType_t< VT > ET
Element type of the dense vector expression.
Definition: DVecScalarMultExpr.h:109
Header file for the IsInvertible type trait.
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecScalarMultExpr.h:408
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.The ConstIterator_t alias declaration pro...
Definition: Aliases.h:110
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3081
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional vector type...
Definition: DenseVector.h:61
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecScalarMultExpr.h:545
Header file for the IsComputation type trait class.
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:339
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecScalarMultExpr.h:275
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
Expression object for dense vector-scalar multiplications.The DVecScalarMultExpr class represents the...
Definition: DVecScalarMultExpr.h:101
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecScalarMultExpr.h:220
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
DVecScalarMultExpr(const VT &vector, ST scalar) noexcept
Constructor for the DVecScalarMultExpr class.
Definition: DVecScalarMultExpr.h:442
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecScalarMultExpr.h:189
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:138
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecScalarMultExpr.h:232
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: DVecScalarMultExpr.h:120
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecScalarMultExpr.h:285
ReturnType_t< VT > RN
Return type of the dense vector expression.
Definition: DVecScalarMultExpr.h:108
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:361
System settings for the inline keywords.
RightOperand scalar_
Scalar of the multiplication expression.
Definition: DVecScalarMultExpr.h:416
#define BLAZE_CONSTRAINT_MUST_BE_VECTOR_WITH_TRANSPOSE_FLAG(T, TF)
Constraint on the data type.In case the given data type T is not a dense or sparse vector type and in...
Definition: TransposeFlag.h:63
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
auto smpMultAssign(Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs) -> EnableIf_t< IsDenseVector_v< VT1 > >
Default implementation of the SMP multiplication assignment of a vector to a dense vector...
Definition: DenseVector.h:191
#define BLAZE_CONSTRAINT_MUST_BE_FLOATING_POINT_TYPE(T)
Constraint on the data type.In case the given data type T is not a floating point data type...
Definition: FloatingPoint.h:61
Header file for the IsExpression type trait class.
PointerType pointer
Pointer return type.
Definition: DVecScalarMultExpr.h:194
Header file for the function trace functionality.
ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecScalarMultExpr.h:264
ST RightOperand
Composite type of the right-hand side scalar value.
Definition: DVecScalarMultExpr.h:175
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DVecScalarMultExpr.h:423