35#ifndef _BLAZE_MATH_EXPRESSIONS_DMATINVEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_DMATINVEXPR_H_
78 :
public MatInvExpr< DenseMatrix< DMatInvExpr<MT,SO>, SO > >
133 inline size_t rows() const noexcept {
134 return dm_.columns();
164 template<
typename T >
165 inline bool canAlias(
const T* alias )
const noexcept {
166 return dm_.isAliased( alias );
176 template<
typename T >
177 inline bool isAliased(
const T* alias )
const noexcept {
178 return dm_.isAliased( alias );
199 template<
typename MT2
209 assign( *lhs, rhs.
dm_ );
229 template<
typename MT2
247 const TmpType tmp(
serial( rhs ) );
265 template<
typename MT2
267 friend inline void addAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatInvExpr& rhs )
275 addAssign( *lhs, tmp );
296 template<
typename MT2
298 friend inline void subAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatInvExpr& rhs )
306 subAssign( *lhs, tmp );
327 template<
typename MT2
329 friend inline void schurAssign( DenseMatrix<MT2,SO2>& lhs,
const DMatInvExpr& rhs )
337 schurAssign( *lhs, tmp );
414 return ReturnType( *dm );
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::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.
Definition Aliases.h:110
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 function trace functionality.
Header file for the If class template.
Header file for the invert shim.
Header file for the IsExpression type trait class.
Expression object for dense matrix inversions.
Definition DMatInvExpr.h:80
DMatInvExpr(const MT &dm) noexcept
Constructor for the DMatInvExpr class.
Definition DMatInvExpr.h:121
size_t rows() const noexcept
Returns the current number of rows of the matrix.
Definition DMatInvExpr.h:133
const ResultType CompositeType
Data type for composite expression templates.
Definition DMatInvExpr.h:102
static constexpr bool smpAssignable
Compilation switch for the expression template assignment strategy.
Definition DMatInvExpr.h:113
CompositeType_t< MT > CT
Composite type of the dense matrix expression.
Definition DMatInvExpr.h:84
ReturnType_t< MT > ReturnType
Return type for expression template evaluations.
Definition DMatInvExpr.h:99
TransposeType_t< MT > TransposeType
Transpose type for expression template evaluations.
Definition DMatInvExpr.h:97
OppositeType_t< MT > OppositeType
Result type with opposite storage order for expression template evaluations.
Definition DMatInvExpr.h:96
MatInvExpr< DenseMatrix< This, SO > > BaseType
Base type of this DMatInvExpr instance.
Definition DMatInvExpr.h:93
If_t< IsExpression_v< MT >, const MT, const MT & > Operand
Composite data type of the dense matrix expression.
Definition DMatInvExpr.h:105
DMatInvExpr< MT, SO > This
Type of this DMatInvExpr instance.
Definition DMatInvExpr.h:90
bool canAlias(const T *alias) const noexcept
Returns whether the expression can alias with the given address alias.
Definition DMatInvExpr.h:165
ResultType_t< MT > ResultType
Result type for expression template evaluations.
Definition DMatInvExpr.h:95
size_t columns() const noexcept
Returns the current number of columns of the matrix.
Definition DMatInvExpr.h:143
bool isAliased(const T *alias) const noexcept
Returns whether the expression is aliased with the given address alias.
Definition DMatInvExpr.h:177
static constexpr bool simdEnabled
Compilation switch for the expression template evaluation strategy.
Definition DMatInvExpr.h:110
ElementType_t< MT > ElementType
Resulting element type.
Definition DMatInvExpr.h:98
Operand operand() const noexcept
Returns the dense matrix operand.
Definition DMatInvExpr.h:153
Operand dm_
Dense matrix of the inversion expression.
Definition DMatInvExpr.h:184
ResultType_t< MT > RT
Result type of the dense matrix expression.
Definition DMatInvExpr.h:83
Base class for dense matrices.
Definition DenseMatrix.h:82
Base class for sparse matrices.
Definition SparseMatrix.h:77
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 MatInvExpr base class.
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) inv(const DenseMatrix< MT, SO > &dm)
Calculation of the inverse of the given dense matrix.
Definition DMatInvExpr.h:405
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition HermitianProxy.h:693
#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
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:1424
bool isSquare(const Matrix< MT, SO > &matrix) noexcept
Checks if the given matrix is a square matrix.
Definition Matrix.h:1383
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.
Definition Assert.h:101
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.
Definition Exception.h:235
#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
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.
Base class for all compute expression templates.
Definition Computation.h:68
Base class for all matrix inversion expression templates.
Definition MatInvExpr.h:72
Header file for basic type definitions.