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) imag(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the imaginary part of each single element of dm.
Definition: DMatMapExpr.h:1557
BLAZE_ALWAYS_INLINE void invert(complex< long double > &a) noexcept
In-place inversion of the given extended precision complex number.
Definition: Invert.h:281
BLAZE_ALWAYS_INLINE constexpr complex< long double > inv(const complex< long double > &a) noexcept
Inverting the given extended precision complex number.
Definition: Invert.h:149
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
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.