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 > >
140 template<
typename MT >
143 enum :
bool { value = useAssign };
156 template<
typename MT >
157 struct UseSMPAssign {
158 enum :
bool { value = ( !MT1::smpAssignable || !MT2::smpAssignable ) && useAssign };
165 struct UseSIMDEnabledFlag {
167 enum :
bool { value = OP::BLAZE_TEMPLATE simdEnabled<ET1,ET2>() };
181 using ReturnType = decltype( std::declval<OP>()( std::declval<RN1>(), std::declval<RN2>() ) );
319 return op_( *left_, *right_ );
328 inline auto load() const noexcept {
329 return op_.load( left_.load(), right_.load() );
340 return left_ == rhs.
left_;
351 return left_ != rhs.
left_;
362 return left_ < rhs.
left_;
373 return left_ > rhs.
left_;
384 return left_ <= rhs.
left_;
395 return left_ >= rhs.
left_;
406 return left_ - rhs.
left_;
457 enum :
bool { simdEnabled = MT1::simdEnabled && MT2::simdEnabled &&
461 enum :
bool { smpAssignable = MT1::smpAssignable && MT2::smpAssignable };
506 if( i >=
lhs_.rows() ) {
509 if( j >=
lhs_.columns() ) {
559 inline size_t rows() const noexcept {
570 return lhs_.columns();
610 template<
typename T >
611 inline bool canAlias(
const T* alias )
const noexcept {
623 template<
typename T >
624 inline bool isAliased(
const T* alias )
const noexcept {
625 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
635 return lhs_.isAligned() &&
rhs_.isAligned();
645 return lhs_.canSMPAssign() &&
rhs_.canSMPAssign();
670 template<
typename MT
690 assign( ~lhs,
map( A, B, rhs.
op_ ) );
709 template<
typename MT
728 const TmpType tmp(
serial( rhs ) );
748 template<
typename MT
768 addAssign( ~lhs,
map( A, B, rhs.
op_ ) );
791 template<
typename MT
811 subAssign( ~lhs,
map( A, B, rhs.
op_ ) );
834 template<
typename MT
854 schurAssign( ~lhs,
map( A, B, rhs.
op_ ) );
885 template<
typename MT
924 template<
typename MT
943 const TmpType tmp( rhs );
964 template<
typename MT
1008 template<
typename MT
1052 template<
typename MT
1129 template<
typename MT1
1133 inline decltype(
auto)
1166 template<
typename MT1
1170 inline decltype(
auto)
1175 return map( ~lhs, ~rhs,
Min() );
1198 template<
typename MT1
1202 inline decltype(
auto)
1207 return map( ~lhs, ~rhs,
Max() );
1230 template<
typename MT1
1234 inline decltype(
auto)
1262 template<
typename MT1
1266 inline decltype(
auto)
1271 return map( ~lhs, ~rhs,
Pow() );
1294 template<
typename MT1
1298 inline decltype(
auto)
1318 template<
typename MT1,
typename MT2,
typename OP,
bool SO >
1319 struct Size< DMatDMatMapExpr<MT1,MT2,OP,SO>, 0UL >
1320 :
public Maximum< Size<MT1,0UL>, Size<MT2,0UL> >
1323 template<
typename MT1,
typename MT2,
typename OP,
bool SO >
1324 struct Size< DMatDMatMapExpr<MT1,MT2,OP,SO>, 1UL >
1325 :
public Maximum< Size<MT1,1UL>, Size<MT2,1UL> >
1341 template<
typename MT1,
typename MT2,
typename OP,
bool SO >
1342 struct IsAligned< DMatDMatMapExpr<MT1,MT2,OP,SO> >
1343 :
public And< IsAligned<MT1>, IsAligned<MT2> >
1359 template<
typename MT1,
typename MT2,
typename OP,
bool SO >
1360 struct IsPadded< DMatDMatMapExpr<MT1,MT2,OP,SO> >
1361 :
public And< IsPadded<MT1>, IsPadded<MT2> >
1377 template<
typename MT1,
typename MT2,
bool SO >
1378 struct IsSymmetric< DMatDMatMapExpr<MT1,MT2,Min,SO> >
1379 :
public And< IsSymmetric<MT1>, IsSymmetric<MT2> >
1382 template<
typename MT1,
typename MT2,
bool SO >
1383 struct IsSymmetric< DMatDMatMapExpr<MT1,MT2,Max,SO> >
1384 :
public And< IsSymmetric<MT1>, IsSymmetric<MT2> >
1400 template<
typename MT1,
typename MT2,
bool SO >
1401 struct IsHermitian< DMatDMatMapExpr<MT1,MT2,Min,SO> >
1402 :
public And< IsHermitian<MT1>, IsHermitian<MT2> >
1405 template<
typename MT1,
typename MT2,
bool SO >
1406 struct IsHermitian< DMatDMatMapExpr<MT1,MT2,Max,SO> >
1407 :
public And< IsHermitian<MT1>, IsHermitian<MT2> >
1423 template<
typename MT1,
typename MT2,
bool SO >
1424 struct IsLower< DMatDMatMapExpr<MT1,MT2,Min,SO> >
1425 :
public And< IsLower<MT1>, IsLower<MT2> >
1428 template<
typename MT1,
typename MT2,
bool SO >
1429 struct IsLower< DMatDMatMapExpr<MT1,MT2,Max,SO> >
1430 :
public And< IsLower<MT1>, IsLower<MT2> >
1446 template<
typename MT1,
typename MT2,
bool SO >
1447 struct IsUniLower< DMatDMatMapExpr<MT1,MT2,Min,SO> >
1448 :
public And< IsUniLower<MT1>, IsUniLower<MT2> >
1451 template<
typename MT1,
typename MT2,
bool SO >
1452 struct IsUniLower< DMatDMatMapExpr<MT1,MT2,Max,SO> >
1453 :
public And< IsUniLower<MT1>, IsUniLower<MT2> >
1469 template<
typename MT1,
typename MT2,
bool SO >
1471 :
public And< IsStrictlyLower<MT1>, IsStrictlyLower<MT2> >
1474 template<
typename MT1,
typename MT2,
bool SO >
1476 :
public And< IsStrictlyLower<MT1>, IsStrictlyLower<MT2> >
1492 template<
typename MT1,
typename MT2,
bool SO >
1493 struct IsUpper< DMatDMatMapExpr<MT1,MT2,Min,SO> >
1494 :
public And< IsUpper<MT1>, IsUpper<MT2> >
1497 template<
typename MT1,
typename MT2,
bool SO >
1498 struct IsUpper< DMatDMatMapExpr<MT1,MT2,Max,SO> >
1499 :
public And< IsUpper<MT1>, IsUpper<MT2> >
1515 template<
typename MT1,
typename MT2,
bool SO >
1516 struct IsUniUpper< DMatDMatMapExpr<MT1,MT2,Min,SO> >
1517 :
public And< IsUniUpper<MT1>, IsUniUpper<MT2> >
1520 template<
typename MT1,
typename MT2,
bool SO >
1521 struct IsUniUpper< DMatDMatMapExpr<MT1,MT2,Max,SO> >
1522 :
public And< IsUniUpper<MT1>, IsUniUpper<MT2> >
1538 template<
typename MT1,
typename MT2,
bool SO >
1540 :
public And< IsStrictlyUpper<MT1>, IsStrictlyUpper<MT2> >
1543 template<
typename MT1,
typename MT2,
bool SO >
1545 :
public And< IsStrictlyUpper<MT1>, IsStrictlyUpper<MT2> >
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
Pointer difference type of the Blaze library.
IteratorCategory iterator_category
The iterator category.
Definition: DMatDMatMapExpr.h:216
Header file for auxiliary alias declarations.
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:476
ElementType_< ResultType > ElementType
Resulting element type.
Definition: DMatDMatMapExpr.h:178
Header file for the IsUniUpper type trait.
EnableIf_< IsDenseMatrix< MT1 > > smpSchurAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP Schur product assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:196
Header file for basic type definitions.
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
Operation operation() const
Returns a copy of the custom operation.
Definition: DMatDMatMapExpr.h:599
BinaryMapTrait_< RT1, RT2, OP > ResultType
Result type for expression template evaluations.
Definition: DMatDMatMapExpr.h:175
ReturnType_< MT2 > RN2
Return type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:118
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatDMatMapExpr.h:569
EnableIf_< IsDenseMatrix< MT1 > > smpSubAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP subtraction assignment of a matrix to dense matrix.
Definition: DenseMatrix.h:164
decltype(std::declval< OP >()(std::declval< RN1 >(), std::declval< RN2 >())) ReturnType
Return type for expression template evaluations.
Definition: DMatDMatMapExpr.h:181
Header file for the Hypot functor.
Header file for the serial shim.
Generic wrapper for the atan2() function.
Definition: Atan2.h:62
#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
TransposeType_< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatDMatMapExpr.h:177
#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
friend const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatDMatMapExpr.h:441
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:1267
typename BinaryMapTrait< T1, T2, OP >::Type BinaryMapTrait_
Auxiliary alias declaration for the BinaryMapTrait class template.The BinaryMapTrait_ alias declarati...
Definition: BinaryMapTrait.h:139
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatDMatMapExpr.h:634
Header file for the And class template.
const ElementType_< MT > min(const DenseMatrix< MT, SO > &dm)
Returns the smallest element of the dense matrix.
Definition: DenseMatrix.h:1903
Compile time value evaluation.The Maximum alias declaration selects the larger of the two given templ...
Definition: Maximum.h:73
Compile time check for lower triangular matrices.This type trait tests whether or not the given templ...
Definition: IsLower.h:87
LeftOperand lhs_
Left-hand side dense matrix of the map expression.
Definition: DMatDMatMapExpr.h:651
If_< RequiresEvaluation< MT2 >, const RT2, CT2 > RT
Type for the assignment of the right-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:199
ReturnType operator*() const
Direct access to the element at the current iterator position.
Definition: DMatDMatMapExpr.h:318
Header file for the Computation base class.
ElementType * PointerType
Pointer return type.
Definition: DMatDMatMapExpr.h:211
Compile time check for upper triangular matrices.This type trait tests whether or not the given templ...
Definition: IsUpper.h:87
bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:350
IfTrue_< useAssign, const ResultType, const DMatDMatMapExpr &> CompositeType
Data type for composite expression templates.
Definition: DMatDMatMapExpr.h:184
Header file for the RequiresEvaluation type trait.
ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatDMatMapExpr.h:262
CompositeType_< MT1 > CT1
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:119
Header file for the IsUniLower type trait.
typename T::ResultType ResultType_
Alias declaration for nested ResultType type definitions.The ResultType_ alias declaration provides a...
Definition: Aliases.h:343
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1950
EnableIf_< IsDenseMatrix< MT1 > > smpAddAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP addition assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:133
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:589
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatDMatMapExpr.h:644
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes...
Definition: DenseMatrix.h:80
Base class for sparse matrices.The SparseMatrix class is a base class for all sparse matrix classes...
Definition: Forward.h:129
BLAZE_CREATE_HAS_DATA_OR_FUNCTION_MEMBER_TYPE_TRAIT(HasSIMDEnabled, simdEnabled)
Definition of the HasSIMDEnabled type trait.
typename IfTrue< Condition, T1, T2 >::Type IfTrue_
Auxiliary alias declaration for the IfTrue class template.The IfTrue_ alias declaration provides a co...
Definition: If.h:109
PointerType pointer
Pointer return type.
Definition: DMatDMatMapExpr.h:218
typename T::ReturnType ReturnType_
Alias declaration for nested ReturnType type definitions.The ReturnType_ alias declaration provides a...
Definition: Aliases.h:363
ElementType & ReferenceType
Reference return type.
Definition: DMatDMatMapExpr.h:212
const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatDMatMapExpr.h:308
Compile time check for the alignment of data types.This type trait tests whether the given data type ...
Definition: IsAligned.h:87
Constraint on the data type.
Header file for the Maximum class template.
Compile time check to query the requirement to evaluate an expression.Via this type trait it is possi...
Definition: RequiresEvaluation.h:71
typename T::CompositeType CompositeType_
Alias declaration for nested CompositeType type definitions.The CompositeType_ alias declaration prov...
Definition: Aliases.h:83
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatMapExpr.h:523
Compile time check for upper unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniUpper.h:86
ConstIterator_< MT2 > RightIteratorType
ConstIterator type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:226
OP Operation
Data type of the custom unary operation.
Definition: DMatDMatMapExpr.h:193
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Iterator over the elements of the dense matrix map expression.
Definition: DMatDMatMapExpr.h:205
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 nested template disabiguation.
Header file for the If class template.
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:579
ElementType_< MT2 > ET2
Element type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:116
Compile time check for data types with padding.This type trait tests whether the given data type empl...
Definition: IsPadded.h:76
EnableIf_< IsDenseMatrix< MT1 > > smpAssign(Matrix< MT1, SO1 > &lhs, const Matrix< MT2, SO2 > &rhs)
Default implementation of the SMP assignment of a matrix to a dense matrix.
Definition: DenseMatrix.h:102
#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.
bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:394
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:3085
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Header file for all SIMD functionality.
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatMapExpr.h:328
Header file for the IsLower type trait.
ResultType_< MT1 > RT1
Result type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:113
Header file for the IsAligned type trait.
ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatDMatMapExpr.h:296
const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatDMatMapExpr.h:286
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatDMatMapExpr.h:209
RightIteratorType right_
Iterator to the current right-hand side element.
Definition: DMatDMatMapExpr.h:449
Constraints on the storage order of matrix types.
ConstIterator_< MT1 > LeftIteratorType
ConstIterator type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:223
Compile time check for symmetric matrices.This type trait tests whether or not the given template par...
Definition: IsSymmetric.h:85
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:429
Compile time check for strictly upper triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyUpper.h:86
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:1299
Constraint on the data type.
Header file for all forward declarations for expression class templates.
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
Header file for the IsPadded type trait.
Compile time check for lower unitriangular matrices.This type trait tests whether or not the given te...
Definition: IsUniLower.h:86
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatDMatMapExpr.h:505
OppositeType_< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatDMatMapExpr.h:176
OP op_
The custom unary operation.
Definition: DMatDMatMapExpr.h:450
Header file for the binary map trait.
ElementType ValueType
Type of the underlying elements.
Definition: DMatDMatMapExpr.h:210
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:490
Generic wrapper for the pow() function.
Definition: Pow.h:62
If_< IsExpression< MT1 >, const MT1, const MT1 &> LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:187
Generic wrapper for the max() function.
Definition: Max.h:62
If_< IsExpression< MT2 >, const MT2, const MT2 &> RightOperand
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:190
LeftIteratorType left_
Iterator to the current left-hand side element.
Definition: DMatDMatMapExpr.h:448
Expression object for the dense matrix-dense matrix map() function.The DMatDMatMapExpr class represen...
Definition: DMatDMatMapExpr.h:107
If_< RequiresEvaluation< MT1 >, const RT1, CT1 > LT
Type for the assignment of the left-hand side dense matrix operand.
Definition: DMatDMatMapExpr.h:196
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:154
bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:339
ValueType value_type
Type of the underlying elements.
Definition: DMatDMatMapExpr.h:217
Header file for the Atan2 functor.
RightOperand rhs_
Right-hand side dense matrix of the map expression.
Definition: DMatDMatMapExpr.h:652
SIMD characteristics of data types.The SIMDTrait class template provides the SIMD characteristics of ...
Definition: SIMDTrait.h:296
#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
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatDMatMapExpr.h:417
Compile time check for Hermitian matrices.This type trait tests whether or not the given template par...
Definition: IsHermitian.h:85
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:816
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
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatDMatMapExpr.h:559
typename EnableIf< Condition, T >::Type EnableIf_
Auxiliary alias declaration for the EnableIf class template.The EnableIf_ alias declaration provides ...
Definition: EnableIf.h:224
typename T::OppositeType OppositeType_
Alias declaration for nested OppositeType type definitions.The OppositeType_ alias declaration provid...
Definition: Aliases.h:263
#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
ElementType_< MT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:115
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatDMatMapExpr.h:549
Operation op_
The custom unary operation.
Definition: DMatDMatMapExpr.h:653
Generic wrapper for the min() function.
Definition: Min.h:62
Header file for the Min functor.
Compile time check for strictly lower triangular matrices.This type trait tests whether or not the gi...
Definition: IsStrictlyLower.h:86
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:3080
typename T::ConstIterator ConstIterator_
Alias declaration for nested ConstIterator type definitions.The ConstIterator_ alias declaration prov...
Definition: Aliases.h:103
ReferenceType reference
Reference return type.
Definition: DMatDMatMapExpr.h:219
bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:361
DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatDMatMapExpr.h:405
Header file for the MatMatMapExpr base class.
ConstIterator(LeftIteratorType left, RightIteratorType right, OP op)
Constructor for the ConstIterator class.
Definition: DMatDMatMapExpr.h:236
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
Compile time evaluation of the size of vectors and matrices.The Size type trait evaluates the size of...
Definition: Size.h:80
bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:372
Generic wrapper for the hypot() function.
Definition: Hypot.h:62
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatDMatMapExpr.h:611
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatDMatMapExpr.h:538
Compile time logical 'and' evaluation.The And alias declaration performs at compile time a logical 'a...
Definition: And.h:76
Header file for the Max functor.
ResultType_< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:114
CompositeType_< MT2 > CT2
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:120
ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatDMatMapExpr.h:249
typename T::TransposeType TransposeType_
Alias declaration for nested TransposeType type definitions.The TransposeType_ alias declaration prov...
Definition: Aliases.h:423
Header file for the IsUpper type trait.
Header file for the IsHermitian type trait.
ReturnType_< MT1 > RN1
Return type of the left-hand side dense matrix expression.
Definition: DMatDMatMapExpr.h:117
bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatMapExpr.h:383
System settings for the inline keywords.
Header file for the Size type trait.
#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
Compile time check whether the given type is an expression template.This type trait class tests wheth...
Definition: IsExpression.h:95
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatDMatMapExpr.h:624
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
decltype(auto) map(const DenseMatrix< MT1, SO > &lhs, const DenseMatrix< MT2, SO > &rhs, OP op)
Evaluates the given binary operation on each single element of the dense matrices lhs and rhs...
Definition: DMatDMatMapExpr.h:1134
ConstIterator & operator++()
Pre-increment operator.
Definition: DMatDMatMapExpr.h:274