MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::detail::normest1_impl Namespace Reference

Classes

struct  real_of
struct  real_of< std::complex< R > >

Functions

template<typename T>
real_of< T >::type mag (const T &x)
template<typename T>
T sign_of (const T &y)
 sign(y): y / |y|, and 1 for y = 0.
template<typename T>
real_of< T >::type column_one_norm (const mat::dense2D< T > &Y, std::size_t j)
template<typename T>
bool parallel (const mat::dense2D< T > &S, std::size_t a, const mat::dense2D< T > &S2, std::size_t b)
 Whether columns a of S and b of S2 are parallel: for real +-1 vectors, equal up to sign, which |s_a .

Function Documentation

◆ column_one_norm()

template<typename T>
real_of< T >::type mtl::detail::normest1_impl::column_one_norm ( const mat::dense2D< T > & Y,
std::size_t j )

◆ mag()

template<typename T>
real_of< T >::type mtl::detail::normest1_impl::mag ( const T & x)

◆ parallel()

template<typename T>
bool mtl::detail::normest1_impl::parallel ( const mat::dense2D< T > & S,
std::size_t a,
const mat::dense2D< T > & S2,
std::size_t b )

Whether columns a of S and b of S2 are parallel: for real +-1 vectors, equal up to sign, which |s_a .

s_b| = n tests. Used on +-1 columns only (the start block, and S for a real T), so for a complex T the real parts are the columns.

◆ sign_of()

template<typename T>
T mtl::detail::normest1_impl::sign_of ( const T & y)

sign(y): y / |y|, and 1 for y = 0.