35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECSCALARMULTEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DVECSCALARMULTEXPR_H_ 135 static constexpr
bool useAssign = ( IsComputation_v<VT> && RequiresEvaluation_v<VT> );
138 template<
typename VT2 >
140 static constexpr
bool UseAssign_v =
useAssign;
152 template<
typename VT2 >
153 static constexpr
bool UseSMPAssign_v =
154 ( ( !VT2::smpAssignable || !VT::smpAssignable ) &&
useAssign );
296 inline auto load() const noexcept {
425 ( VT::simdEnabled && IsNumeric_v<ET> &&
426 ( HasSIMDMult_v<ET,ST> || HasSIMDMult_v<UnderlyingElement_t<ET>,ST> ) );
469 if( index >=
vector_.size() ) {
472 return (*
this)[index];
514 inline size_t size() const noexcept {
545 template<
typename T >
546 inline bool canAlias(
const T* alias )
const noexcept {
547 return IsExpression_v<VT> &&
vector_.canAlias( alias );
557 template<
typename T >
558 inline bool isAliased(
const T* alias )
const noexcept {
559 return vector_.isAliased( alias );
579 return vector_.canSMPAssign() || (
size() > SMP_DVECSCALARMULT_THRESHOLD );
603 template<
typename VT2 >
611 assign( ~lhs, rhs.vector_ );
612 assign( ~lhs, (~lhs) * rhs.scalar_ );
631 template<
typename VT2 >
639 assign( ~lhs, rhs.vector_ );
640 (~lhs) *= rhs.scalar_;
659 template<
typename VT2 >
660 friend inline auto addAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
661 -> EnableIf_t< UseAssign_v<VT2> >
672 addAssign( ~lhs, tmp );
695 template<
typename VT2 >
696 friend inline auto subAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
697 -> EnableIf_t< UseAssign_v<VT2> >
708 subAssign( ~lhs, tmp );
731 template<
typename VT2 >
732 friend inline auto multAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
733 -> EnableIf_t< UseAssign_v<VT2> >
744 multAssign( ~lhs, tmp );
767 template<
typename VT2 >
768 friend inline auto divAssign( DenseVector<VT2,TF>& lhs,
const DVecScalarMultExpr& rhs )
769 -> EnableIf_t< UseAssign_v<VT2> >
780 divAssign( ~lhs, tmp );
803 template<
typename VT2 >
805 -> EnableIf_t< UseSMPAssign_v<VT2> >
831 template<
typename VT2 >
833 -> EnableIf_t< UseSMPAssign_v<VT2> >
840 (~lhs) *= rhs.scalar_;
859 template<
typename VT2 >
861 -> EnableIf_t< UseSMPAssign_v<VT2> >
895 template<
typename VT2 >
897 -> EnableIf_t< UseSMPAssign_v<VT2> >
931 template<
typename VT2 >
933 -> EnableIf_t< UseSMPAssign_v<VT2> >
967 template<
typename VT2 >
969 -> EnableIf_t< UseSMPAssign_v<VT2> >
1026 template<
typename VT
1034 return ReturnType( ~dv, ScalarType(-1) );
1069 template<
typename VT
1072 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1073 inline decltype(
auto) operator*( const
DenseVector<VT,TF>& vec, ST scalar )
1079 return ReturnType( ~vec, scalar );
1106 template<
typename ST
1109 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1110 inline decltype(
auto) operator*( ST scalar, const
DenseVector<VT,TF>& vec )
1116 return ReturnType( ~vec, scalar );
1147 template<
typename VT
1155 const ElementType len (
length( ~vec ) );
1156 const ElementType ilen( ( len != ElementType(0) )?( ElementType(1) / len ):( 0 ) );
1159 return ReturnType( ~vec, ilen );
1184 template<
typename VT
1187 inline decltype(
auto) operator-( const DVecScalarMultExpr<VT,ST,TF>& dv )
1191 using ReturnType =
const DVecScalarMultExpr<VT,ST,TF>;
1192 return ReturnType( dv.leftOperand(), -dv.rightOperand() );
1219 template<
typename VT
1223 , EnableIf_t< IsNumeric_v<ST2> >* =
nullptr >
1224 inline decltype(
auto) operator*( const DVecScalarMultExpr<VT,ST1,TF>& vec, ST2 scalar )
1228 return vec.leftOperand() * ( vec.rightOperand() * scalar );
1247 template<
typename ST1
1251 , EnableIf_t< IsNumeric_v<ST1> >* =
nullptr >
1252 inline decltype(
auto) operator*( ST1 scalar, const DVecScalarMultExpr<VT,ST2,TF>& vec )
1256 return vec.leftOperand() * ( scalar * vec.rightOperand() );
1275 template<
typename VT
1279 ,
EnableIf_t< ( IsNumeric_v<ST2> && ( IsInvertible_v<ST1> || IsInvertible_v<ST2> ) ) >* =
nullptr >
1280 inline decltype(
auto) operator/( const DVecScalarMultExpr<VT,ST1,TF>& vec, ST2 scalar )
1284 return vec.leftOperand() * ( vec.rightOperand() / scalar );
1304 template<
typename VT1
1308 inline decltype(
auto)
1309 operator*( const DVecScalarMultExpr<VT1,ST,TF>& lhs, const DenseVector<VT2,TF>& rhs )
1313 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1333 template<
typename VT1
1337 inline decltype(
auto)
1338 operator*( const DenseVector<VT1,TF>& lhs, const DVecScalarMultExpr<VT2,ST,TF>& rhs )
1342 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1362 template<
typename VT1
1367 inline decltype(
auto)
1368 operator*( const DVecScalarMultExpr<VT1,ST1,TF>& lhs, const DVecScalarMultExpr<VT2,ST2,TF>& rhs )
1372 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1392 template<
typename VT1
1395 inline decltype(
auto)
1396 operator*( const DVecScalarMultExpr<VT1,ST,false>& lhs, const DenseVector<VT2,true>& rhs )
1400 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1420 template<
typename VT1
1423 inline decltype(
auto)
1424 operator*( const DenseVector<VT1,false>& lhs, const DVecScalarMultExpr<VT2,ST,true>& rhs )
1428 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1448 template<
typename VT1
1452 inline decltype(
auto)
1453 operator*( const DVecScalarMultExpr<VT1,ST1,false>& lhs, const DVecScalarMultExpr<VT2,ST2,true>& rhs )
1457 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1477 template<
typename VT1
1481 inline decltype(
auto)
1482 operator*( const DVecScalarMultExpr<VT1,ST,TF>& lhs, const SparseVector<VT2,TF>& rhs )
1486 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1506 template<
typename VT1
1510 inline decltype(
auto)
1511 operator*( const SparseVector<VT1,TF>& lhs, const DVecScalarMultExpr<VT2,ST,TF>& rhs )
1515 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1536 template<
typename VT1
1541 inline decltype(
auto)
1542 operator*( const DVecScalarMultExpr<VT1,ST1,TF>& lhs, const SVecScalarMultExpr<VT2,ST2,TF>& rhs )
1546 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1567 template<
typename VT1
1572 inline decltype(
auto)
1573 operator*( const SVecScalarMultExpr<VT1,ST1,TF>& lhs, const DVecScalarMultExpr<VT2,ST2,TF>& rhs )
1577 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1597 template<
typename VT1
1600 inline decltype(
auto)
1601 operator*( const DVecScalarMultExpr<VT1,ST,false>& lhs, const SparseVector<VT2,true>& rhs )
1605 return ( lhs.leftOperand() * (~rhs) ) * lhs.rightOperand();
1625 template<
typename VT1
1628 inline decltype(
auto)
1629 operator*( const SparseVector<VT1,false>& lhs, const DVecScalarMultExpr<VT2,ST,true>& rhs )
1633 return ( (~lhs) * rhs.leftOperand() ) * rhs.rightOperand();
1654 template<
typename VT1
1658 inline decltype(
auto)
1659 operator*( const DVecScalarMultExpr<VT1,ST1,false>& lhs, const SVecScalarMultExpr<VT2,ST2,true>& rhs )
1663 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1684 template<
typename VT1
1688 inline decltype(
auto)
1689 operator*( const SVecScalarMultExpr<VT1,ST1,false>& lhs, const DVecScalarMultExpr<VT2,ST2,true>& rhs )
1693 return ( lhs.leftOperand() * rhs.leftOperand() ) * ( lhs.rightOperand() * rhs.rightOperand() );
1713 template<
typename MT
1717 inline decltype(
auto)
1718 operator*( const DenseMatrix<MT,SO>& mat, const DVecScalarMultExpr<VT,ST,false>& vec )
1722 return ( (~mat) * vec.leftOperand() ) * vec.rightOperand();
1742 template<
typename VT
1746 inline decltype(
auto)
1747 operator*( const DVecScalarMultExpr<VT,ST,true>& vec, const DenseMatrix<MT,SO>& mat )
1751 return ( vec.leftOperand() * (~mat) ) * vec.rightOperand();
1771 template<
typename MT
1775 inline decltype(
auto)
1776 operator*( const SparseMatrix<MT,SO>& mat, const DVecScalarMultExpr<VT,ST,false>& vec )
1780 return ( (~mat) * vec.leftOperand() ) * vec.rightOperand();
1800 template<
typename VT
1804 inline decltype(
auto)
1805 operator*( const DVecScalarMultExpr<VT,ST,true>& vec, const SparseMatrix<MT,SO>& mat )
1809 return ( vec.leftOperand() * (~mat) ) * vec.rightOperand();
1825 template<
typename VT,
typename ST,
bool TF >
1826 struct IsAligned< DVecScalarMultExpr<VT,ST,TF> >
1827 :
public IsAligned<VT>
1843 template<
typename VT,
typename ST,
bool TF >
1844 struct IsPadded< DVecScalarMultExpr<VT,ST,TF> >
1845 :
public IsPadded<VT>
BLAZE_DEVICE_CALLABLE bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:362
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecScalarMultExpr.h:568
Pointer difference type of the Blaze library.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense vector operand.
Definition: DVecScalarMultExpr.h:524
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:135
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DVecScalarMultExpr.h:164
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecScalarMultExpr.h:163
Header file for basic type definitions.
Header file for the SparseVector base class.
typename If< Condition, T1, T2 >::Type If_t
Auxiliary alias template for the If class template.The If_t alias template provides a convenient shor...
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:482
RightOperand rightOperand() const noexcept
Returns the right-hand side scalar operand.
Definition: DVecScalarMultExpr.h:534
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DVecScalarMultExpr.h:167
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.
BLAZE_DEVICE_CALLABLE ConstIterator(IteratorType iterator, RightOperand scalar)
Constructor for the ConstIterator class.
Definition: DVecScalarMultExpr.h:209
ValueType value_type
Type of the underlying elements.
Definition: DVecScalarMultExpr.h:194
BLAZE_DEVICE_CALLABLE ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecScalarMultExpr.h:265
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DVecScalarMultExpr.h:429
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: DVecScalarMultExpr.h:514
Header file for the DenseVector base class.
BLAZE_DEVICE_CALLABLE bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:340
If_t< useAssign, const ResultType, const DVecScalarMultExpr & > CompositeType
Data type for composite expression templates.
Definition: DVecScalarMultExpr.h:170
ConstIterator_t< VT > IteratorType
ConstIterator type of the dense vector expression.
Definition: DVecScalarMultExpr.h:200
Header file for the Computation base class.
auto load() const noexcept
Access to the SIMD elements of the vector.
Definition: DVecScalarMultExpr.h:296
Header file for the UnderlyingElement type trait.
Header file for the RequiresEvaluation type trait.
BLAZE_DEVICE_CALLABLE const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecScalarMultExpr.h:255
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:504
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:434
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecScalarMultExpr.h:186
BLAZE_DEVICE_CALLABLE DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecScalarMultExpr.h:373
ElementType ValueType
Type of the underlying elements.
Definition: DVecScalarMultExpr.h:187
Header file for the SparseMatrix base class.
BLAZE_DEVICE_CALLABLE ReturnType operator *() const
Direct access to the element at the current iterator position.
Definition: DVecScalarMultExpr.h:286
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:468
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:188
Header file for the UnderlyingBuiltin type trait.
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.This macro encapsulates the default way of Bl...
Definition: Exception.h:331
Iterator over the elements of the dense vector.
Definition: DVecScalarMultExpr.h:182
Header file for the DenseMatrix base class.
BLAZE_DEVICE_CALLABLE ConstIterator & operator++()
Pre-increment operator.
Definition: DVecScalarMultExpr.h:244
decltype(auto) normalize(const DenseVector< VT, TF > &vec)
Normalization of the dense vector ( ).
Definition: DVecScalarMultExpr.h:1149
BLAZE_DEVICE_CALLABLE bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:318
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecScalarMultExpr.h:494
Header file for all SIMD functionality.
ResultType_t< VT > RT
Result type of the dense vector expression.
Definition: DVecScalarMultExpr.h:108
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.
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecScalarMultExpr.h:385
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:173
Constraint on the data type.
LeftOperand vector_
Left-hand side dense vector of the multiplication expression.
Definition: DVecScalarMultExpr.h:585
Header file for the EnableIf class template.
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:558
decltype(std::declval< RN >() *std::declval< ST >()) ExprReturnType
Expression return type for the subscript operator.
Definition: DVecScalarMultExpr.h:124
ReferenceType reference
Reference return type.
Definition: DVecScalarMultExpr.h:196
ElementType & ReferenceType
Reference return type.
Definition: DVecScalarMultExpr.h:189
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
BLAZE_DEVICE_CALLABLE const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecScalarMultExpr.h:276
Header file for the IsNumeric type trait.
RightOperand scalar_
Right-hand side scalar of the multiplication expression.
Definition: DVecScalarMultExpr.h:586
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecScalarMultExpr.h:455
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:111
Header file for the HasSIMDMult type trait.
decltype(auto) length(const DenseVector< VT, TF > &dv)
Calculation of the length (magnitude) of the dense vector .
Definition: DVecNormExpr.h:596
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:578
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.The CompositeType_t alias declaration pro...
Definition: Aliases.h:90
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecScalarMultExpr.h:409
IteratorCategory iterator_category
The iterator category.
Definition: DVecScalarMultExpr.h:193
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:416
BLAZE_DEVICE_CALLABLE bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:329
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_t
Auxiliary alias declaration for the UnderlyingBuiltin type trait.The UnderlyingBuiltin_t alias declar...
Definition: UnderlyingBuiltin.h:116
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
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecScalarMultExpr.h:397
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
Header file for all forward declarations for expression class templates.
BLAZE_ALWAYS_INLINE const EnableIf_t< IsIntegral_v< T > &&HasSize_v< T, 1UL >, If_t< IsSigned_v< T >, SIMDint8, SIMDuint8 > > set(T value) noexcept
Sets all values in the vector to the given 1-byte integral value.
Definition: Set.h:75
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:162
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:110
BLAZE_DEVICE_CALLABLE bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:307
Header file for the IsInvertible type trait.
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.The ConstIterator_t alias declaration pro...
Definition: Aliases.h:110
#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:546
BLAZE_DEVICE_CALLABLE bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecScalarMultExpr.h:351
Macro for CUDA compatibility.
Header file for the IsComputation type trait class.
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:102
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:443
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecScalarMultExpr.h:190
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:146
BLAZE_DEVICE_CALLABLE ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecScalarMultExpr.h:233
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: DVecScalarMultExpr.h:121
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition: HostDevice.h:94
ReturnType_t< VT > RN
Return type of the dense vector expression.
Definition: DVecScalarMultExpr.h:109
BLAZE_DEVICE_CALLABLE ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecScalarMultExpr.h:221
System settings for the inline keywords.
RightOperand scalar_
Scalar of the multiplication expression.
Definition: DVecScalarMultExpr.h:417
#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,...
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:195
Header file for the function trace functionality.
ST RightOperand
Composite type of the right-hand side scalar value.
Definition: DVecScalarMultExpr.h:176
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DVecScalarMultExpr.h:424