35 #ifndef _BLAZE_MATH_EXPRESSIONS_DMATDMATSCHUREXPR_H_ 36 #define _BLAZE_MATH_EXPRESSIONS_DMATDMATSCHUREXPR_H_ 103 template<
typename MT1
107 :
public SchurExpr< DenseMatrix< DMatDMatSchurExpr<MT1,MT2,SO>, SO > >
129 static constexpr
bool returnExpr = ( !IsTemporary_v<RN1> && !IsTemporary_v<RN2> );
144 ( RequiresEvaluation_v<MT1> || RequiresEvaluation_v<MT2> || !
returnExpr );
147 template<
typename MT >
149 static constexpr
bool UseAssign_v =
useAssign;
161 template<
typename MT >
162 static constexpr
bool UseSMPAssign_v =
163 ( ( !MT1::smpAssignable || !MT2::smpAssignable ) &&
useAssign );
304 return (*
left_) * (*right_);
313 inline auto load() const noexcept {
442 ( MT1::simdEnabled && MT2::simdEnabled && HasSIMDMult_v<ET1,ET2> );
445 static constexpr
bool smpAssignable = ( MT1::smpAssignable && MT2::smpAssignable );
491 if( i >=
lhs_.rows() ) {
494 if( j >=
lhs_.columns() ) {
513 return lhs_.load(i,j) *
rhs_.load(i,j);
544 inline size_t rows() const noexcept {
555 return lhs_.columns();
585 template<
typename T >
586 inline bool canAlias(
const T* alias )
const noexcept {
587 return ( IsExpression_v<MT1> && ( RequiresEvaluation_v<MT1> ?
lhs_.isAliased( alias ) :
lhs_.canAlias( alias ) ) ) ||
588 ( IsExpression_v<MT2> && ( RequiresEvaluation_v<MT2> ?
rhs_.isAliased( alias ) :
rhs_.canAlias( alias ) ) );
598 template<
typename T >
599 inline bool isAliased(
const T* alias )
const noexcept {
600 return (
lhs_.isAliased( alias ) ||
rhs_.isAliased( alias ) );
610 return lhs_.isAligned() &&
rhs_.isAligned();
620 return lhs_.canSMPAssign() ||
rhs_.canSMPAssign() ||
621 (
rows() *
columns() >= SMP_DMATDMATSCHUR_THRESHOLD );
646 template<
typename MT
656 if( !IsOperation_v<MT1> &&
isSame( ~lhs, rhs.lhs_ ) ) {
657 schurAssign( ~lhs, rhs.rhs_ );
662 assign( ~lhs, A % B );
682 template<
typename MT
692 if( !IsOperation_v<MT1> &&
isSame( ~lhs, rhs.lhs_ ) ) {
693 schurAssign( ~lhs, rhs.rhs_ );
695 else if( !IsOperation_v<MT2> &&
isSame( ~lhs, rhs.rhs_ ) ) {
696 schurAssign( ~lhs, rhs.lhs_ );
698 else if( !RequiresEvaluation_v<MT2> ) {
699 assign ( ~lhs, rhs.rhs_ );
700 schurAssign( ~lhs, rhs.lhs_ );
703 assign ( ~lhs, rhs.lhs_ );
704 schurAssign( ~lhs, rhs.rhs_ );
724 template<
typename MT
726 friend inline auto assign( SparseMatrix<MT,SO2>& lhs,
const DMatDMatSchurExpr& rhs )
727 -> EnableIf_t< UseAssign_v<MT> >
731 using TmpType = If_t< SO == SO2, ResultType, OppositeType >;
743 const TmpType tmp(
serial( rhs ) );
763 template<
typename MT
765 friend inline auto addAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatSchurExpr& rhs )
766 -> EnableIf_t< UseAssign_v<MT> >
778 addAssign( ~lhs, tmp );
801 template<
typename MT
803 friend inline auto subAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatSchurExpr& rhs )
804 -> EnableIf_t< UseAssign_v<MT> >
816 subAssign( ~lhs, tmp );
840 template<
typename MT
842 friend inline auto schurAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatSchurExpr& rhs )
843 -> EnableIf_t< UseAssign_v<MT> && !IsCommutative_v<MT1,MT2> >
855 schurAssign( ~lhs, tmp );
875 template<
typename MT
877 friend inline auto schurAssign( DenseMatrix<MT,SO2>& lhs,
const DMatDMatSchurExpr& rhs )
878 -> EnableIf_t< UseAssign_v<MT> && IsCommutative_v<MT1,MT2> >
885 if( !RequiresEvaluation_v<MT2> ) {
886 schurAssign( ~lhs, rhs.rhs_ );
887 schurAssign( ~lhs, rhs.lhs_ );
890 schurAssign( ~lhs, rhs.lhs_ );
891 schurAssign( ~lhs, rhs.rhs_ );
924 template<
typename MT
927 -> EnableIf_t< UseSMPAssign_v<MT> && !IsCommutative_v<MT1,MT2> >
934 if( !IsOperation_v<MT1> &&
isSame( ~lhs, rhs.lhs_ ) ) {
961 template<
typename MT
964 -> EnableIf_t< UseSMPAssign_v<MT> && IsCommutative_v<MT1,MT2> >
971 if( !IsOperation_v<MT1> &&
isSame( ~lhs, rhs.lhs_ ) ) {
974 else if( !IsOperation_v<MT2> &&
isSame( ~lhs, rhs.rhs_ ) ) {
977 else if( !RequiresEvaluation_v<MT2> ) {
1003 template<
typename MT
1006 -> EnableIf_t< UseSMPAssign_v<MT> >
1010 using TmpType = If_t< SO == SO2, ResultType, OppositeType >;
1022 const TmpType tmp( rhs );
1042 template<
typename MT
1045 -> EnableIf_t< UseAssign_v<MT> >
1081 template<
typename MT
1084 -> EnableIf_t< UseSMPAssign_v<MT> >
1120 template<
typename MT
1123 -> EnableIf_t< UseSMPAssign_v<MT> && !IsCommutative_v<MT1,MT2> >
1155 template<
typename MT
1158 -> EnableIf_t< UseSMPAssign_v<MT> && IsCommutative_v<MT1,MT2> >
1165 if( !RequiresEvaluation_v<MT2> ) {
1221 template<
typename MT1
1224 ,
DisableIf_t< ( IsUniLower_v<MT1> && IsUniUpper_v<MT2> ) ||
1225 ( IsUniUpper_v<MT1> && IsUniLower_v<MT2> ) ||
1226 ( IsStrictlyLower_v<MT1> && IsUpper_v<MT2> ) ||
1227 ( IsStrictlyUpper_v<MT1> && IsLower_v<MT2> ) ||
1228 ( IsLower_v<MT1> && IsStrictlyUpper_v<MT2> ) ||
1229 ( IsUpper_v<MT1> && IsStrictlyLower_v<MT2> ) >* =
nullptr >
1230 inline const DMatDMatSchurExpr<MT1,MT2,SO>
1231 dmatdmatschur(
const DenseMatrix<MT1,SO>& lhs,
const DenseMatrix<MT2,SO>& rhs )
1238 return DMatDMatSchurExpr<MT1,MT2,SO>( ~lhs, ~rhs );
1257 template<
typename MT1
1260 ,
EnableIf_t< ( IsUniLower_v<MT1> && IsUniUpper_v<MT2> ) ||
1261 ( IsUniUpper_v<MT1> && IsUniLower_v<MT2> ) >* =
nullptr >
1262 inline decltype(
auto)
1263 dmatdmatschur( const DenseMatrix<MT1,SO>& lhs, const DenseMatrix<MT2,SO>& rhs )
1272 using ReturnType =
const SchurTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
1277 return ReturnType( (~lhs).
rows() );
1296 template<
typename MT1
1299 ,
EnableIf_t< ( IsStrictlyLower_v<MT1> && IsUpper_v<MT2> ) ||
1300 ( IsStrictlyUpper_v<MT1> && IsLower_v<MT2> ) ||
1301 ( IsLower_v<MT1> && IsStrictlyUpper_v<MT2> ) ||
1302 ( IsUpper_v<MT1> && IsStrictlyLower_v<MT2> ) >* =
nullptr >
1303 inline decltype(
auto)
1304 dmatdmatschur( const DenseMatrix<MT1,SO>& lhs, const DenseMatrix<MT2,SO>& rhs )
1313 using ReturnType =
const SchurTrait_t< ResultType_t<MT1>, ResultType_t<MT2> >;
1318 return ReturnType( (~lhs).
rows(), (~lhs).
columns() );
1349 template<
typename MT1
1352 inline decltype(
auto)
1361 return dmatdmatschur( ~lhs, ~rhs );
1376 template<
typename MT1,
typename MT2,
bool SO >
1377 struct IsAligned< DMatDMatSchurExpr<MT1,MT2,SO> >
1378 :
public BoolConstant< IsAligned_v<MT1> && IsAligned_v<MT2> >
1394 template<
typename MT1,
typename MT2,
bool SO >
1395 struct IsPadded< DMatDMatSchurExpr<MT1,MT2,SO> >
1396 :
public BoolConstant< IsPadded_v<MT1> && IsPadded_v<MT2> >
Constraint on the data type.
ReturnType_t< MT1 > RN1
Return type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:114
CompositeType_t< MT1 > CT1
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:116
#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.
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition: DMatDMatSchurExpr.h:544
RightIteratorType right_
Iterator to the current right-hand side element.
Definition: DMatDMatSchurExpr.h:434
Header file for auxiliary alias declarations.
#define BLAZE_CONSTRAINT_MUST_BE_IDENTITY_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not an identity matrix type,...
Definition: Identity.h:60
Header file for the Schur product trait.
Header file for the IsUniUpper type trait.
ResultType_t< MT2 > RT2
Result type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:113
bool isSame(const Matrix< MT1, SO1 > &a, const Matrix< MT2, SO2 > &b) noexcept
Returns whether the two given matrices represent the same observable state.
Definition: Matrix.h:992
Header file for basic type definitions.
Header file for all forward declarations for sparse vectors and matrices.
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
ReturnType operator *() const
Direct access to the element at the current iterator position.
Definition: DMatDMatSchurExpr.h:303
BLAZE_DEVICE_CALLABLE DifferenceType operator-(const ConstIterator &rhs) const
Calculating the number of elements between two iterators.
Definition: DMatDMatSchurExpr.h:390
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 IsCommutative type trait.
Header file for the serial shim.
#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
friend const ConstIterator operator+(size_t inc, const ConstIterator &it)
Addition between an integral value and a ConstIterator.
Definition: DMatDMatSchurExpr.h:414
ReturnType operator()(size_t i, size_t j) const
2D-access to the matrix elements.
Definition: DMatDMatSchurExpr.h:475
#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
decltype(std::declval< RN1 >() *std::declval< RN2 >()) ExprReturnType
Expression return type for the subscript operator.
Definition: DMatDMatSchurExpr.h:132
Constraint on the data type.
BLAZE_DEVICE_CALLABLE bool operator==(const ConstIterator &rhs) const
Equality comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:324
BLAZE_DEVICE_CALLABLE const ConstIterator operator++(int)
Post-increment operator.
Definition: DMatDMatSchurExpr.h:271
Header file for the MAYBE_UNUSED function template.
Header file for the Computation base class.
static constexpr bool returnExpr
Compilation switch for the selection of the subscript operator return type.
Definition: DMatDMatSchurExpr.h:129
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
Header file for the IsUniLower type trait.
#define BLAZE_CONSTRAINT_MUST_FORM_VALID_SCHUREXPR(T1, T2)
Constraint on the data type.In case the given data types T1 and T2 do not form a valid Schur product,...
Definition: SchurExpr.h:103
constexpr size_t columns(const Matrix< MT, SO > &matrix) noexcept
Returns the current number of columns of the matrix.
Definition: Matrix.h:514
CompositeType_t< MT2 > CT2
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:117
Base class for dense matrices.The DenseMatrix class is a base class for all dense matrix classes....
Definition: DenseMatrix.h:81
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
ElementType_t< MT1 > ET1
Element type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:118
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition: DMatDMatSchurExpr.h:554
BLAZE_DEVICE_CALLABLE bool operator!=(const ConstIterator &rhs) const
Inequality comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:335
ReturnType at(size_t i, size_t j) const
Checked access to the matrix elements.
Definition: DMatDMatSchurExpr.h:490
TransposeType_t< ResultType > TransposeType
Transpose type for expression template evaluations.
Definition: DMatDMatSchurExpr.h:173
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
ptrdiff_t DifferenceType
Difference between two iterators.
Definition: DMatDMatSchurExpr.h:200
const If_t< returnExpr, ExprReturnType, ElementType > ReturnType
Return type for expression template evaluations.
Definition: DMatDMatSchurExpr.h:177
Header file for the DisableIf class template.
Header file for the IsTemporary type trait class.
IteratorCategory iterator_category
The iterator category.
Definition: DMatDMatSchurExpr.h:203
Header file for the IsStrictlyUpper type trait.
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.
ElementType * PointerType
Pointer return type.
Definition: DMatDMatSchurExpr.h:198
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition: DMatDMatSchurExpr.h:441
#define BLAZE_CONSTRAINT_MUST_BE_ZERO_TYPE(T)
Constraint on the data type.In case the given data type T is not a zero vector or matrix type,...
Definition: Zero.h:61
#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.
ElementType_t< ResultType > ElementType
Resulting element type.
Definition: DMatDMatSchurExpr.h:174
PointerType pointer
Pointer return type.
Definition: DMatDMatSchurExpr.h:205
Header file for all SIMD functionality.
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition: DMatDMatSchurExpr.h:599
Header file for the IsOperation type trait class.
Header file for the IsLower type trait.
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition: MaybeUnused.h:81
ConstIterator begin(size_t i) const
Returns an iterator to the first non-zero element of row i.
Definition: DMatDMatSchurExpr.h:523
Header file for the IsAligned type trait.
ReferenceType reference
Reference return type.
Definition: DMatDMatSchurExpr.h:206
If_t< useAssign, const ResultType, const DMatDMatSchurExpr & > CompositeType
Data type for composite expression templates.
Definition: DMatDMatSchurExpr.h:180
Constraints on the storage order of matrix types.
ElementType & ReferenceType
Reference return type.
Definition: DMatDMatSchurExpr.h:199
Header file for the exception macros of the math module.
friend const ConstIterator operator+(const ConstIterator &it, size_t inc)
Addition between a ConstIterator and an integral value.
Definition: DMatDMatSchurExpr.h:402
Constraint on the data type.
ConstIterator_t< MT1 > LeftIteratorType
ConstIterator type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:210
Expression object for dense matrix-dense matrix Schur products.The DMatDMatSchurExpr class represents...
Definition: DMatDMatSchurExpr.h:106
ConstIterator_t< MT2 > RightIteratorType
ConstIterator type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:213
Header file for the EnableIf class template.
Header file for the IsStrictlyLower type trait.
Header file for the IsPadded type trait.
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition: DMatDMatSchurExpr.h:445
typename T::OppositeType OppositeType_t
Alias declaration for nested OppositeType type definitions.The OppositeType_t alias declaration provi...
Definition: Aliases.h:270
SchurTrait_t< RT1, RT2 > ResultType
Result type for expression template evaluations.
Definition: DMatDMatSchurExpr.h:171
ReturnType_t< MT2 > RN2
Return type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:115
Header file for the HasSIMDMult type trait.
Base class for all Schur product expression templates.The SchurExpr class serves as a tag for all exp...
Definition: SchurExpr.h:66
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.
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.The CompositeType_t alias declaration pro...
Definition: Aliases.h:90
static constexpr bool useAssign
Compilation switch for the serial evaluation strategy of the Schur product expression.
Definition: DMatDMatSchurExpr.h:143
static constexpr size_t SIMDSIZE
The number of elements packed within a single SIMD element.
Definition: DMatDMatSchurExpr.h:450
BLAZE_DEVICE_CALLABLE ConstIterator & operator++()
Pre-increment operator.
Definition: DMatDMatSchurExpr.h:259
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
std::random_access_iterator_tag IteratorCategory
The iterator category.
Definition: DMatDMatSchurExpr.h:196
Header file for the SchurExpr base class.
typename SchurTrait< T1, T2 >::Type SchurTrait_t
Auxiliary alias declaration for the SchurTrait class template.The SchurTrait_t alias declaration prov...
Definition: SchurTrait.h:163
ValueType value_type
Type of the underlying elements.
Definition: DMatDMatSchurExpr.h:204
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
LeftOperand lhs_
Left-hand side dense matrix of the Schur product expression.
Definition: DMatDMatSchurExpr.h:627
Header file for all forward declarations for expression class templates.
bool canSMPAssign() const noexcept
Returns whether the expression can be used in SMP assignments.
Definition: DMatDMatSchurExpr.h:619
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
ElementType_t< MT2 > ET2
Element type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:119
decltype(auto) serial(const DenseMatrix< MT, SO > &dm)
Forces the serial evaluation of the given dense matrix expression dm.
Definition: DMatSerialExpr.h:808
#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
ElementType ValueType
Type of the underlying elements.
Definition: DMatDMatSchurExpr.h:197
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant alias template represents ...
Definition: IntegralConstant.h:110
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
friend BLAZE_DEVICE_CALLABLE const ConstIterator operator-(const ConstIterator &it, size_t dec)
Subtraction between a ConstIterator and an integral value.
Definition: DMatDMatSchurExpr.h:426
#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 bool operator<=(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:368
BLAZE_DEVICE_CALLABLE bool operator>=(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:379
BLAZE_ALWAYS_INLINE auto load(size_t i, size_t j) const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatSchurExpr.h:508
If_t< IsExpression_v< MT2 >, const MT2, const MT2 & > RightOperand
Composite type of the right-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:186
typename T::ConstIterator ConstIterator_t
Alias declaration for nested ConstIterator type definitions.The ConstIterator_t alias declaration pro...
Definition: Aliases.h:110
Macro for CUDA compatibility.
BLAZE_DEVICE_CALLABLE const ConstIterator operator--(int)
Post-decrement operator.
Definition: DMatDMatSchurExpr.h:293
BLAZE_DEVICE_CALLABLE bool operator<(const ConstIterator &rhs) const
Less-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:346
LeftOperand leftOperand() const noexcept
Returns the left-hand side dense matrix operand.
Definition: DMatDMatSchurExpr.h:564
Iterator over the elements of the dense matrix.
Definition: DMatDMatSchurExpr.h:192
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
Base class for all compute expression templates.The Computation class serves as a tag for all computa...
Definition: Computation.h:66
ResultType_t< MT1 > RT1
Result type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:112
Header file for the IntegralConstant class template.
If_t< IsExpression_v< MT1 >, const MT1, const MT1 & > LeftOperand
Composite type of the left-hand side dense matrix expression.
Definition: DMatDMatSchurExpr.h:183
ConstIterator end(size_t i) const
Returns an iterator just past the last non-zero element of row i.
Definition: DMatDMatSchurExpr.h:534
auto load() const noexcept
Access to the SIMD elements of the matrix.
Definition: DMatDMatSchurExpr.h:313
OppositeType_t< ResultType > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition: DMatDMatSchurExpr.h:172
RightOperand rhs_
Right-hand side dense matrix of the Schur product expression.
Definition: DMatDMatSchurExpr.h:628
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition: HostDevice.h:94
Header file for the IsUpper type trait.
typename DisableIf< Condition, T >::Type DisableIf_t
Auxiliary type for the DisableIf class template.The DisableIf_t alias declaration provides a convenie...
Definition: DisableIf.h:138
BLAZE_DEVICE_CALLABLE ConstIterator & operator+=(size_t inc)
Addition assignment operator.
Definition: DMatDMatSchurExpr.h:234
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition: DMatDMatSchurExpr.h:586
BLAZE_DEVICE_CALLABLE ConstIterator & operator--()
Pre-decrement operator.
Definition: DMatDMatSchurExpr.h:281
BLAZE_DEVICE_CALLABLE ConstIterator(LeftIteratorType left, RightIteratorType right)
Constructor for the ConstIterator class.
Definition: DMatDMatSchurExpr.h:222
DMatDMatSchurExpr(const MT1 &lhs, const MT2 &rhs) noexcept
Constructor for the DMatDMatSchurExpr class.
Definition: DMatDMatSchurExpr.h:459
System settings for the inline keywords.
Header file for the thresholds for matrix/vector and matrix/matrix multiplications.
#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
BLAZE_DEVICE_CALLABLE ConstIterator & operator-=(size_t dec)
Subtraction assignment operator.
Definition: DMatDMatSchurExpr.h:247
Header file for the IsExpression type trait class.
Header file for the function trace functionality.
RightOperand rightOperand() const noexcept
Returns the right-hand side dense matrix operand.
Definition: DMatDMatSchurExpr.h:574
bool isAligned() const noexcept
Returns whether the operands of the expression are properly aligned in memory.
Definition: DMatDMatSchurExpr.h:609
LeftIteratorType left_
Iterator to the current left-hand side element.
Definition: DMatDMatSchurExpr.h:433
Constraint on the data type.
BLAZE_DEVICE_CALLABLE bool operator>(const ConstIterator &rhs) const
Greater-than comparison between two ConstIterator objects.
Definition: DMatDMatSchurExpr.h:357