35#ifndef _BLAZE_MATH_SHIMS_INVERT_H_
36#define _BLAZE_MATH_SHIMS_INVERT_H_
75template<
typename T, EnableIf_t< IsScalar_v<T> >* =
nullptr >
106 const float iabs( 1.0F /
abs );
107 return complex<float>( iabs*
real(a), -iabs*
imag(a) );
130 const double iabs( 1.0 /
abs );
131 return complex<double>( iabs*
real(a), -iabs*
imag(a) );
154 const long double iabs( 1.0L /
abs );
155 return complex<long double>( iabs*
real(a), -iabs*
imag(a) );
Header file for run time assertion macros.
Header file for the complex data type.
Header file for the EnableIf class template.
Header file for the If class template.
Header file for the IsBuiltin type trait.
Header file for the IsIntegral type trait.
Header file for the IsScalar type trait.
Header file for the UnderlyingBuiltin type trait.
decltype(auto) real(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the real part of each single element of dm.
Definition DMatMapExpr.h:1529
decltype(auto) abs(const DenseMatrix< MT, SO > &dm)
Applies the abs() function to each single element of the dense matrix dm.
Definition DMatMapExpr.h:1296
decltype(auto) inv(const DenseMatrix< MT, SO > &dm)
Calculation of the inverse of the given dense matrix.
Definition DMatInvExpr.h:405
decltype(auto) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition DMatMapExpr.h:1557
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition HermitianProxy.h:693
typename UnderlyingBuiltin< T >::Type UnderlyingBuiltin_t
Auxiliary alias declaration for the UnderlyingBuiltin type trait.
Definition UnderlyingBuiltin.h:117
decltype(auto) pow2(const Matrix< MT, SO > &m)
Computes the square for each single element of the matrix m.
Definition Matrix.h:686
#define BLAZE_USER_ASSERT(expr, msg)
Run time assertion macro for user checks.
Definition Assert.h:117
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition Inline.h:85
constexpr bool IsBuiltin_v
Auxiliary variable template for the IsBuiltin type trait.
Definition IsBuiltin.h:95
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 pow2 shim.
System settings for the inline keywords.