35#ifndef _BLAZE_MATH_EXPRESSIONS_SMATMAPEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_SMATMAPEXPR_H_
93 :
public MatMapExpr< SparseMatrix< SMatMapExpr<MT,OP,SO>, SO > >
111 static constexpr bool useAssign = RequiresEvaluation_v<MT>;
115 template<
typename MT2 >
116 static constexpr bool UseAssign_v =
useAssign;
128 template<
typename MT2 >
129 static constexpr bool UseSMPAssign_v =
130 ( ( !MT2::smpAssignable || !MT::smpAssignable ) &&
useAssign );
148 using ReturnType =
decltype( std::declval<OP>()( std::declval<RN>() ) );
195 ,
op_( std::move(op) )
236 return op_(
it_->value() );
304 ,
op_( std::move(op) )
331 if( i >=
sm_.rows() ) {
334 if( j >=
sm_.columns() ) {
368 inline size_t rows() const noexcept {
379 return sm_.columns();
389 return sm_.nonZeros();
400 return sm_.nonZeros(i);
469 template<
typename T >
470 inline bool canAlias(
const T* alias )
const noexcept {
471 return sm_.canAlias( alias );
481 template<
typename T >
482 inline bool isAliased(
const T* alias )
const noexcept {
483 return sm_.isAliased( alias );
493 return sm_.canSMPAssign();
517 template<
typename MT2
532 assign( *lhs,
map( tmp, rhs.op_ ) );
552 template<
typename MT2 >
562 assign( *lhs, rhs.sm_ );
564 const size_t m( rhs.rows() );
566 for(
size_t i=0UL; i<m; ++i ) {
567 const auto end( (*lhs).end(i) );
568 for(
auto element=(*lhs).begin(i); element!=
end; ++element ) {
569 element->value() = rhs.op_( element->value() );
591 template<
typename MT2 >
592 friend inline auto assign( SparseMatrix<MT2,true>& lhs,
const SMatMapExpr& rhs )
593 -> EnableIf_t< UseAssign_v<MT2> &&
594 IsSame_v< UnderlyingScalar_t<MT>, UnderlyingScalar_t<MT2> > >
601 assign( *lhs, rhs.sm_ );
603 const size_t n( rhs.columns() );
605 for(
size_t j=0UL; j<n; ++j ) {
606 const auto end( (*lhs).end(j) );
607 for(
auto element=(*lhs).begin(j); element!=
end; ++element ) {
608 element->value() = rhs.op_( element->value() );
630 template<
typename MT2
632 friend inline auto assign( SparseMatrix<MT2,SO2>& lhs,
const SMatMapExpr& rhs )
633 -> EnableIf_t< UseAssign_v<MT2> &&
634 !IsSame_v< UnderlyingScalar_t<MT>, UnderlyingScalar_t<MT2> > >
646 (*lhs).reserve( tmp.nonZeros() );
647 assign( *lhs,
map( tmp, rhs.op_ ) );
666 template<
typename MT2
668 friend inline auto addAssign( DenseMatrix<MT2,SO2>& lhs,
const SMatMapExpr& rhs )
669 -> EnableIf_t< UseAssign_v<MT2> >
681 addAssign( *lhs,
map( tmp, rhs.op_ ) );
704 template<
typename MT2
706 friend inline auto subAssign( DenseMatrix<MT2,SO2>& lhs,
const SMatMapExpr& rhs )
707 -> EnableIf_t< UseAssign_v<MT2> >
719 subAssign( *lhs,
map( tmp, rhs.op_ ) );
742 template<
typename MT2
744 friend inline auto schurAssign( DenseMatrix<MT2,SO2>& lhs,
const SMatMapExpr& rhs )
745 -> EnableIf_t< UseAssign_v<MT2> >
757 schurAssign( *lhs,
map( tmp, rhs.op_ ) );
788 template<
typename MT2
791 -> EnableIf_t< UseSMPAssign_v<MT2> >
802 const RT tmp( rhs.sm_ );
826 template<
typename MT2
829 -> EnableIf_t< UseSMPAssign_v<MT2> >
840 const RT tmp( rhs.sm_ );
864 template<
typename MT2
867 -> EnableIf_t< UseSMPAssign_v<MT2> >
878 const RT tmp( rhs.sm_ );
902 template<
typename MT2
905 -> EnableIf_t< UseSMPAssign_v<MT2> >
916 const RT tmp( rhs.sm_ );
978 return ReturnType( *sm, std::move(op) );
1001template<
typename MT
1008 return map( *sm, std::move(op) );
1030template<
typename MT
1036 return map( *sm,
Abs() );
1058template<
typename MT
1086template<
typename MT
1114template<
typename MT
1142template<
typename MT
1170template<
typename MT
1198template<
typename MT
1235template<
typename MT
1263template<
typename MT
1291template<
typename MT
1319template<
typename MT
1325 return map( *sm,
Arg() );
1350template<
typename MT
1381template<
typename MT
1412template<
typename MT
1443template<
typename MT
1473template<
typename MT
1503template<
typename MT
1506 , EnableIf_t< IsScalar_v<ST> >* =
nullptr >
1534template<
typename MT
1540 return map( *sm,
Exp() );
1562template<
typename MT
1590template<
typename MT
1621template<
typename MT
1627 return map( *sm,
Log() );
1652template<
typename MT
1683template<
typename MT
1716template<
typename MT
1749template<
typename MT
1777template<
typename MT
1783 return map( *sm,
Sin() );
1808template<
typename MT
1836template<
typename MT
1864template<
typename MT
1892template<
typename MT
1898 return map( *sm,
Cos() );
1923template<
typename MT
1951template<
typename MT
1982template<
typename MT
2010template<
typename MT
2016 return map( *sm,
Tan() );
2038template<
typename MT
2069template<
typename MT
2100template<
typename MT
2128template<
typename MT
2134 return map( *sm,
Erf() );
2157template<
typename MT
2187template<
typename MT
2189inline decltype(
auto)
abs(
const SMatMapExpr<MT,Abs,SO>& sm )
2210template<
typename MT
2212inline decltype(
auto)
sign(
const SMatMapExpr<MT,Sign,SO>& sm )
2233template<
typename MT
2235inline decltype(
auto)
floor(
const SMatMapExpr<MT,Floor,SO>& sm )
2256template<
typename MT
2258inline decltype(
auto)
ceil(
const SMatMapExpr<MT,Ceil,SO>& sm )
2279template<
typename MT
2281inline decltype(
auto)
trunc(
const SMatMapExpr<MT,Trunc,SO>& sm )
2302template<
typename MT
2304inline decltype(
auto)
round(
const SMatMapExpr<MT,Round,SO>& sm )
2332template<
typename MT
2334inline decltype(
auto)
conj(
const SMatMapExpr<MT,Conj,TF>& sm )
2338 return sm.operand();
2362template<
typename MT
2364inline decltype(
auto)
conj(
const SMatTransExpr<SMatMapExpr<MT,Conj,SO>,!SO>& sm )
2368 return trans( sm.operand().operand() );
2385template<
typename MT
2387inline decltype(
auto)
real(
const SMatMapExpr<MT,Real,SO>& sm )
2408template<
typename MT
2410inline decltype(
auto)
imag(
const SMatMapExpr<MT,Imag,SO>& sm )
Header file for auxiliary alias declarations.
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.
Definition: Aliases.h:470
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.
Definition: Aliases.h:450
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition: Aliases.h:190
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.
Definition: Aliases.h:310
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.
Definition: Aliases.h:130
typename T::TransposeType TransposeType_t
Alias declaration for nested TransposeType type definitions.
Definition: Aliases.h:550
Header file for run time assertion macros.
Header file for the EnableIf class template.
Header file for the function trace functionality.
Header file for all functors.
Header file for the If class template.
Header file for the IsBuiltin type trait.
Header file for the IsExpression type trait class.
Header file for the IsSame and IsStrictlySame type traits.
Header file for the IsScalar type trait.
Header file for the map trait.
Header file for the multiplication trait.
Header file for the RemoveReference type trait.
Header file for the UnderlyingBuiltin type trait.
Header file for the UnderlyingScalar type trait.
Header file for the ValueIndexPair class.
Base class for dense matrices.
Definition: DenseMatrix.h:82
Iterator over the elements of the sparse matrix map expression.
Definition: SMatMapExpr.h:164
std::forward_iterator_tag IteratorCategory
The iterator category.
Definition: SMatMapExpr.h:173
ConstIterator(IteratorType it, OP op)
Constructor for the ConstIterator class.
Definition: SMatMapExpr.h:193
ConstIterator & operator++()
Pre-increment operator.
Definition: SMatMapExpr.h:204
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: SMatMapExpr.h:256
DifferenceType difference_type
Difference between two iterators.
Definition: SMatMapExpr.h:184
OP op_
The custom unary operation.
Definition: SMatMapExpr.h:286
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: SMatMapExpr.h:267
ValueIndexPair< ElementType > Element
Element type of the sparse matrix expression.
Definition: SMatMapExpr.h:168
IteratorType it_
Iterator over the elements of the sparse matrix expression.
Definition: SMatMapExpr.h:285
const Element operator*() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SMatMapExpr.h:215
ValueType * PointerType
Pointer return type.
Definition: SMatMapExpr.h:175
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two expression iterators.
Definition: SMatMapExpr.h:278
ReturnType value() const
Access to the current value of the sparse element.
Definition: SMatMapExpr.h:235
size_t index() const
Access to the current index of the sparse element.
Definition: SMatMapExpr.h:245
const ConstIterator * operator->() const
Direct access to the sparse matrix element at the current iterator position.
Definition: SMatMapExpr.h:225
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: SMatMapExpr.h:177
ValueType & ReferenceType
Reference return type.
Definition: SMatMapExpr.h:176
ConstIterator_t< RemoveReference_t< Operand > > IteratorType
Iterator type of the sparse matrix expression.
Definition: SMatMapExpr.h:171
Element ValueType
Type of the underlying pointers.
Definition: SMatMapExpr.h:174
IteratorCategory iterator_category
The iterator category.
Definition: SMatMapExpr.h:180
Expression object for the sparse matrix map() function.
Definition: SMatMapExpr.h:95
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the map expression.
Definition: SMatMapExpr.h:111
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: SMatMapExpr.h:144
ConstIterator find(size_t i, size_t j) const
Searches for a specific matrix element.
Definition: SMatMapExpr.h:411
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: SMatMapExpr.h:293
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: SMatMapExpr.h:470
size_t nonZeros() const
Returns the number of non-zero elements in the sparse matrix.
Definition: SMatMapExpr.h:388
OppositeType_t< MT > OT
Opposite type of the sparse matrix expression.
Definition: SMatMapExpr.h:99
Operation op_
The custom unary operation.
Definition: SMatMapExpr.h:500
Operand operand() const noexcept
Returns the sparse matrix operand.
Definition: SMatMapExpr.h:448
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row/column i.
Definition: SMatMapExpr.h:347
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: SMatMapExpr.h:492
decltype(std::declval< OP >()(std::declval< RN >())) ReturnType
Return type for expression template evaluations.
Definition: SMatMapExpr.h:148
ResultType_t< MT > RT
Result type of the sparse matrix expression.
Definition: SMatMapExpr.h:98
ConstIterator lowerBound(size_t i, size_t j) const
Returns an iterator to the first index not less then the given index.
Definition: SMatMapExpr.h:424
Operation operation() const
Returns a copy of the custom operation.
Definition: SMatMapExpr.h:458
ConstIterator upperBound(size_t i, size_t j) const
Returns an iterator to the first index greater then the given index.
Definition: SMatMapExpr.h:437
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: SMatMapExpr.h:368
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row/column i.
Definition: SMatMapExpr.h:358
If_t< useAssign, const ResultType, const SMatMapExpr & > CompositeType
Data type for composite expression templates.
Definition: SMatMapExpr.h:151
If_t< IsExpression_v< MT >, const MT, const MT & > Operand
Composite data type of the sparse matrix expression.
Definition: SMatMapExpr.h:154
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: SMatMapExpr.h:143
size_t nonZeros(size_t i) const
Returns the number of non-zero elements in the specified row.
Definition: SMatMapExpr.h:399
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: SMatMapExpr.h:482
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: SMatMapExpr.h:330
SMatMapExpr(const MT &sm, OP op) noexcept
Constructor for the SMatMapExpr class.
Definition: SMatMapExpr.h:302
ReturnType_t< MT > RN
Return type of the sparse matrix expression.
Definition: SMatMapExpr.h:100
OP Operation
Data type of the custom unary operation.
Definition: SMatMapExpr.h:157
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: SMatMapExpr.h:315
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: SMatMapExpr.h:145
MapTrait_t< RT, OP > ResultType
Result type for expression template evaluations.
Definition: SMatMapExpr.h:142
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: SMatMapExpr.h:378
Operand sm_
Sparse matrix of the map expression.
Definition: SMatMapExpr.h:499
Base class for sparse matrices.
Definition: SparseMatrix.h:77
Index-value-pair for sparse vectors and matrices.
Definition: ValueIndexPair.h:75
Constraint on the data type.
Constraint on the data type.
Header file for the Computation base class.
Header file for the MatMapExpr base class.
Header file for the SparseMatrix base class.
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:1339
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:1375
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:766
decltype(auto) map(const DenseMatrix< MT1, SO > &lhs, const DenseMatrix< MT2, SO > &rhs, OP op)
Elementwise evaluation of the given binary operation on each single element of the dense matrices lhs...
Definition: DMatDMatMapExpr.h:1144
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:812
constexpr Bind3rd< OP, A3 > bind3rd(const OP &op, const A3 &a3)
Binds the given object/value to the 3rd parameter of the given operation.
Definition: Bind3rd.h:157
constexpr Bind2nd< OP, A2 > bind2nd(const OP &op, const A2 &a2)
Binds the given object/value to the 2nd parameter of the given operation.
Definition: Bind2nd.h:155
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.
Definition: RequiresEvaluation.h:81
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_MATRIX_TYPE(T)
Constraint on the data type.
Definition: SparseMatrix.h:61
#define BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER(T, SO)
Constraint on the data type.
Definition: StorageOrder.h:63
typename MapTrait< Args... >::Type MapTrait_t
Auxiliary alias declaration for the MapTrait class template.
Definition: MapTrait.h:131
typename MultTrait< T1, T2 >::Type MultTrait_t
Auxiliary alias declaration for the MultTrait class template.
Definition: MultTrait.h:165
typename UnderlyingScalar< T >::Type UnderlyingScalar_t
Auxiliary alias declaration for the UnderlyingScalar type trait.
Definition: UnderlyingScalar.h:116
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.
Definition: Assert.h:101
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
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
auto smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs) -> EnableIf_t< IsDenseMatrix_v< MT1 > >
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:194
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
decltype(auto) log1p(const SparseMatrix< MT, SO > &sm)
Computes the natural logarithm of x+1 for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1718
decltype(auto) round(const SparseMatrix< MT, SO > &sm)
Applies the round() function to each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1172
decltype(auto) imag(const SparseMatrix< MT, SO > &sm)
Returns a matrix containing the imaginary parts of each single element of sm.
Definition: SMatMapExpr.h:1293
decltype(auto) abs(const SparseMatrix< MT, SO > &sm)
Applies the abs() function to each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1032
decltype(auto) exp(const SparseMatrix< MT, SO > &sm)
Computes for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1536
decltype(auto) cosh(const SparseMatrix< MT, SO > &sm)
Computes the hyperbolic cosine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1953
decltype(auto) tan(const SparseMatrix< MT, SO > &sm)
Computes the tangent for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:2012
decltype(auto) clamp(const SparseMatrix< MT, SO > &sm, const DT &min, const DT &max)
Restricts each single element of the sparse matrix sm to the range .
Definition: SMatMapExpr.h:1476
decltype(auto) invsqrt(const SparseMatrix< MT, SO > &sm)
Computes the inverse square root of each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1383
decltype(auto) ceil(const SparseMatrix< MT, SO > &sm)
Applies the ceil() function to each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1116
decltype(auto) asin(const SparseMatrix< MT, SO > &sm)
Computes the inverse sine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1810
decltype(auto) forEach(const SparseMatrix< MT, SO > &sm, OP op)
Evaluates the given custom operation on each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1004
decltype(auto) log(const SparseMatrix< MT, SO > &sm)
Computes the natural logarithm for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1623
decltype(auto) cos(const SparseMatrix< MT, SO > &sm)
Computes the cosine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1894
decltype(auto) conj(const SparseMatrix< MT, SO > &sm)
Returns a matrix containing the complex conjugate of each single element of sm.
Definition: SMatMapExpr.h:1200
decltype(auto) acos(const SparseMatrix< MT, SO > &sm)
Computes the inverse cosine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1925
decltype(auto) sinh(const SparseMatrix< MT, SO > &sm)
Computes the hyperbolic sine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1838
decltype(auto) atanh(const SparseMatrix< MT, SO > &sm)
Computes the inverse hyperbolic tangent for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:2102
decltype(auto) pow(const SparseMatrix< MT, SO > &sm, ST exp)
Computes the exponential value for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1507
decltype(auto) tanh(const SparseMatrix< MT, SO > &sm)
Computes the hyperbolic tangent for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:2071
decltype(auto) erfc(const SparseMatrix< MT, SO > &sm)
Computes the complementary error function for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:2159
decltype(auto) erf(const SparseMatrix< MT, SO > &sm)
Computes the error function for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:2130
decltype(auto) invcbrt(const SparseMatrix< MT, SO > &sm)
Computes the inverse cubic root of each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1445
decltype(auto) sign(const SparseMatrix< MT, SO > &sm)
Applies the sign() function to each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1060
decltype(auto) log10(const SparseMatrix< MT, SO > &sm)
Computes the common logarithm for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1685
decltype(auto) trunc(const SparseMatrix< MT, SO > &sm)
Applies the trunc() function to each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1144
decltype(auto) exp10(const SparseMatrix< MT, SO > &sm)
Computes for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1592
decltype(auto) ctrans(const SparseMatrix< MT, SO > &sm)
Returns the conjugate transpose matrix of sm.
Definition: SMatMapExpr.h:1237
decltype(auto) asinh(const SparseMatrix< MT, SO > &sm)
Computes the inverse hyperbolic sine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1866
decltype(auto) exp2(const SparseMatrix< MT, SO > &sm)
Computes for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1564
decltype(auto) log2(const SparseMatrix< MT, SO > &sm)
Computes the binary logarithm for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1654
decltype(auto) floor(const SparseMatrix< MT, SO > &sm)
Applies the floor() function to each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1088
decltype(auto) atan(const SparseMatrix< MT, SO > &sm)
Computes the inverse tangent for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:2040
decltype(auto) acosh(const SparseMatrix< MT, SO > &sm)
Computes the inverse hyperbolic cosine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1984
decltype(auto) sin(const SparseMatrix< MT, SO > &sm)
Computes the sine for each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1779
decltype(auto) cbrt(const SparseMatrix< MT, SO > &sm)
Computes the cubic root of each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1414
decltype(auto) arg(const SparseMatrix< MT, SO > &sm)
Returns a matrix containing the phase angle of each single element of sm.
Definition: SMatMapExpr.h:1321
decltype(auto) real(const SparseMatrix< MT, SO > &sm)
Returns a matrix containing the real parts of each single element of sm.
Definition: SMatMapExpr.h:1265
decltype(auto) lgamma(const SparseMatrix< MT, SO > &sm)
Computes the natural logarithm of the absolute value of the gamma function for each non-zero element ...
Definition: SMatMapExpr.h:1751
decltype(auto) sqrt(const SparseMatrix< MT, SO > &sm)
Computes the square root of each non-zero element of the sparse matrix sm.
Definition: SMatMapExpr.h:1352
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition: EnableIf.h:138
typename If< Condition >::template Type< T1, T2 > If_t
Auxiliary alias template for the If class template.
Definition: If.h:108
#define BLAZE_THROW_OUT_OF_RANGE(MESSAGE)
Macro for the emission of a std::out_of_range exception.
Definition: Exception.h:331
#define BLAZE_FUNCTION_TRACE
Function trace macro.
Definition: FunctionTrace.h:94
Header file for the exception macros of the math module.
Constraints on the storage order of matrix types.
Header file for all forward declarations for expression class templates.
Header file for the serial shim.
Generic wrapper for the abs() function.
Definition: Abs.h:85
Generic wrapper for the acos() function.
Definition: Acos.h:71
Generic wrapper for the acosh() function.
Definition: Acosh.h:71
Generic wrapper for the arg() function.
Definition: Arg.h:77
Generic wrapper for the asin() function.
Definition: Asin.h:81
Generic wrapper for the asinh() function.
Definition: Asinh.h:81
Generic wrapper for the atan() function.
Definition: Atan.h:81
Generic wrapper for the atanh() function.
Definition: Atanh.h:81
Generic wrapper for the cbrt() function.
Definition: Cbrt.h:83
Generic wrapper for the ceil() function.
Definition: Ceil.h:83
Generic wrapper for the clamp() function.
Definition: Clamp.h:68
Base class for all compute expression templates.
Definition: Computation.h:68
Generic wrapper for the conj() function.
Definition: Conj.h:85
Generic wrapper for the cos() function.
Definition: Cos.h:71
Generic wrapper for the cosh() function.
Definition: Cosh.h:71
Generic wrapper for the erf() function.
Definition: Erf.h:79
Generic wrapper for the erfc() function.
Definition: Erfc.h:69
Generic wrapper for the exp10() function.
Definition: Exp10.h:69
Generic wrapper for the exp2() function.
Definition: Exp2.h:69
Generic wrapper for the exp() function.
Definition: Exp.h:71
Generic wrapper for the floor() function.
Definition: Floor.h:83
Generic wrapper for the imag() function.
Definition: Imag.h:76
Generic wrapper for the invcbrt() function.
Definition: InvCbrt.h:69
Generic wrapper for the invsqrt() function.
Definition: InvSqrt.h:71
Generic wrapper for the lgamma() function.
Definition: LGamma.h:71
Generic wrapper for the log10() function.
Definition: Log10.h:71
Generic wrapper for the log1p() function.
Definition: Log1p.h:71
Generic wrapper for the log2() function.
Definition: Log2.h:69
Generic wrapper for the log() function.
Definition: Log.h:71
Base class for all unary matrix map expression templates.
Definition: MatMapExpr.h:68
Generic wrapper for the pow() function.
Definition: Pow.h:65
Generic wrapper for the real() function.
Definition: Real.h:82
Generic wrapper for the round() function.
Definition: Round.h:83
Generic wrapper for the sign() function.
Definition: Sign.h:83
Generic wrapper for the sin() function.
Definition: Sin.h:81
Generic wrapper for the sinh() function.
Definition: Sinh.h:81
Generic wrapper for the sqrt() function.
Definition: Sqrt.h:85
Generic wrapper for the tan() function.
Definition: Tan.h:81
Generic wrapper for the tanh() function.
Definition: Tanh.h:81
Generic wrapper for the trunc() function.
Definition: Trunc.h:83
Header file for the RequiresEvaluation type trait.
Header file for basic type definitions.