35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATDMATMAPEXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DMATDMATMAPEXPR_H_ 103 template<
typename MT1
108 :
public MatMatMapExpr< DenseMatrix< DMatDMatMapExpr<MT1,MT2,OP,SO>, SO > >
131 static constexpr
bool useAssign = ( RequiresEvaluation_v<MT1> || RequiresEvaluation_v<MT2> );
134 template<
typename MT >
136 static constexpr
bool UseAssign_v =
useAssign;
148 template<
typename MT >
149 static constexpr
bool UseSMPAssign_v =
150 ( ( !MT1::smpAssignable || !MT2::smpAssignable ) &&
useAssign );
164 using ReturnType = decltype( std::declval<OP>()( std::declval<RN1>(), std::declval<RN2>() ) );
311 inline auto load() const noexcept {
441 ( MT1::simdEnabled && MT2::simdEnabled &&
445 static constexpr
bool smpAssignable = ( MT1::smpAssignable && MT2::smpAssignable );
490 if( i >=
lhs_.rows() ) {
493 if( j >=
lhs_.columns() ) {
543 inline size_t rows() const noexcept {
554 return lhs_.columns();
594 template<
typename T >
595 inline bool canAlias(
const T* alias )
const noexcept {
596 return ( IsExpression_v<MT1> &&
lhs_.canAlias( alias ) ) ||
597 ( IsExpression_v<MT2> &&
rhs_.canAlias( alias ) );
607 template<
typename T >
608 inline bool isAliased(
const T* alias )
const noexcept {
609 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
619 return lhs_.isAligned() &&
rhs_.isAligned();
629 return lhs_.canSMPAssign() &&
rhs_.canSMPAssign();
654 template<
typename MT
674 assign( ~lhs,
map( A, B, rhs.op_ ) );
693 template<
typename MT
712 const TmpType tmp(
serial( rhs ) );
732 template<
typename MT
734 friend inline auto addAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatMapExpr& rhs )
735 -> EnableIf_t< UseAssign_v<MT> >
752 addAssign( ~lhs,
map( A, B, rhs.op_ ) );
775 template<
typename MT
777 friend inline auto subAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatMapExpr& rhs )
778 -> EnableIf_t< UseAssign_v<MT> >
795 subAssign( ~lhs,
map( A, B, rhs.op_ ) );
818 template<
typename MT
820 friend inline auto schurAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatMapExpr& rhs )
821 -> EnableIf_t< UseAssign_v<MT> >
838 schurAssign( ~lhs,
map( A, B, rhs.op_ ) );
869 template<
typename MT
872 -> EnableIf_t< UseSMPAssign_v<MT> >
908 template<
typename MT
911 -> EnableIf_t< UseSMPAssign_v<MT> >
915 using TmpType = If_t< SO == SO2, ResultType, OppositeType >;
927 const TmpType tmp( rhs );
948 template<
typename MT
951 -> EnableIf_t< UseSMPAssign_v<MT> >
992 template<
typename MT
995 -> EnableIf_t< UseSMPAssign_v<MT> >
1036 template<
typename MT
1039 -> EnableIf_t< UseSMPAssign_v<MT> >
1116 template<
typename MT1
1120 inline decltype(
auto)
1130 return ReturnType( ~lhs, ~rhs, op );
1157 template<
typename MT1
1161 inline decltype(
auto)
1166 return map( ~lhs, ~rhs,
Min() );
1193 template<
typename MT1
1197 inline decltype(
auto)
1202 return map( ~lhs, ~rhs,
Max() );
1230 template<
typename MT1
1234 inline decltype(
auto)
1266 template<
typename MT1
1270 inline decltype(
auto)
1275 return map( ~lhs, ~rhs,
Pow() );
1302 template<
typename MT1
1306 inline decltype(
auto)
1344 template<
typename MT1
1348 inline decltype(
auto)
1378 template<
typename MT1
1382 inline decltype(
auto)
1412 template<
typename MT1
1416 inline decltype(
auto)
1446 template<
typename MT1
1450 inline decltype(
auto)
1480 template<
typename MT1
1484 inline decltype(
auto)
1516 template<
typename MT1
1521 inline decltype(
auto)
1522 operator<<( const DMatDMatMapExpr<MT1,MT2,ShiftLV,SO1>& lhs, const DenseMatrix<MT3,SO2>& rhs )
1526 return map( lhs.leftOperand(), lhs.rightOperand() + (~rhs), lhs.operation() );
1546 template<
typename MT1
1551 inline decltype(
auto)
1552 operator>>( const DMatDMatMapExpr<MT1,MT2,ShiftRV,SO1>& lhs, const DenseMatrix<MT3,SO2>& rhs )
1556 return map( lhs.leftOperand(), lhs.rightOperand() + (~rhs), lhs.operation() );
1590 template<
typename MT1
1594 inline decltype(
auto)
1599 return map( ~lhs, ~rhs,
And{} );
1624 template<
typename MT1
1628 inline decltype(
auto)
1633 return map( ~lhs, ~rhs,
Or{} );
1648 template<
typename MT1,
typename MT2,
typename OP,
bool SO >
1649 struct IsAligned< DMatDMatMapExpr<MT1,MT2,OP,SO> >
1650 :
public BoolConstant< IsAligned_v<MT1> && IsAligned_v<MT2> >
1666 template<
typename MT1,
typename MT2,
typename OP,
bool SO >
1667 struct IsPadded< DMatDMatMapExpr<MT1,MT2,OP,SO> >
1668 :
public BoolConstant< IsPadded_v<MT1> && IsPadded_v<MT2> && IsPaddingEnabled_v<OP> >
Header file for the Pow functor.
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
Header file for the IsPaddingEnabled type trait.
Pointer difference type of the Blaze library.
IteratorCategory iterator_category
The iterator category.
Definition: DMatDMatMapExpr.h:199
Header file for auxiliary alias declarations.
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DMatDMatMapExpr.h:440
Header file for the ShiftRV functor.
Base class for all binary matrix map expression templates.The MatMatMapExpr class serves as a tag for...
Definition: MatMatMapExpr.h:66
DMatDMatMapExpr(const MT1 &lhs, const MT2 &rhs, OP op) noexcept
Constructor for the DMatDMatMapExpr class.
Definition: DMatDMatMapExpr.h:460
Header file for the HasLoad type trait.
Header file for basic type definitions.
BLAZE_DEVICE_CALLABLE ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatDMatMapExpr.h:279
decltype(auto) hypot(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise hypotenous for the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1235
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
Operation operation() const
Returns a copy of the custom operation.
Definition: DMatDMatMapExpr.h:583
BLAZE_DEVICE_CALLABLE ConstIterator & operator++()
Pre-increment operator.
Definition: DMatDMatMapExpr.h:257
ResultType_t< MT1 > RT1
Result type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:113
BLAZE_DEVICE_CALLABLE bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:355
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatDMatMapExpr.h:553
typename T::ResultType ResultType_t
Alias declaration for nested ResultType type definitions.The ResultType_t alias declaration provides ...
Definition: Aliases.h:390
decltype(std::declval< OP >()(std::declval< RN1 >(), std::declval< RN2 >())) ReturnType
Return type for expression template evaluations.
Definition: DMatDMatMapExpr.h:164
Header file for the Hypot functor.
Header file for the serial shim.
Generic wrapper for the atan2() function.
Definition: Atan2.h:78
#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
Generic wrapper for the bitwise OR ('|') operator.
Definition: Bitor.h:80
Header file for the Bitor functor.
If_t< useAssign, const ResultType, const DMatDMatMapExpr & > CompositeType
Data type for composite expression templates.
Definition: DMatDMatMapExpr.h:167
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
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DMatDMatMapExpr.h:161
Header file for the And functor.
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
Generic wrapper for the elementwise right-shift operation.
Definition: ShiftRV.h:75
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatDMatMapExpr.h:618
BLAZE_DEVICE_CALLABLE bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:366
LeftOperand lhs_
Left-hand side dense matrix of the map expression.
Definition: DMatDMatMapExpr.h:635
Header file for the Computation base class.
Header file for the ShiftLV functor.
ElementType * PointerType
Pointer return type.
Definition: DMatDMatMapExpr.h:194
ResultType_t< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:114
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
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:573
constexpr size_t columns(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of columns of the matrix.
Definition: Matrix.h:514
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatDMatMapExpr.h:628
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes....
Definition: DenseMatrix.h:81
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes....
Definition: Forward.h:145
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
Generic wrapper for the elementwise left-shift operation.
Definition: ShiftLV.h:75
PointerType pointer
Pointer return type.
Definition: DMatDMatMapExpr.h:201
Header file for the Bitxor functor.
ElementType & ReferenceType
Reference return type.
Definition: DMatDMatMapExpr.h:195
BLAZE_DEVICE_CALLABLE bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:377
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
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatMapExpr.h:507
ReturnType_t< MT2 > RN2
Return type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:118
BLAZE_DEVICE_CALLABLE ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatDMatMapExpr.h:232
OP Operation
Data type of the custom unary operation.
Definition: DMatDMatMapExpr.h:176
ReturnType operator *() const
Direct access to the element at the current iterator position.
Definition: DMatDMatMapExpr.h:301
ConstIterator_t< MT2 > RightIteratorType
ConstIterator type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:209
Iterator over the elements of the dense matrix map expression.
Definition: DMatDMatMapExpr.h:188
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
Header file for the If class template.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:563
CompositeType_t< MT1 > CT1
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:119
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
#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.
Header file for all SIMD functionality.
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatMapExpr.h:311
Header file for the IsAligned type trait.
ConstIterator_t< MT1 > LeftIteratorType
ConstIterator type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:206
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatDMatMapExpr.h:192
If_t< RequiresEvaluation_v< MT2 >, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:182
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: DMatDMatMapExpr.h:450
RightIteratorType right_
Iterator to the current right-hand side element.
Definition: DMatDMatMapExpr.h:432
Constraints on the storage order of matrix types.
If_t< IsExpression_v< MT2 >, const MT2, const MT2 & > RightOperand
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:173
Header file for the exception macros of the math module.
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatDMatMapExpr.h:412
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
decltype(auto) atan2(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the multi-valued inverse tangent of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1307
Constraint on the data type.
Header file for the EnableIf class template.
Header file for the IsPadded type trait.
Generic wrapper for the bitwise XOR ('^') operator.
Definition: Bitxor.h:66
ReturnType_t< MT1 > RN1
Return type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:117
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatDMatMapExpr.h:489
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.The OppositeType_t alias declaration provi...
Definition: Aliases.h:270
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DMatDMatMapExpr.h:445
OP op_
The custom unary operation.
Definition: DMatDMatMapExpr.h:433
Header file for the IsSIMDEnabled type trait.
ElementType ValueType
Type of the underlying elements.
Definition: DMatDMatMapExpr.h:193
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.
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatDMatMapExpr.h:474
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.The CompositeType_t alias declaration pro...
Definition: Aliases.h:90
MapTrait_t< RT1, RT2, OP > ResultType
Result type for expression template evaluations.
Definition: DMatDMatMapExpr.h:158
Generic wrapper for the pow() function.
Definition: Pow.h:63
Generic wrapper for the max() function.
Definition: Max.h:80
BLAZE_DEVICE_CALLABLE bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:344
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatDMatMapExpr.h:424
Header file for the Or functor.
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
LeftIteratorType left_
Iterator to the current left-hand side element.
Definition: DMatDMatMapExpr.h:431
Generic wrapper for the bitwise AND ('&') operator.
Definition: Bitand.h:80
Expression object for the dense matrix-dense matrix map() function.The DMatDMatMapExpr class represen...
Definition: DMatDMatMapExpr.h:107
BLAZE_DEVICE_CALLABLE bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:333
ValueType value_type
Type of the underlying elements.
Definition: DMatDMatMapExpr.h:200
BLAZE_DEVICE_CALLABLE const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatDMatMapExpr.h:269
Header file for the Atan2 functor.
ElementType_t< MT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:115
RightOperand rhs_
Right-hand side dense matrix of the map expression.
Definition: DMatDMatMapExpr.h:636
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
Header file for all forward declarations for expression class templates.
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatDMatMapExpr.h:400
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the map expression.
Definition: DMatDMatMapExpr.h:131
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
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.
#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
CompositeType_t< MT2 > CT2
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:120
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents ...
Definition: IntegralConstant.h:110
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatDMatMapExpr.h:543
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
constexpr size_t rows(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of rows of the matrix.
Definition: Matrix.h:498
Header file for the Bitand functor.
#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
BLAZE_DEVICE_CALLABLE const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatDMatMapExpr.h:291
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatDMatMapExpr.h:533
Operation op_
The custom unary operation.
Definition: DMatDMatMapExpr.h:637
Generic wrapper for the min() function.
Definition: Min.h:80
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.The ConstIterator_t alias declaration pro...
Definition: Aliases.h:110
Header file for the Min functor.
If_t< IsExpression_v< MT1 >, const MT1, const MT1 & > LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:170
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatDMatMapExpr.h:160
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatDMatMapExpr.h:159
ReferenceType reference
Reference return type.
Definition: DMatDMatMapExpr.h:202
ElementType_t< MT2 > ET2
Element type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:116
Macro for CUDA compatibility.
BLAZE_DEVICE_CALLABLE bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:322
Header file for the MatMatMapExpr base 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
ConstIterator(LeftIteratorType left, RightIteratorType right, OP op)
Constructor for the ConstIterator class.
Definition: DMatDMatMapExpr.h:219
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
Generic wrapper for the logical OR operator.
Definition: Or.h:58
Generic wrapper for the hypot() function.
Definition: Hypot.h:78
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatDMatMapExpr.h:595
BLAZE_DEVICE_CALLABLE DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatDMatMapExpr.h:388
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatDMatMapExpr.h:522
Header file for the IntegralConstant class template.
Header file for the map trait.
Generic wrapper for the logical AND operator.
Definition: And.h:58
Header file for the Max functor.
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition: HostDevice.h:94
BLAZE_DEVICE_CALLABLE ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatDMatMapExpr.h:245
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,...
Definition: Assert.h:101
If_t< RequiresEvaluation_v< MT1 >, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:179
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatDMatMapExpr.h:608
Header file for the IsExpression type trait class.
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatDMatMapExpr.h:196
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