35#ifndef _BLAZE_MATH_EXPRESSIONS_MATSCALARDIVEXPR_H_
36#define _BLAZE_MATH_EXPRESSIONS_MATSCALARDIVEXPR_H_
72template<
typename MT >
103 ( IsInvertible_v<ST> ||
104 IsInvertible_v< RightOperand_t< MatrixType_t<MT> > > ) >* =
nullptr >
105inline decltype(
auto) operator*( const
MatScalarDivExpr<MT>& mat, ST scalar )
109 return (*mat).leftOperand() * ( scalar / (*mat).rightOperand() );
130 , EnableIf_t< IsScalar_v<ST> &&
131 ( IsInvertible_v<ST> ||
132 IsInvertible_v< RightOperand_t< MatrixType_t<MT> > > ) >* =
nullptr >
133inline decltype(
auto) operator*( ST scalar, const MatScalarDivExpr<MT>& mat )
137 return (*mat).leftOperand() * ( scalar / (*mat).rightOperand() );
158 , EnableIf_t< IsScalar_v<ST> >* =
nullptr >
159inline decltype(
auto)
operator/(
const MatScalarDivExpr<MT>& mat, ST scalar )
165 return (*mat).leftOperand() / ( (*mat).rightOperand() * scalar );
191template<
typename MT >
192inline decltype(
auto)
trans(
const MatScalarDivExpr<MT>& matrix )
196 return trans( (*matrix).leftOperand() ) / (*matrix).rightOperand();
214template<
typename MT >
215inline decltype(
auto)
conj(
const MatScalarDivExpr<MT>& matrix )
219 return conj( (*matrix).leftOperand() ) / (*matrix).rightOperand();
Header file for auxiliary alias declarations.
Header file for run time assertion macros.
Header file for the EnableIf class template.
Header file for the function trace functionality.
Header file for the IsInvertible type trait.
Header file for the IsScalar type trait.
Header file for the DivExpr base class.
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) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:766
#define BLAZE_USER_ASSERT(expr, msg)
Run time assertion macro for user checks.
Definition: Assert.h:117
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.
Definition: EnableIf.h:138
#define BLAZE_FUNCTION_TRACE
Function trace macro.
Definition: FunctionTrace.h:94
Header file for the exception macros of the math module.
Base class for all division expression templates.
Definition: DivExpr.h:69
Base class for all matrix/scalar division expression templates.
Definition: MatScalarDivExpr.h:75