35 #ifndef _BLAZE_MATH_EXPRESSIONS_SVECMAPEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_SVECMAPEXPR_H_ 93 :
public VecMapExpr< SparseVector< SVecMapExpr<VT,OP,TF>, TF > >
110 static constexpr
bool useAssign = RequiresEvaluation_v<VT>;
113 template<
typename VT2 >
115 static constexpr
bool UseAssign_v =
useAssign;
127 template<
typename VT2 >
128 static constexpr
bool UseSMPAssign_v =
129 ( ( !VT2::smpAssignable || !VT::smpAssignable ) &&
useAssign );
142 using ReturnType = decltype( std::declval<OP>()( std::declval<RN>() ) );
230 return op_(
it_->value() );
322 if( index >=
sv_.size() ) {
325 return (*
this)[index];
354 inline size_t size() const noexcept {
365 return sv_.nonZeros();
431 template<
typename T >
432 inline bool canAlias(
const T* alias )
const noexcept {
433 return sv_.canAlias( alias );
443 template<
typename T >
444 inline bool isAliased(
const T* alias )
const noexcept {
445 return sv_.isAliased( alias );
455 return sv_.canSMPAssign();
479 template<
typename VT2 >
492 assign( ~lhs,
map( tmp, rhs.op_ ) );
512 template<
typename VT2 >
521 assign( ~lhs, rhs.sv_ );
523 const auto end( (~lhs).
end() );
524 for(
auto element=(~lhs).
begin(); element!=
end; ++element ) {
525 element->value() = rhs.op_( element->value() );
546 template<
typename VT2 >
547 friend inline auto assign( SparseVector<VT2,TF>& lhs,
const SVecMapExpr& rhs )
548 -> EnableIf_t< UseAssign_v<VT2> &&
549 !IsSame_v< UnderlyingNumeric_t<VT>, UnderlyingNumeric_t<VT2> > >
560 (~lhs).reserve( tmp.nonZeros() );
561 assign( ~lhs,
map( tmp, rhs.op_ ) );
580 template<
typename VT2 >
581 friend inline auto addAssign( DenseVector<VT2,TF>& lhs,
const SVecMapExpr& rhs )
582 -> EnableIf_t< UseAssign_v<VT2> >
593 addAssign( ~lhs,
map( tmp, rhs.op_ ) );
616 template<
typename VT2 >
617 friend inline auto subAssign( DenseVector<VT2,TF>& lhs,
const SVecMapExpr& rhs )
618 -> EnableIf_t< UseAssign_v<VT2> >
629 subAssign( ~lhs,
map( tmp, rhs.op_ ) );
652 template<
typename VT2 >
653 friend inline auto multAssign( DenseVector<VT2,TF>& lhs,
const SVecMapExpr& rhs )
654 -> EnableIf_t< UseAssign_v<VT2> >
665 multAssign( ~lhs,
map( tmp, rhs.op_ ) );
688 template<
typename VT2 >
690 -> EnableIf_t< UseSMPAssign_v<VT2> >
700 const RT tmp( rhs.sv_ );
724 template<
typename VT2 >
726 -> EnableIf_t< UseSMPAssign_v<VT2> >
736 const RT tmp( rhs.sv_ );
760 template<
typename VT2 >
762 -> EnableIf_t< UseSMPAssign_v<VT2> >
772 const RT tmp( rhs.sv_ );
796 template<
typename VT2 >
798 -> EnableIf_t< UseSMPAssign_v<VT2> >
808 const RT tmp( rhs.sv_ );
854 template<
typename VT
862 return ReturnType( ~sv, op );
885 template<
typename VT
892 return map( ~sv, op );
914 template<
typename VT
942 template<
typename VT
970 template<
typename VT
998 template<
typename VT
1026 template<
typename VT
1054 template<
typename VT
1082 template<
typename VT
1119 template<
typename VT
1147 template<
typename VT
1175 template<
typename VT
1206 template<
typename VT
1237 template<
typename VT
1268 template<
typename VT
1299 template<
typename VT
1329 template<
typename VT
1359 template<
typename VT
1362 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1390 template<
typename VT
1396 return map( ~sv,
Exp() );
1418 template<
typename VT
1446 template<
typename VT
1477 template<
typename VT
1483 return map( ~sv,
Log() );
1508 template<
typename VT
1539 template<
typename VT
1567 template<
typename VT
1573 return map( ~sv,
Sin() );
1598 template<
typename VT
1626 template<
typename VT
1654 template<
typename VT
1682 template<
typename VT
1688 return map( ~sv,
Cos() );
1713 template<
typename VT
1741 template<
typename VT
1772 template<
typename VT
1800 template<
typename VT
1806 return map( ~sv,
Tan() );
1828 template<
typename VT
1859 template<
typename VT
1890 template<
typename VT
1918 template<
typename VT
1924 return map( ~sv,
Erf() );
1946 template<
typename VT
1976 template<
typename VT
1978 inline decltype(
auto)
abs( const SVecMapExpr<VT,Abs,TF>& sv )
1999 template<
typename VT
2001 inline decltype(
auto)
sign( const SVecMapExpr<VT,Sign,TF>& sv )
2022 template<
typename VT
2024 inline decltype(
auto)
floor( const SVecMapExpr<VT,Floor,TF>& sv )
2045 template<
typename VT
2047 inline decltype(
auto)
ceil( const SVecMapExpr<VT,Ceil,TF>& sv )
2068 template<
typename VT
2070 inline decltype(
auto)
trunc( const SVecMapExpr<VT,Trunc,TF>& sv )
2091 template<
typename VT
2093 inline decltype(
auto)
round( const SVecMapExpr<VT,Round,TF>& sv )
2121 template<
typename VT
2123 inline decltype(
auto)
conj( const SVecMapExpr<VT,Conj,TF>& sv )
2127 return sv.operand();
2151 template<
typename VT
2153 inline decltype(
auto)
conj( const SVecTransExpr<SVecMapExpr<VT,Conj,TF>,!TF>& sv )
2157 return trans( sv.operand().operand() );
2174 template<
typename VT
2176 inline decltype(
auto)
real( const SVecMapExpr<VT,Real,TF>& sv )
Header file for the UnderlyingNumeric type trait.
If_t< IsExpression_v< VT >, const VT, const VT & > Operand
Composite data type of the sparse vector expression.
Definition: SVecMapExpr.h:148
Generic wrapper for the trunc() function.
Definition: Trunc.h:81
ConstIterator(IteratorType it, OP op)
Constructor for the ConstIterator class.
Definition: SVecMapExpr.h:187
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:2014
ConstIterator upperBound(size_t index) const
Returns an iterator to the first index greater then the given index.
Definition: SVecMapExpr.h:399
Header file for auxiliary alias declarations.
Generic wrapper for the ceil() function.
Definition: Ceil.h:81
decltype(auto) exp10(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1688
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: SVecMapExpr.h:454
Generic wrapper for the cbrt() function.
Definition: Cbrt.h:81
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
ValueIndexPair< ElementType > Element
Element type of the sparse vector expression.
Definition: SVecMapExpr.h:162
Generic wrapper for the sin() function.
Definition: Sin.h:79
Generic wrapper for the conj() function.
Definition: Conj.h:83
Generic wrapper for the invsqrt() function.
Definition: InvSqrt.h:69
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:1389
typename MapTrait< Args... >::Type MapTrait_t
Auxiliary alias declaration for the MapTrait class template.The MapTrait_t alias declaration provides...
Definition: MapTrait.h:160
Header file for the IsSame and IsStrictlySame type traits.
ResultType_t< VT > RT
Result type of the sparse vector expression.
Definition: SVecMapExpr.h:98
decltype(auto) ceil(const DenseMatrix< MT, SO > &dm)
Applies the ceil() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1240
Generic wrapper for the clamp() function.
Definition: Clamp.h:61
ReturnType value() const
Access to the current value of the sparse element.
Definition: SVecMapExpr.h:229
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:1271
Header file for the VecMapExpr base class.
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: SVecMapExpr.h:287
Generic wrapper for the acosh() function.
Definition: Acosh.h:69
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:1572
ReturnType at(size_t index) const
Checked access to the vector elements.
Definition: SVecMapExpr.h:321
decltype(auto) sign(const DenseMatrix< MT, SO > &dm)
Applies the sign() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1184
Header file for the Computation base class.
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: SVecMapExpr.h:261
Header file for the RequiresEvaluation type trait.
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the map expression.
Definition: SVecMapExpr.h:110
Iterator over the elements of the sparse vector map expression.
Definition: SVecMapExpr.h:157
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.The ReturnType_t alias declaration provides ...
Definition: Aliases.h:410
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SVecMapExpr.h:432
decltype(auto) acos(const DenseMatrix< MT, SO > &dm)
Computes the inverse cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1955
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SVecMapExpr.h:444
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
const Element operator *() const
Direct access to the sparse vector element at the current iterator position.
Definition: SVecMapExpr.h:209
decltype(auto) erf(const DenseMatrix< MT, SO > &dm)
Computes the error function for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2160
ValueType * PointerType
Pointer return type.
Definition: SVecMapExpr.h:169
const ConstIterator * operator->() const
Direct access to the sparse vector element at the current iterator position.
Definition: SVecMapExpr.h:219
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:83
Operation op_
The custom unary operation.
Definition: SVecMapExpr.h:462
Generic wrapper for the sqrt() function.
Definition: Sqrt.h:83
Header file for the ValueIndexPair class.
IteratorCategory iterator_category
The iterator category.
Definition: SVecMapExpr.h:174
If_t< useAssign, const ResultType, const SVecMapExpr & > CompositeType
Data type for composite expression templates.
Definition: SVecMapExpr.h:145
Header file for the multiplication trait.
typename UnderlyingNumeric< T >::Type UnderlyingNumeric_t
Auxiliary alias declaration for the UnderlyingNumeric type trait.The UnderlyingNumeric_t alias declar...
Definition: UnderlyingNumeric.h:117
decltype(auto) cos(const DenseMatrix< MT, SO > &dm)
Computes the cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1924
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
decltype(auto) ctrans(const DenseMatrix< MT, SO > &dm)
Returns the conjugate transpose matrix of dm.
Definition: DMatMapExpr.h:1361
size_t size() const noexcept
Returns the current size/dimension of the vector.
Definition: SVecMapExpr.h:354
Header file for the If class template.
Generic wrapper for the imag() function.
Definition: Imag.h:74
Generic wrapper for the exp10() function.
Definition: Exp10.h:67
decltype(auto) exp2(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1660
decltype(auto) sinh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1868
ValueType & ReferenceType
Reference return type.
Definition: SVecMapExpr.h:170
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two expression iterators.
Definition: SVecMapExpr.h:272
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:1840
decltype(auto) cosh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1983
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:1162
ConstIterator & operator++()
Pre-increment operator.
Definition: SVecMapExpr.h:198
decltype(auto) cbrt(const DenseMatrix< MT, SO > &dm)
Computes the cubic root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1510
#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
OP Operation
Data type of the custom unary operation.
Definition: SVecMapExpr.h:151
Generic wrapper for the log10() function.
Definition: Log10.h:69
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
Header file for all functors.
constexpr Bind2nd< OP, A2 > bind2nd(const OP &op, const A2 &a2)
Binds the given object/value to the 2nd parameter of the given binary operation.
Definition: Bind2nd.h:154
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_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional vector type,...
Definition: SparseVector.h:61
Generic wrapper for the exp2() function.
Definition: Exp2.h:67
Generic wrapper for the asin() function.
Definition: Asin.h:79
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:2070
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:1896
Generic wrapper for the erf() function.
Definition: Erf.h:77
ReturnType_t< VT > RN
Return type of the sparse vector expression.
Definition: SVecMapExpr.h:99
Expression object for the sparse vector map() function.The SVecMapExpr class represents the compile t...
Definition: Forward.h:155
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:1198
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: SVecMapExpr.h:250
Constraint on the data type.
ConstIterator find(size_t index) const
Searches for a specific vector element.
Definition: SVecMapExpr.h:375
Constraint on the data type.
Generic wrapper for the floor() function.
Definition: Floor.h:81
decltype(auto) exp(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1632
Header file for the EnableIf class template.
decltype(auto) abs(const DenseMatrix< MT, SO > &dm)
Applies the abs() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1156
decltype(auto) log(const DenseMatrix< MT, SO > &dm)
Computes the natural logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1719
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
std::forward_iterator_tag IteratorCategory
The iterator category.
Definition: SVecMapExpr.h:167
Header file for the IsNumeric type trait.
decltype(auto) floor(const DenseMatrix< MT, SO > &dm)
Applies the floor() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1212
decltype(auto) round(const DenseMatrix< MT, SO > &dm)
Applies the round() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1296
decltype(auto) tanh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2101
size_t index() const
Access to the current index of the sparse element.
Definition: SVecMapExpr.h:239
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:1128
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.
Generic wrapper for the pow() function.
Definition: Pow.h:63
Generic wrapper for the atanh() function.
Definition: Atanh.h:79
Generic wrapper for the invcbrt() function.
Definition: InvCbrt.h:67
Generic wrapper for the real() function.
Definition: Real.h:80
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:79
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:1541
Generic wrapper for the tan() function.
Definition: Tan.h:79
Generic wrapper for the log() function.
Definition: Log.h:69
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:2132
ConstIterator begin() const
Returns an iterator to the first non-zero element of the sparse vector.
Definition: SVecMapExpr.h:334
#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.
OP op_
The custom unary operation.
Definition: SVecMapExpr.h:280
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:67
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:808
MapTrait_t< RT, OP > ResultType
Result type for expression template evaluations.
Definition: SVecMapExpr.h:137
ConstIterator lowerBound(size_t index) const
Returns an iterator to the first index not less then the given index.
Definition: SVecMapExpr.h:387
Generic wrapper for the cos() function.
Definition: Cos.h:69
#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
Operand operand() const noexcept
Returns the sparse vector operand.
Definition: SVecMapExpr.h:410
Element ValueType
Type of the underlying pointers.
Definition: SVecMapExpr.h:168
Header file for the RemoveReference type trait.
Generic wrapper for the sign() function.
Definition: Sign.h:81
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.The ConstIterator_t alias declaration pro...
Definition: Aliases.h:110
ConstIterator end() const
Returns an iterator just past the last non-zero element of the sparse vector.
Definition: SVecMapExpr.h:344
ConstIterator_t< RemoveReference_t< Operand > > IteratorType
Iterator type of the sparse vector expression.
Definition: SVecMapExpr.h:165
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:765
decltype(auto) sin(const DenseMatrix< MT, SO > &dm)
Computes the sine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1809
SVecMapExpr(const VT &sv, OP op) noexcept
Constructor for the SVecMapExpr class.
Definition: SVecMapExpr.h:296
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:2188
Index-value-pair for sparse vectors and matrices.The ValueIndexPair class represents a single index-v...
Definition: ValueIndexPair.h:73
decltype(auto) sqrt(const DenseMatrix< MT, SO > &dm)
Computes the square root of each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1448
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
Generic wrapper for the acos() function.
Definition: Acos.h:69
decltype(auto) tan(const DenseMatrix< MT, SO > &dm)
Computes the tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2042
size_t nonZeros() const
Returns the number of non-zero elements in the sparse vector.
Definition: SVecMapExpr.h:364
Generic wrapper for the atan() function.
Definition: Atan.h:79
Base class for sparse vectors.The SparseVector class is a base class for all arbitrarily sized (N-dim...
Definition: Forward.h:146
Generic wrapper for the round() function.
Definition: Round.h:81
decltype(std::declval< OP >()(std::declval< RN >())) ReturnType
Return type for expression template evaluations.
Definition: SVecMapExpr.h:142
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SVecMapExpr.h:138
Generic wrapper for the sinh() function.
Definition: Sinh.h:79
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:1781
Generic wrapper for the log2() function.
Definition: Log2.h:67
Operand sv_
Sparse vector of the map expression.
Definition: SVecMapExpr.h:461
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition: DMatMapExpr.h:1417
IteratorType it_
Iterator over the elements of the sparse vector expression.
Definition: SVecMapExpr.h:279
Generic wrapper for the cosh() function.
Definition: Cosh.h:69
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition: DMatMapExpr.h:1324
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: SVecMapExpr.h:171
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: SVecMapExpr.h:139
decltype(auto) log2(const DenseMatrix< MT, SO > &dm)
Computes the binary logarithm for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1750
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:1479
Generic wrapper for the tanh() function.
Definition: Tanh.h:79
Operation operation() const
Returns a copy of the custom operation.
Definition: SVecMapExpr.h:420
Generic wrapper for the exp() function.
Definition: Exp.h:69
ReturnType operator[](size_t index) const
Subscript operator for the direct access to the vector elements.
Definition: SVecMapExpr.h:308
#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,...
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
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:1121