35#ifndef _BLAZE_MATH_EXPRESSIONS_DMATMAPEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_DMATMAPEXPR_H_
105 :
public MatMapExpr< DenseMatrix< DMatMapExpr<MT,OP,SO>, SO > >
128 template<
typename MT2 >
129 static constexpr bool UseAssign_v =
useAssign;
141 template<
typename MT2 >
142 static constexpr bool UseSMPAssign_v =
143 ( ( !MT2::smpAssignable || !MT::smpAssignable ) &&
useAssign );
161 using ReturnType =
decltype( std::declval<OP>()( std::declval<RN>() ) );
205 ,
op_( std::move(op) )
290 inline auto load() const noexcept {
291 return op_.load(
it_.load() );
439 ,
op_( std::move(op) )
466 if( i >=
dm_.rows() ) {
469 if( j >=
dm_.columns() ) {
488 return op_.load(
dm_.load(i,j) );
519 inline size_t rows() const noexcept {
530 return dm_.columns();
560 template<
typename T >
561 inline bool canAlias(
const T* alias )
const noexcept {
572 template<
typename T >
573 inline bool isAliased(
const T* alias )
const noexcept {
574 return dm_.isAliased( alias );
584 return dm_.isAligned();
594 return dm_.canSMPAssign();
619 template<
typename MT2
630 assign( *lhs, rhs.dm_ );
631 assign( *lhs,
map( *lhs, rhs.op_ ) );
651 template<
typename MT2
667 assign( *lhs,
map( tmp, rhs.op_ ) );
686 template<
typename MT2
688 friend inline auto assign( SparseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
693 using TmpType = If_t< SO == SO2, RT, OT >;
705 const TmpType tmp(
serial( rhs.dm_ ) );
706 assign( *lhs,
map( tmp, rhs.op_ ) );
725 template<
typename MT2
727 friend inline auto addAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
740 addAssign( *lhs,
map( tmp, rhs.op_ ) );
763 template<
typename MT2
765 friend inline auto subAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
778 subAssign( *lhs,
map( tmp, rhs.op_ ) );
801 template<
typename MT2
803 friend inline auto schurAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatMapExpr& rhs )
816 schurAssign( *lhs,
map( tmp, rhs.op_ ) );
848 template<
typename MT2
880 template<
typename MT2
895 const RT tmp( rhs.dm_ );
915 template<
typename MT2
934 const TmpType tmp( rhs.dm_ );
954 template<
typename MT2
968 const RT tmp( rhs.dm_ );
992 template<
typename MT2
1006 const RT tmp( rhs.dm_ );
1030 template<
typename MT2
1044 const RT tmp( rhs.dm_ );
1098template<
typename MT
1106 return ReturnType( *dm, std::move(op) );
1129template<
typename MT
1136 return map( *dm, std::move(op) );
1160template<
typename MT
1194template<
typename ST
1228template<
typename MT
1262template<
typename ST
1294template<
typename MT
1300 return map( *dm,
Abs() );
1322template<
typename MT
1350template<
typename MT
1378template<
typename MT
1406template<
typename MT
1434template<
typename MT
1462template<
typename MT
1499template<
typename MT
1527template<
typename MT
1555template<
typename MT
1583template<
typename MT
1589 return map( *dm,
Arg() );
1614template<
typename MT
1645template<
typename MT
1676template<
typename MT
1707template<
typename MT
1737template<
typename MT
1767template<
typename MT
1799template<
typename MT
1805 return map( *dm,
Exp() );
1827template<
typename MT
1855template<
typename MT
1886template<
typename MT
1892 return map( *dm,
Log() );
1917template<
typename MT
1948template<
typename MT
1981template<
typename MT
2014template<
typename MT
2042template<
typename MT
2048 return map( *dm,
Sin() );
2073template<
typename MT
2101template<
typename MT
2129template<
typename MT
2157template<
typename MT
2163 return map( *dm,
Cos() );
2188template<
typename MT
2216template<
typename MT
2247template<
typename MT
2275template<
typename MT
2281 return map( *dm,
Tan() );
2303template<
typename MT
2334template<
typename MT
2365template<
typename MT
2393template<
typename MT
2399 return map( *dm,
Erf() );
2421template<
typename MT
2451template<
typename MT
2453inline decltype(
auto)
abs(
const DMatMapExpr<MT,Abs,SO>& dm )
2474template<
typename MT
2497template<
typename MT
2520template<
typename MT
2543template<
typename MT
2566template<
typename MT
2596template<
typename MT
2602 return dm.operand();
2626template<
typename MT
2632 return trans( dm.operand().operand() );
2649template<
typename MT
2690template<
typename MT
2726template<
typename ST
2763template<
typename MT
2800template<
typename ST
2836template<
typename ST
2867template<
typename MT
2894template<
typename MT
2921template<
typename MT
2950template<
typename MT
2979template<
typename MT
3015template<
typename MT
3021 return map( *mat,
Not{} );
3036template<
typename MT,
typename OP,
bool SO >
3037struct IsAligned< DMatMapExpr<MT,OP,SO> >
3038 :
public IsAligned<MT>
3054template<
typename MT,
typename OP,
bool SO >
3056 :
public BoolConstant< IsPadded_v<MT> && IsPaddingEnabled_v<OP> >
Header file for the addition trait.
Header file for auxiliary alias declarations.
typename T::ReturnType ReturnType_t
Alias declaration for nested ReturnType type definitions.
Definition Aliases.h:470
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
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.
Definition Aliases.h:190
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.
Definition Aliases.h:450
Header file for run time assertion macros.
Header file for the division trait.
Header file for the EnableIf class template.
Header file for the function trace functionality.
Header file for all functors.
Header file for the HasLoad type trait.
Header file for the HasMember type traits.
Macro for CUDA compatibility.
Header file for the If class template.
Header file for the IntegralConstant class template.
Header file for the IsAligned type trait.
Header file for the IsBuiltin type trait.
Header file for the IsComputation type trait class.
Header file for the IsExpression type trait class.
Header file for the IsNumeric type trait.
Header file for the IsPadded type trait.
Header file for the IsPaddingEnabled type trait.
Header file for the IsSIMDEnabled type trait.
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 all SIMD functionality.
Header file for the subtraction trait.
Header file for the UnderlyingScalar type trait.
Iterator over the elements of the dense matrix map expression.
Definition DMatMapExpr.h:177
BLAZE_DEVICE_CALLABLE const ConstIterator operator++(int)
Post-increment operator.
Definition DMatMapExpr.h:249
BLAZE_DEVICE_CALLABLE bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition DMatMapExpr.h:345
PointerType pointer
Pointer return type.
Definition DMatMapExpr.h:189
BLAZE_DEVICE_CALLABLE ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition DMatMapExpr.h:227
ConstIterator_t< MT > IteratorType
ConstIterator type of the dense matrix expression.
Definition DMatMapExpr.h:194
ElementType & ReferenceType
Reference return type.
Definition DMatMapExpr.h:183
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition DMatMapExpr.h:379
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition DMatMapExpr.h:290
ElementType ValueType
Type of the underlying elements.
Definition DMatMapExpr.h:181
BLAZE_DEVICE_CALLABLE ConstIterator & operator++()
Pre-increment operator.
Definition DMatMapExpr.h:238
BLAZE_DEVICE_CALLABLE bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition DMatMapExpr.h:301
BLAZE_DEVICE_CALLABLE bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition DMatMapExpr.h:356
IteratorType it_
Iterator to the current matrix element.
Definition DMatMapExpr.h:410
DifferenceType difference_type
Difference between two iterators.
Definition DMatMapExpr.h:191
BLAZE_DEVICE_CALLABLE bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition DMatMapExpr.h:334
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition DMatMapExpr.h:180
BLAZE_DEVICE_CALLABLE ConstIterator & operator--()
Pre-decrement operator.
Definition DMatMapExpr.h:259
ptrdiff_t DifferenceType
Difference between two iterators.
Definition DMatMapExpr.h:184
BLAZE_DEVICE_CALLABLE bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition DMatMapExpr.h:312
OP op_
The custom unary operation.
Definition DMatMapExpr.h:411
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition DMatMapExpr.h:391
ElementType * PointerType
Pointer return type.
Definition DMatMapExpr.h:182
ReferenceType reference
Reference return type.
Definition DMatMapExpr.h:190
BLAZE_DEVICE_CALLABLE ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition DMatMapExpr.h:280
BLAZE_DEVICE_CALLABLE ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition DMatMapExpr.h:215
ValueType value_type
Type of the underlying elements.
Definition DMatMapExpr.h:188
IteratorCategory iterator_category
The iterator category.
Definition DMatMapExpr.h:187
BLAZE_DEVICE_CALLABLE DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition DMatMapExpr.h:367
BLAZE_DEVICE_CALLABLE bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition DMatMapExpr.h:323
BLAZE_DEVICE_CALLABLE ConstIterator(IteratorType it, OP op)
Constructor for the ConstIterator class.
Definition DMatMapExpr.h:203
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition DMatMapExpr.h:403
BLAZE_DEVICE_CALLABLE const ConstIterator operator--(int)
Post-decrement operator.
Definition DMatMapExpr.h:270
Expression object for the dense matrix map() function.
Definition DMatMapExpr.h:107
ElementType_t< ResultType > ElementType
Resulting element type.
Definition DMatMapExpr.h:158
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row/column i.
Definition DMatMapExpr.h:498
MapTrait_t< RT, OP > ResultType
Result type for expression template evaluations.
Definition DMatMapExpr.h:155
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition DMatMapExpr.h:593
ElementType_t< MT > ET
Element type of the dense matrix expression.
Definition DMatMapExpr.h:112
Operation operation() const
Returns a copy of the custom operation.
Definition DMatMapExpr.h:549
MatMapExpr< DenseMatrix< This, SO > > BaseType
Base type of this DMatMapExpr instance.
Definition DMatMapExpr.h:153
ReturnType operator()(size_t i, size_t j) const noexcept
2D-access to the matrix elements.
Definition DMatMapExpr.h:450
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition DMatMapExpr.h:423
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition DMatMapExpr.h:561
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the map expression.
Definition DMatMapExpr.h:124
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition DMatMapExpr.h:519
Operand operand() const noexcept
Returns the dense matrix operand.
Definition DMatMapExpr.h:539
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition DMatMapExpr.h:573
decltype(std::declval< OP >()(std::declval< RN >())) ReturnType
Return type for expression template evaluations.
Definition DMatMapExpr.h:161
OP Operation
Data type of the custom unary operation.
Definition DMatMapExpr.h:170
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition DMatMapExpr.h:583
OppositeType_t< MT > OT
Opposite type of the dense matrix expression.
Definition DMatMapExpr.h:111
Operation op_
The custom unary operation.
Definition DMatMapExpr.h:601
If_t< IsExpression_v< MT >, const MT, const MT & > Operand
Composite data type of the dense matrix expression.
Definition DMatMapExpr.h:167
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition DMatMapExpr.h:156
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row/column i.
Definition DMatMapExpr.h:509
ReturnType_t< MT > RN
Return type of the dense matrix expression.
Definition DMatMapExpr.h:113
DMatMapExpr< MT, OP, SO > This
Type of this DMatMapExpr instance.
Definition DMatMapExpr.h:150
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition DMatMapExpr.h:483
Operand dm_
Dense matrix of the map expression.
Definition DMatMapExpr.h:600
If_t< useAssign, const ResultType, const DMatMapExpr & > CompositeType
Data type for composite expression templates.
Definition DMatMapExpr.h:164
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition DMatMapExpr.h:157
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition DMatMapExpr.h:418
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition DMatMapExpr.h:428
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition DMatMapExpr.h:529
DMatMapExpr(const MT &dm, OP op) noexcept
Constructor for the DMatMapExpr class.
Definition DMatMapExpr.h:437
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition DMatMapExpr.h:465
ResultType_t< MT > RT
Result type of the dense matrix expression.
Definition DMatMapExpr.h:110
Expression object for dense matrix transpositions.
Definition DMatTransExpr.h:93
Base class for dense matrices.
Definition DenseMatrix.h:82
SIMD characteristics of data types.
Definition SIMDTrait.h:297
Pointer difference type of the Blaze library.
Constraint on the data type.
Constraint on the data type.
Header file for the Computation base class.
Header file for the DenseMatrix base class.
Header file for the MatMapExpr base class.
decltype(auto) exp(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1801
decltype(auto) trunc(const DenseMatrix< MT, SO > &dm)
Applies the trunc() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1408
decltype(auto) floor(const DenseMatrix< MT, SO > &dm)
Applies the floor() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1352
decltype(auto) exp2(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1829
decltype(auto) sin(const DenseMatrix< MT, SO > &dm)
Computes the sine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2044
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) cbrt(const DenseMatrix< MT, SO > &dm)
Computes the cubic root of each single element of the dense matrix dm.
Definition DMatMapExpr.h:1678
decltype(auto) log1p(const DenseMatrix< MT, SO > &dm)
Computes the natural logarithm of x+1 for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1983
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:1647
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:2131
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:2249
decltype(auto) log(const DenseMatrix< MT, SO > &dm)
Computes the natural logarithm for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1888
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:1709
decltype(auto) real(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the real part of each single element of dm.
Definition DMatMapExpr.h:1529
decltype(auto) conj(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the complex conjugate of each single element of dm.
Definition DMatMapExpr.h:1464
decltype(auto) sinh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic sine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2103
decltype(auto) acos(const DenseMatrix< MT, SO > &dm)
Computes the inverse cosine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2190
decltype(auto) exp10(const DenseMatrix< MT, SO > &dm)
Computes for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1857
decltype(auto) ctrans(const DenseMatrix< MT, SO > &dm)
Returns the conjugate transpose matrix of dm.
Definition DMatMapExpr.h:1501
decltype(auto) atan(const DenseMatrix< MT, SO > &dm)
Computes the inverse tangent for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2305
decltype(auto) tanh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic tangent for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2336
decltype(auto) cosh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic cosine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2218
decltype(auto) arg(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the phase angle of each single element of dm.
Definition DMatMapExpr.h:1585
decltype(auto) log2(const DenseMatrix< MT, SO > &dm)
Computes the binary logarithm for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1919
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:1132
decltype(auto) abs(const DenseMatrix< MT, SO > &dm)
Applies the abs() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1296
decltype(auto) ceil(const DenseMatrix< MT, SO > &dm)
Applies the ceil() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1380
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:1740
decltype(auto) asin(const DenseMatrix< MT, SO > &dm)
Computes the inverse sine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2075
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition DMatTransExpr.h:766
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:1448
decltype(auto) sign(const DenseMatrix< MT, SO > &dm)
Applies the sign() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1324
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:2423
decltype(auto) log10(const DenseMatrix< MT, SO > &dm)
Computes the common logarithm for each single element of the dense matrix dm.
Definition DMatMapExpr.h:1950
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
decltype(auto) round(const DenseMatrix< MT, SO > &dm)
Applies the round() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1436
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:2367
decltype(auto) cos(const DenseMatrix< MT, SO > &dm)
Computes the cosine for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2159
decltype(auto) erf(const DenseMatrix< MT, SO > &dm)
Computes the error function for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2395
decltype(auto) lgamma(const DenseMatrix< MT, SO > &dm)
Computes the natural logarithm of the absolute value of the gamma function for each single element of...
Definition DMatMapExpr.h:2016
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition DMatMapExpr.h:1557
decltype(auto) tan(const DenseMatrix< MT, SO > &dm)
Computes the tangent for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2277
decltype(auto) sqrt(const DenseMatrix< MT, SO > &dm)
Computes the square root of each single element of the dense matrix dm.
Definition DMatMapExpr.h:1616
constexpr Bind1st< OP, A1 > bind1st(const OP &op, const A1 &a1)
Binds the given object/value to the 1st parameter of the given operation.
Definition Bind1st.h:153
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_MATRICES_MUST_HAVE_SAME_STORAGE_ORDER(T1, T2)
Constraint on the data type.
Definition StorageOrder.h:84
#define BLAZE_CONSTRAINT_MUST_NOT_REQUIRE_EVALUATION(T)
Constraint on the data type.
Definition RequiresEvaluation.h:81
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_MATRIX_TYPE(T)
Constraint on the data type.
Definition DenseMatrix.h:61
#define BLAZE_CONSTRAINT_MUST_BE_MATRIX_WITH_STORAGE_ORDER(T, SO)
Constraint on the data type.
Definition StorageOrder.h:63
typename SubTrait< T1, T2 >::Type SubTrait_t
Auxiliary alias declaration for the SubTrait class template.
Definition SubTrait.h:163
typename AddTrait< T1, T2 >::Type AddTrait_t
Auxiliary alias declaration for the AddTrait class template.
Definition AddTrait.h:163
typename MapTrait< Args... >::Type MapTrait_t
Auxiliary alias declaration for the MapTrait class template.
Definition MapTrait.h:131
typename DivTrait< T1, T2 >::Type DivTrait_t
Auxiliary alias declaration for the DivTrait class template.
Definition DivTrait.h:164
typename MultTrait< T1, T2 >::Type MultTrait_t
Auxiliary alias declaration for the MultTrait class template.
Definition MultTrait.h:165
constexpr bool RequiresEvaluation_v
Auxiliary variable template for the RequiresEvaluation type trait.
Definition RequiresEvaluation.h:91
constexpr bool IsExpression_v
Auxiliary variable template for the IsExpression type trait.
Definition IsExpression.h:114
typename UnderlyingScalar< T >::Type UnderlyingScalar_t
Auxiliary alias declaration for the UnderlyingScalar type trait.
Definition UnderlyingScalar.h:116
constexpr bool IsComputation_v
Auxiliary variable template for the IsComputation type trait.
Definition IsComputation.h:90
#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
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition Inline.h:85
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition HostDevice.h:94
constexpr bool IsSame_v
Auxiliary variable template for the IsSame type trait.
Definition IsSame.h:159
constexpr bool IsNumeric_v
Auxiliary variable template for the IsNumeric type trait.
Definition IsNumeric.h:132
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition EnableIf.h:138
#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
typename If< Condition >::template Type< T1, T2 > If_t
Auxiliary alias template for the If class template.
Definition If.h:108
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.
Definition IntegralConstant.h:110
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 addition operator.
Definition Add.h:85
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 bitwise AND ('&') operator.
Definition Bitand.h:82
Generic wrapper for the bitwise OR ('|') operator.
Definition Bitor.h:82
Generic wrapper for the bitwise XOR ('^') operator.
Definition Bitxor.h:68
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 division operator.
Definition Div.h:81
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
Compile time check for data types with padding.
Definition IsPadded.h:77
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 max() function.
Definition Max.h:82
Generic wrapper for the min() function.
Definition Min.h:82
Generic wrapper for the logical NOT operator.
Definition Not.h:60
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
ShiftLI(int count)
Constructor of the ShiftLI functor.
Definition ShiftLI.h:85
ShiftRI(int count)
Constructor of the ShiftRI functor.
Definition ShiftRI.h:84
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 subtraction operator.
Definition Sub.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
System settings for the inline keywords.
Header file for the RequiresEvaluation type trait.
Header file for basic type definitions.