35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATMAPEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DMATMAPEXPR_H_ 100 :
public MatMapExpr< DenseMatrix< DMatMapExpr<MT,OP,SO>, SO > >
119 static constexpr
bool useAssign = RequiresEvaluation_v<MT>;
122 template<
typename MT2 >
124 static constexpr
bool UseAssign_v =
useAssign;
136 template<
typename MT2 >
137 static constexpr
bool UseSMPAssign_v =
152 using ReturnType = decltype( std::declval<OP>()( std::declval<RN>() ) );
281 inline auto load() const noexcept {
282 return op_.load(
it_.load() );
457 if( i >=
dm_.rows() ) {
460 if( j >=
dm_.columns() ) {
479 return op_.load(
dm_.load(i,j) );
510 inline size_t rows() const noexcept {
521 return dm_.columns();
551 template<
typename T >
552 inline bool canAlias(
const T* alias )
const noexcept {
553 return IsExpression_v<MT> &&
dm_.canAlias( alias );
563 template<
typename T >
564 inline bool isAliased(
const T* alias )
const noexcept {
565 return dm_.isAliased( alias );
575 return dm_.isAligned();
585 return dm_.canSMPAssign();
610 template<
typename MT2
621 assign( ~lhs, rhs.dm_ );
622 assign( ~lhs, rhs.op_( ~lhs ) );
642 template<
typename MT2
658 assign( ~lhs,
map( tmp, rhs.op_ ) );
677 template<
typename MT2
679 friend inline auto assign( SparseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
680 -> EnableIf_t< UseAssign_v<MT2> >
684 using TmpType = If_t< SO == SO2, RT, OT >;
696 const TmpType tmp(
serial( rhs.dm_ ) );
697 assign( ~lhs, rhs.op_( tmp ) );
716 template<
typename MT2
718 friend inline auto addAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
719 -> EnableIf_t< UseAssign_v<MT2> >
731 addAssign( ~lhs,
map( tmp, rhs.op_ ) );
754 template<
typename MT2
756 friend inline auto subAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
757 -> EnableIf_t< UseAssign_v<MT2> >
769 subAssign( ~lhs,
map( tmp, rhs.op_ ) );
792 template<
typename MT2
794 friend inline auto schurAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
795 -> EnableIf_t< UseAssign_v<MT2> >
807 schurAssign( ~lhs,
map( tmp, rhs.op_ ) );
839 template<
typename MT2
842 -> EnableIf_t< UseSMPAssign_v<MT2> &&
843 IsSame_v< UnderlyingNumeric_t<MT>, UnderlyingNumeric_t<MT2> > >
871 template<
typename MT2
874 -> EnableIf_t< UseSMPAssign_v<MT2> &&
875 !IsSame_v< UnderlyingNumeric_t<MT>, UnderlyingNumeric_t<MT2> > >
886 const RT tmp( rhs.dm_ );
906 template<
typename MT2
909 -> EnableIf_t< UseSMPAssign_v<MT2> >
913 using TmpType = If_t< SO == SO2, RT, OT >;
925 const TmpType tmp( rhs.dm_ );
945 template<
typename MT2
948 -> EnableIf_t< UseSMPAssign_v<MT2> >
959 const RT tmp( rhs.dm_ );
983 template<
typename MT2
986 -> EnableIf_t< UseSMPAssign_v<MT2> >
997 const RT tmp( rhs.dm_ );
1021 template<
typename MT2
1024 -> EnableIf_t< UseSMPAssign_v<MT2> >
1035 const RT tmp( rhs.dm_ );
1089 template<
typename MT
1120 template<
typename MT
1150 template<
typename MT
1179 template<
typename MT
1208 template<
typename MT
1237 template<
typename MT
1266 template<
typename MT
1295 template<
typename MT
1324 template<
typename MT
1362 template<
typename MT
1390 template<
typename MT
1419 template<
typename MT
1451 template<
typename MT
1483 template<
typename MT
1515 template<
typename MT
1547 template<
typename MT
1578 template<
typename MT
1609 template<
typename MT
1612 , EnableIf_t< IsNumeric_v<ST> >* =
nullptr >
1641 template<
typename MT
1670 template<
typename MT
1699 template<
typename MT
1731 template<
typename MT
1763 template<
typename MT
1795 template<
typename MT
1824 template<
typename MT
1856 template<
typename MT
1885 template<
typename MT
1914 template<
typename MT
1943 template<
typename MT
1975 template<
typename MT
2004 template<
typename MT
2036 template<
typename MT
2065 template<
typename MT
2094 template<
typename MT
2126 template<
typename MT
2158 template<
typename MT
2187 template<
typename MT
2216 template<
typename MT
2247 template<
typename MT
2249 inline decltype(
auto)
abs( const DMatMapExpr<MT,Abs,SO>& dm )
2270 template<
typename MT
2272 inline decltype(
auto)
sign( const DMatMapExpr<MT,Sign,SO>& dm )
2293 template<
typename MT
2295 inline decltype(
auto)
floor( const DMatMapExpr<MT,Floor,SO>& dm )
2316 template<
typename MT
2318 inline decltype(
auto)
ceil( const DMatMapExpr<MT,Ceil,SO>& dm )
2339 template<
typename MT
2341 inline decltype(
auto)
trunc( const DMatMapExpr<MT,Trunc,SO>& dm )
2362 template<
typename MT
2364 inline decltype(
auto)
round( const DMatMapExpr<MT,Round,SO>& dm )
2392 template<
typename MT
2394 inline decltype(
auto)
conj( const DMatMapExpr<MT,Conj,SO>& dm )
2398 return dm.operand();
2422 template<
typename MT
2424 inline decltype(
auto)
conj( const DMatTransExpr<DMatMapExpr<MT,Conj,SO>,!SO>& dm )
2428 using ReturnType =
const DMatTransExpr<MT,!SO>;
2446 template<
typename MT
2448 inline decltype(
auto)
real( const DMatMapExpr<MT,Real,SO>& dm )
2468 template<
typename MT,
typename OP,
bool SO >
2469 struct IsAligned< DMatMapExpr<MT,OP,SO> >
2470 :
public IsAligned<MT>
2486 template<
typename MT,
typename OP,
bool SO >
2487 struct IsPadded< DMatMapExpr<MT,OP,SO> >
2488 :
public BoolConstant< IsPadded_v<MT> && IsPaddingEnabled_v<OP> >
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatMapExpr.h:552
Header file for the UnderlyingNumeric type trait.
Generic wrapper for the trunc() function.
Definition: Trunc.h:80
Header file for the IsPaddingEnabled type trait.
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:314
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.
ElementType_t< MT > ET
Element type of the dense matrix expression.
Definition: DMatMapExpr.h:107
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:292
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
Generic wrapper for the cbrt() function.
Definition: Cbrt.h:80
Header file for the HasLoad type trait.
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatMapExpr.h:206
Header file for basic type definitions.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatMapExpr.h:584
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
Operand dm_
Dense matrix of the map expression.
Definition: DMatMapExpr.h:591
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
OP Operation
Data type of the custom unary operation.
Definition: DMatMapExpr.h:161
Generic wrapper for the conj() function.
Definition: Conj.h:82
Generic wrapper for the invsqrt() function.
Definition: InvSqrt.h:68
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatMapExpr.h:574
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
#define BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER(T, SO)
Constraint on the data type.In case the given data type T is not a dense or sparse matrix type and in...
Definition: StorageOrder.h:63
typename MapTrait< Args... >::Type MapTrait_t
Auxiliary alias declaration for the MapTrait class template.The MapTrait_t alias declaration provides...
Definition: MapTrait.h:160
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional matrix type...
Definition: DenseMatrix.h:61
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:336
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
Generic wrapper for the acosh() function.
Definition: Acosh.h:68
static constexpr bool smpAssignable
Compilation flag for SMP assignments.
Definition: CompressedMatrix.h:3113
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
ResultType_t< MT > RT
Result type of the dense matrix expression.
Definition: DMatMapExpr.h:105
Generic wrapper for the pow() function with fixed exponent.
Definition: Forward.h:129
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatMapExpr.h:261
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:325
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatMapExpr.h:250
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
ValueType value_type
Type of the underlying elements.
Definition: DMatMapExpr.h:179
Header file for the Computation base class.
ElementType & ReferenceType
Reference return type.
Definition: DMatMapExpr.h:174
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
ReferenceType reference
Reference return type.
Definition: DMatMapExpr.h:181
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
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DMatMapExpr.h:149
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatMapExpr.h:229
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:80
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DMatMapExpr.h:409
Iterator over the elements of the dense matrix map expression.
Definition: DMatMapExpr.h:167
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatMapExpr.h:281
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
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatMapExpr.h:394
Constraint on the data type.
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 i, size_t j) const
Checked access to the matrix elements.
Definition: DMatMapExpr.h:456
Header file for the MatMapExpr base class.
Operation operation() const
Returns a copy of the custom operation.
Definition: DMatMapExpr.h:540
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatMapExpr.h:382
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the map expression.
Definition: DMatMapExpr.h:119
Generic wrapper for the sqrt() function.
Definition: Sqrt.h:82
ElementType ValueType
Type of the underlying elements.
Definition: DMatMapExpr.h:172
ReturnType_t< MT > RN
Return type of the dense matrix expression.
Definition: DMatMapExpr.h:108
Header file for the multiplication trait.
decltype(auto) cos(const DenseMatrix< MT, SO > &dm)
Computes the cosine for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1945
OppositeType_t< MT > OT
Opposite type of the dense matrix expression.
Definition: DMatMapExpr.h:106
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatMapExpr.h:564
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
MapTrait_t< RT, OP > ResultType
Result type for expression template evaluations.
Definition: DMatMapExpr.h:146
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
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatMapExpr.h:148
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
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
Header file for the DenseMatrix base class.
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.
Header file for all SIMD functionality.
Operand operand() const noexcept
Returns the dense matrix operand.
Definition: DMatMapExpr.h:530
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatMapExpr.h:474
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DMatMapExpr.h:414
Header file for the IsAligned type trait.
Generic wrapper for the exp2() function.
Definition: Exp2.h:66
Base class for all unary matrix map expression templates.The MatMapExpr class serves as a tag for all...
Definition: MatMapExpr.h:66
Generic wrapper for the asin() function.
Definition: Asin.h:78
Operation op_
The custom unary operation.
Definition: DMatMapExpr.h:592
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatMapExpr.h:175
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
Generic wrapper for the erf() function.
Definition: Erf.h:76
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatMapExpr.h:358
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatMapExpr.h:171
Constraints on the storage order of matrix types.
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
ReturnType operator()(size_t i, size_t j) const noexcept
2D-access to the matrix elements.
Definition: DMatMapExpr.h:441
Constraint on the data type.
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:303
Header file for all forward declarations for expression class templates.
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
Header file for the EnableIf class template.
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
IteratorCategory iterator_category
The iterator category.
Definition: DMatMapExpr.h:178
ConstIterator(IteratorType it, OP op)
Constructor for the ConstIterator class.
Definition: DMatMapExpr.h:194
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
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.The OppositeType_t alias declaration provi...
Definition: Aliases.h:270
Header file for the IsNumeric type trait.
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatMapExpr.h:347
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatMapExpr.h:520
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
ElementType * PointerType
Pointer return type.
Definition: DMatMapExpr.h:173
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
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
Header file for run time assertion macros.
Generic wrapper for the atanh() function.
Definition: Atanh.h:78
Generic wrapper for the invcbrt() function.
Definition: InvCbrt.h:66
Generic wrapper for the real() function.
Definition: Real.h:79
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatMapExpr.h:218
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
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
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatMapExpr.h:489
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
IteratorType it_
Iterator to the current matrix element.
Definition: DMatMapExpr.h:401
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
OP op_
The custom unary operation.
Definition: DMatMapExpr.h:402
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
Header file for the HasMember type traits.
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
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:101
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
#define BLAZE_CONSTRAINT_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.In case either of the two given data types T1 or T2 is not a matrix type ...
Definition: StorageOrder.h:84
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatMapExpr.h:147
Generic wrapper for the sign() function.
Definition: Sign.h:80
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: DMatMapExpr.h:419
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
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: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
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatMapExpr.h:510
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
If_t< IsExpression_v< MT >, const MT, const MT &> Operand
Composite data type of the dense matrix expression.
Definition: DMatMapExpr.h:158
PointerType pointer
Pointer return type.
Definition: DMatMapExpr.h:180
Header file for the IsBuiltin type trait.
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 the dense matrix map() function.The DMatMapExpr class represents the compile ti...
Definition: DMatMapExpr.h:99
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatMapExpr.h:370
Generic wrapper for the acos() function.
Definition: Acos.h:68
If_t< useAssign, const ResultType, const DMatMapExpr &> CompositeType
Data type for composite expression templates.
Definition: DMatMapExpr.h:155
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
ConstIterator_t< MT > IteratorType
ConstIterator type of the dense matrix expression.
Definition: DMatMapExpr.h:185
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.
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
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatMapExpr.h:240
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
decltype(std::declval< OP >()(std::declval< RN >())) ReturnType
Return type for expression template evaluations.
Definition: DMatMapExpr.h:152
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
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatMapExpr.h:271
Generic wrapper for the tanh() function.
Definition: Tanh.h:78
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatMapExpr.h:500
Generic wrapper for the exp() function.
Definition: Exp.h:68
System settings for the inline keywords.
#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
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
DMatMapExpr(const MT &dm, OP op) noexcept
Constructor for the DMatMapExpr class.
Definition: DMatMapExpr.h:428
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