35 #ifndef _BLAZE_MATH_EXPRESSIONS_DVECMAPEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DVECMAPEXPR_H_ 98 :
public VecMapExpr< DenseVector< DVecMapExpr<VT,OP,TF>, TF > >
116 static constexpr
bool useAssign = RequiresEvaluation_v<VT>;
119 template<
typename VT2 >
121 static constexpr
bool UseAssign_v =
useAssign;
133 template<
typename VT2 >
134 static constexpr
bool UseSMPAssign_v =
148 using ReturnType = decltype( std::declval<OP>()( std::declval<RN>() ) );
277 inline auto load() const noexcept {
278 return op_.load(
it_.load() );
451 if( index >=
dv_.size() ) {
454 return (*
this)[index];
467 return op_.load(
dv_.load( index ) );
496 inline size_t size() const noexcept {
527 template<
typename T >
528 inline bool canAlias(
const T* alias )
const noexcept {
529 return IsExpression_v<VT> &&
dv_.canAlias( alias );
539 template<
typename T >
540 inline bool isAliased(
const T* alias )
const noexcept {
541 return dv_.isAliased( alias );
551 return dv_.isAligned();
561 return dv_.canSMPAssign();
586 template<
typename VT2 >
595 assign( ~lhs, rhs.dv_ );
596 assign( ~lhs,
map( ~lhs, rhs.op_ ) );
616 template<
typename VT2 >
630 assign( ~lhs,
map( tmp, rhs.op_ ) );
649 template<
typename VT2 >
650 friend inline auto assign( SparseVector<VT2,TF>& lhs,
const DVecMapExpr& rhs )
651 -> EnableIf_t< UseAssign_v<VT2> >
662 assign( ~lhs,
map( tmp, rhs.op_ ) );
681 template<
typename VT2 >
682 friend inline auto addAssign( DenseVector<VT2,TF>& lhs,
const DVecMapExpr& rhs )
683 -> EnableIf_t< UseAssign_v<VT2> >
694 addAssign( ~lhs,
map( tmp, rhs.op_ ) );
717 template<
typename VT2 >
718 friend inline auto subAssign( DenseVector<VT2,TF>& lhs,
const DVecMapExpr& rhs )
719 -> EnableIf_t< UseAssign_v<VT2> >
730 subAssign( ~lhs,
map( tmp, rhs.op_ ) );
753 template<
typename VT2 >
754 friend inline auto multAssign( DenseVector<VT2,TF>& lhs,
const DVecMapExpr& rhs )
755 -> EnableIf_t< UseAssign_v<VT2> >
766 multAssign( ~lhs,
map( tmp, rhs.op_ ) );
789 template<
typename VT2 >
790 friend inline auto divAssign( DenseVector<VT2,TF>& lhs,
const DVecMapExpr& rhs )
791 -> EnableIf_t< UseAssign_v<VT2> >
802 divAssign( ~lhs,
map( tmp, rhs.op_ ) );
826 template<
typename VT2 >
828 -> EnableIf_t< UseSMPAssign_v<VT2> &&
829 IsSame_v< UnderlyingNumeric_t<VT>, UnderlyingNumeric_t<VT2> > >
856 template<
typename VT2 >
858 -> EnableIf_t< UseSMPAssign_v<VT2> &&
859 !IsSame_v< UnderlyingNumeric_t<VT>, UnderlyingNumeric_t<VT2> > >
869 const RT tmp( rhs.dv_ );
889 template<
typename VT2 >
891 -> EnableIf_t< UseSMPAssign_v<VT2> >
901 const RT tmp( rhs.dv_ );
921 template<
typename VT2 >
923 -> EnableIf_t< UseSMPAssign_v<VT2> >
933 const RT tmp( rhs.dv_ );
957 template<
typename VT2 >
959 -> EnableIf_t< UseSMPAssign_v<VT2> >
969 const RT tmp( rhs.dv_ );
993 template<
typename VT2 >
995 -> EnableIf_t< UseSMPAssign_v<VT2> >
1005 const RT tmp( rhs.dv_ );
1029 template<
typename VT2 >
1031 -> EnableIf_t< UseSMPAssign_v<VT2> >
1041 const RT tmp( rhs.dv_ );
1087 template<
typename VT
1118 template<
typename VT
1148 template<
typename VT
1177 template<
typename VT
1206 template<
typename VT
1235 template<
typename VT
1264 template<
typename VT
1293 template<
typename VT
1322 template<
typename VT
1360 template<
typename VT
1388 template<
typename VT
1417 template<
typename VT
1449 template<
typename VT
1481 template<
typename VT
1513 template<
typename VT
1545 template<
typename VT
1576 template<
typename VT
1607 template<
typename VT
1610 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1639 template<
typename VT
1668 template<
typename VT
1697 template<
typename VT
1729 template<
typename VT
1761 template<
typename VT
1793 template<
typename VT
1822 template<
typename VT
1854 template<
typename VT
1883 template<
typename VT
1912 template<
typename VT
1941 template<
typename VT
1973 template<
typename VT
2002 template<
typename VT
2034 template<
typename VT
2063 template<
typename VT
2092 template<
typename VT
2124 template<
typename VT
2156 template<
typename VT
2185 template<
typename VT
2214 template<
typename VT
2245 template<
typename VT
2247 inline decltype(
auto)
abs( const DVecMapExpr<VT,Abs,TF>& dv )
2268 template<
typename VT
2270 inline decltype(
auto)
sign( const DVecMapExpr<VT,Sign,TF>& dv )
2291 template<
typename VT
2293 inline decltype(
auto)
floor( const DVecMapExpr<VT,Floor,TF>& dv )
2314 template<
typename VT
2316 inline decltype(
auto)
ceil( const DVecMapExpr<VT,Ceil,TF>& dv )
2337 template<
typename VT
2339 inline decltype(
auto)
trunc( const DVecMapExpr<VT,Trunc,TF>& dv )
2360 template<
typename VT
2362 inline decltype(
auto)
round( const DVecMapExpr<VT,Round,TF>& dv )
2390 template<
typename VT
2392 inline decltype(
auto)
conj( const DVecMapExpr<VT,Conj,TF>& dv )
2396 return dv.operand();
2420 template<
typename VT
2422 inline decltype(
auto)
conj( const DVecTransExpr<DVecMapExpr<VT,Conj,TF>,!TF>& dv )
2426 using ReturnType =
const DVecTransExpr<VT,!TF>;
2444 template<
typename VT
2446 inline decltype(
auto)
real( const DVecMapExpr<VT,Real,TF>& dv )
2466 template<
typename VT,
typename OP,
bool TF >
2467 struct IsAligned< DVecMapExpr<VT,OP,TF> >
2468 :
public IsAligned<VT>
2484 template<
typename VT,
typename OP,
bool TF >
2485 struct IsPadded< DVecMapExpr<VT,OP,TF> >
2486 :
public BoolConstant< IsPadded_v<VT> && IsPaddingEnabled_v<OP> >
BLAZE_ALWAYS_INLINE auto load(size_t index) const noexcept
Access to the SIMD elements of the vector.
Definition: DVecMapExpr.h:464
Header file for the UnderlyingNumeric type trait.
Generic wrapper for the trunc() function.
Definition: Trunc.h:80
Header file for the IsPaddingEnabled type trait.
ElementType * PointerType
Pointer return type.
Definition: DVecMapExpr.h:169
Pointer difference type of the Blaze library.
decltype(auto) acosh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic cosine for each single element of the dense matrix dm...
Definition: DMatMapExpr.h:2038
Header file for auxiliary alias declarations.
Generic wrapper for the ceil() function.
Definition: Ceil.h:80
decltype(auto) exp10(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1701
OP op_
The custom unary operation.
Definition: DVecMapExpr.h:398
Generic wrapper for the cbrt() function.
Definition: Cbrt.h:80
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DVecMapExpr.h:540
Header file for the HasLoad type trait.
Header file for basic type definitions.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DVecMapExpr.h:378
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
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DVecMapExpr.h:354
Generic wrapper for the sin() function.
Definition: Sin.h:78
typename UnderlyingNumeric< T >::Type UnderlyingNumeric_t
Auxiliary alias declaration for the UnderlyingNumeric type trait.The UnderlyingNumeric_t alias declar...
Definition: UnderlyingNumeric.h:123
Generic wrapper for the conj() function.
Definition: Conj.h:82
Generic wrapper for the invsqrt() function.
Definition: InvSqrt.h:68
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.
decltype(auto) real(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the real part of each single element of dm.
Definition: DMatMapExpr.h:1392
typename MapTrait< Args... >::Type MapTrait_t
Auxiliary alias declaration for the MapTrait class template.The MapTrait_t alias declaration provides...
Definition: MapTrait.h:160
ElementType_t< VT > ET
Element type of the dense vector expression.
Definition: DVecMapExpr.h:104
Header file for the IsSame and IsStrictlySame type traits.
decltype(auto) ceil(const DenseMatrix< MT, SO > &dm)
Applies the ceil() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1239
Generic wrapper for the clamp() function.
Definition: Clamp.h:60
decltype(auto) pow(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise exponential value for the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1243
Header file for the VecMapExpr base class.
Generic wrapper for the acosh() function.
Definition: Acosh.h:68
static constexpr bool smpAssignable
Compilation flag for SMP assignments.
Definition: CompressedMatrix.h:3113
ElementType & ReferenceType
Reference return type.
Definition: DVecMapExpr.h:170
decltype(auto) clamp(const DenseMatrix< MT, SO > &dm, const DT &min, const DT &max)
Restricts each single element of the dense matrix dm to the range .
Definition: DMatMapExpr.h:1581
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DVecMapExpr.h:167
Header file for the DenseVector base class.
Generic wrapper for the pow() function with fixed exponent.
Definition: Forward.h:129
Operation op_
The custom unary operation.
Definition: DVecMapExpr.h:568
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DVecMapExpr.h:145
decltype(auto) sign(const DenseMatrix< MT, SO > &dm)
Applies the sign() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1181
DVecMapExpr(const VT &dv, OP op) noexcept
Constructor for the DVecMapExpr class.
Definition: DVecMapExpr.h:425
Header file for the Computation base class.
Header file for the RequiresEvaluation type trait.
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.The ReturnType_t alias declaration provides ...
Definition: Aliases.h:410
If_t< useAssign, const ResultType, const DVecMapExpr &> CompositeType
Data type for composite expression templates.
Definition: DVecMapExpr.h:151
decltype(auto) acos(const DenseMatrix< MT, SO > &dm)
Computes the inverse cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1977
IteratorCategory iterator_category
The iterator category.
Definition: DVecMapExpr.h:174
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DVecMapExpr.h:214
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
decltype(auto) erf(const DenseMatrix< MT, SO > &dm)
Computes the error function for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2189
ConstIterator_t< VT > IteratorType
ConstIterator type of the left-hand side dense vector expression.
Definition: DVecMapExpr.h:181
PointerType pointer
Pointer return type.
Definition: DVecMapExpr.h:176
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DVecMapExpr.h:390
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
Generic wrapper for the abs() function.
Definition: Abs.h:82
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: DVecMapExpr.h:450
Generic wrapper for the sqrt() function.
Definition: Sqrt.h:82
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecMapExpr.h:321
If_t< IsExpression_v< VT >, const VT, const VT &> Operand
Composite data type of the dense vector expression.
Definition: DVecMapExpr.h:154
Header file for the multiplication trait.
ConstIterator & operator--()
Pre-decrement operator.
Definition: DVecMapExpr.h:246
decltype(auto) cos(const DenseMatrix< MT, SO > &dm)
Computes the cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1945
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
decltype(auto) ctrans(const DenseMatrix< MT, SO > &dm)
Returns the conjugate transpose matrix of dm.
Definition: DMatMapExpr.h:1364
Header file for the If class template.
Generic wrapper for the imag() function.
Definition: Imag.h:73
Generic wrapper for the exp10() function.
Definition: Exp10.h:66
decltype(auto) exp2(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1672
decltype(auto) sinh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1887
Header file for the UnderlyingBuiltin type trait.
decltype(auto) asin(const DenseMatrix< MT, SO > &dm)
Computes the inverse sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1858
decltype(auto) cosh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2006
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DVecMapExpr.h:257
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1147
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DVecMapExpr.h:366
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DVecMapExpr.h:560
decltype(auto) cbrt(const DenseMatrix< MT, SO > &dm)
Computes the cubic root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1517
#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
Generic wrapper for the log10() function.
Definition: Log10.h:68
decltype(auto) trunc(const DenseMatrix< MT, SO > &dm)
Applies the trunc() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1268
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3086
Header file for all functors.
ConstIterator(IteratorType it, OP op)
Constructor for the ConstIterator class.
Definition: DVecMapExpr.h:190
Header file for all SIMD functionality.
ConstIterator & operator++()
Pre-increment operator.
Definition: DVecMapExpr.h:225
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:76
Header file for the IsAligned type trait.
Generic wrapper for the exp2() function.
Definition: Exp2.h:66
Generic wrapper for the asin() function.
Definition: Asin.h:78
Constraint on the data type.
decltype(auto) atan(const DenseMatrix< MT, SO > &dm)
Computes the inverse tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2096
decltype(auto) asinh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1916
MapTrait_t< RT, OP > ResultType
Result type for expression template evaluations.
Definition: DVecMapExpr.h:143
Generic wrapper for the erf() function.
Definition: Erf.h:76
ElementType ValueType
Type of the underlying elements.
Definition: DVecMapExpr.h:168
Constraint on the data type.
Base class for all unary vector map expression templates.The VecMapExpr class serves as a tag for all...
Definition: VecMapExpr.h:66
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DVecMapExpr.h:411
Header file for the exception macros of the math module.
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1179
Constraint on the data type.
Header file for all forward declarations for expression class templates.
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DVecMapExpr.h:406
Generic wrapper for the floor() function.
Definition: Floor.h:80
decltype(auto) exp(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1643
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecMapExpr.h:310
decltype(std::declval< OP >()(std::declval< RN >())) ReturnType
Return type for expression template evaluations.
Definition: DVecMapExpr.h:148
Header file for the EnableIf class template.
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DVecMapExpr.h:288
Header file for the IsPadded type trait.
decltype(auto) abs(const DenseMatrix< MT, SO > &dm)
Applies the abs() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1152
decltype(auto) log(const DenseMatrix< MT, SO > &dm)
Computes the natural logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1733
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
Operation operation() const
Returns a copy of the custom operation.
Definition: DVecMapExpr.h:516
Header file for the IsNumeric type trait.
ConstIterator end() const
Returns an iterator just past the last non-zero element of the dense vector.
Definition: DVecMapExpr.h:486
decltype(auto) floor(const DenseMatrix< MT, SO > &dm)
Applies the floor() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1210
Operand dv_
Dense vector of the map expression.
Definition: DVecMapExpr.h:567
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DVecMapExpr.h:528
decltype(auto) round(const DenseMatrix< MT, SO > &dm)
Applies the round() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1297
Header file for the IsSIMDEnabled type trait.
decltype(auto) tanh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2128
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DVecMapExpr.h:550
decltype(auto) forEach(const DenseMatrix< MT, SO > &dm, OP op)
Evaluates the given custom operation on each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1123
typename T::TransposeType TransposeType_t
Alias declaration for nested TransposeType type definitions.The TransposeType_t alias declaration pro...
Definition: Aliases.h:470
OP Operation
Data type of the custom unary operation.
Definition: DVecMapExpr.h:157
Header file for run time assertion macros.
const ConstIterator operator++(int)
Post-increment operator.
Definition: DVecMapExpr.h:236
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: DVecMapExpr.h:416
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DVecMapExpr.h:144
Generic wrapper for the atanh() function.
Definition: Atanh.h:78
Iterator over the elements of the dense vector map expression.
Definition: DVecMapExpr.h:163
Generic wrapper for the invcbrt() function.
Definition: InvCbrt.h:66
Generic wrapper for the real() function.
Definition: Real.h:79
IteratorType it_
Iterator to the current vector element.
Definition: DVecMapExpr.h:397
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
Generic wrapper for the asinh() function.
Definition: Asinh.h:78
ReferenceType reference
Reference return type.
Definition: DVecMapExpr.h:177
decltype(auto) invcbrt(const DenseMatrix< MT, SO > &dm)
Computes the inverse cubic root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1549
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the map expression.
Definition: DVecMapExpr.h:116
Generic wrapper for the tan() function.
Definition: Tan.h:78
Generic wrapper for the log() function.
Definition: Log.h:68
decltype(auto) atanh(const DenseMatrix< MT, SO > &dm)
Computes the inverse hyperbolic tangent for each single element of the dense matrix dm...
Definition: DMatMapExpr.h:2160
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
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
Generic wrapper for the erfc() function.
Definition: Erfc.h:66
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:808
Generic wrapper for the cos() function.
Definition: Cos.h:68
#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
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DVecMapExpr.h:343
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:101
Expression object for the dense vector map() function.The DVecMapExpr class represents the compile ti...
Definition: DVecMapExpr.h:97
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DVecMapExpr.h:267
ValueType value_type
Type of the underlying elements.
Definition: DVecMapExpr.h:175
Generic wrapper for the sign() function.
Definition: Sign.h:80
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
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:765
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DVecMapExpr.h:171
decltype(auto) sin(const DenseMatrix< MT, SO > &dm)
Computes the sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1826
decltype(auto) erfc(const DenseMatrix< MT, SO > &dm)
Computes the complementary error function for each single element of the dense matrix dm...
Definition: DMatMapExpr.h:2218
ResultType_t< VT > RT
Result type of the dense vector expression.
Definition: DVecMapExpr.h:103
decltype(auto) sqrt(const DenseMatrix< MT, SO > &dm)
Computes the square root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1453
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DVecMapExpr.h:202
auto load() const noexcept
Access to the SIMD elements of the vector.
Definition: DVecMapExpr.h:277
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
Generic wrapper for the acos() function.
Definition: Acos.h:68
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
decltype(auto) tan(const DenseMatrix< MT, SO > &dm)
Computes the tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2067
Generic wrapper for the atan() function.
Definition: Atan.h:78
Generic wrapper for the round() function.
Definition: Round.h:80
Generic wrapper for the sinh() function.
Definition: Sinh.h:78
Header file for the IntegralConstant class template.
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: DVecMapExpr.h:437
Header file for the map trait.
decltype(auto) log10(const DenseMatrix< MT, SO > &dm)
Computes the common logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1797
Generic wrapper for the log2() function.
Definition: Log2.h:66
Operand operand() const noexcept
Returns the dense vector operand.
Definition: DVecMapExpr.h:506
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition: DMatMapExpr.h:1421
Generic wrapper for the cosh() function.
Definition: Cosh.h:68
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition: DMatMapExpr.h:1326
decltype(auto) log2(const DenseMatrix< MT, SO > &dm)
Computes the binary logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1765
decltype(auto) invsqrt(const DenseMatrix< MT, SO > &dm)
Computes the inverse square root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1485
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: DVecMapExpr.h:496
Generic wrapper for the tanh() function.
Definition: Tanh.h:78
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DVecMapExpr.h:332
ReturnType_t< VT > RN
Return type of the dense vector expression.
Definition: DVecMapExpr.h:105
Generic wrapper for the exp() function.
Definition: Exp.h:68
System settings for the inline keywords.
#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
#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
ConstIterator begin() const
Returns an iterator to the first non-zero element of the dense vector.
Definition: DVecMapExpr.h:476
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DVecMapExpr.h:299
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
decltype(auto) map(const DenseMatrix< MT1, SO > &lhs, const DenseMatrix< MT2, SO > &rhs, OP op)
Evaluates the given binary operation on each single element of the dense matrices lhs and rhs...
Definition: DMatDMatMapExpr.h:1110