Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Concepts | Functions
uni20::linalg::least_squares_detail Namespace Reference

Concepts

concept  PackedGelss
 
concept  PrecisionArgs
 
concept  Operands
 

Functions

template<class Matrix , Real R>
bool check_diagonal (Matrix const &a, R const &scale, R const &tolerance, LeastSquaresInfo &info)
 
template<class Matrix >
bool finite (Matrix const &a)
 
template<class Matrix >
void givens (Matrix &a, Matrix &b, Precision p)
 
template<LapackScalar S>
std::size_t native_gelss (DenseMatrix< S > &a, DenseMatrix< S > &b, std::vector< make_real_t< S > > &singular, make_real_t< S > const &cutoff, std::size_t &rank)
 
template<class Matrix >
void provider_qr (Matrix &a, Matrix &b, Precision p)
 
template<class S , class... P>
consteval auto qr_acceptance ()
 
template<Real R>
void require_options (LeastSquaresOptions< R > const &options)
 
template<Real R>
void require_svd_options (SvdLeastSquaresOptions< R > const &options)
 
template<class S >
bool residual_norms (DenseMatrix< S > const &av, DenseMatrix< S > const &bv, DenseMatrix< S > const &solution, std::vector< make_real_t< S > > &norms, Precision p)
 
template<class X , class A , class B , class Factor >
KernelAttempt run (X &x, A &a, B &b, std::span< make_real_t< typename A::value_type > > residuals, LeastSquaresInfo &info, LeastSquaresOptions< make_real_t< typename A::value_type > > const &options, Precision p, Factor factor)
 
template<class S >
Precision working_precision ()
 
template<class S >
Precision working_precision (Precision p)
 

Function Documentation

◆ check_diagonal()

template<class Matrix , Real R>
bool uni20::linalg::least_squares_detail::check_diagonal ( Matrix const &  a,
R const &  scale,
R const &  tolerance,
LeastSquaresInfo &  info 
)

◆ finite()

template<class Matrix >
bool uni20::linalg::least_squares_detail::finite ( Matrix const &  a)

◆ givens()

template<class Matrix >
void uni20::linalg::least_squares_detail::givens ( Matrix &  a,
Matrix &  b,
Precision  p 
)

◆ native_gelss()

template<LapackScalar S>
std::size_t uni20::linalg::least_squares_detail::native_gelss ( DenseMatrix< S > &  a,
DenseMatrix< S > &  b,
std::vector< make_real_t< S > > &  singular,
make_real_t< S > const &  cutoff,
std::size_t &  rank 
)

◆ provider_qr()

template<class Matrix >
void uni20::linalg::least_squares_detail::provider_qr ( Matrix &  a,
Matrix &  b,
Precision  p 
)

◆ qr_acceptance()

template<class S , class... P>
consteval auto uni20::linalg::least_squares_detail::qr_acceptance ( )

◆ require_options()

template<Real R>
void uni20::linalg::least_squares_detail::require_options ( LeastSquaresOptions< R > const &  options)

◆ require_svd_options()

template<Real R>
void uni20::linalg::least_squares_detail::require_svd_options ( SvdLeastSquaresOptions< R > const &  options)

◆ residual_norms()

template<class S >
bool uni20::linalg::least_squares_detail::residual_norms ( DenseMatrix< S > const &  av,
DenseMatrix< S > const &  bv,
DenseMatrix< S > const &  solution,
std::vector< make_real_t< S > > &  norms,
Precision  p 
)

◆ run()

template<class X , class A , class B , class Factor >
KernelAttempt uni20::linalg::least_squares_detail::run ( X &  x,
A &  a,
B &  b,
std::span< make_real_t< typename A::value_type > >  residuals,
LeastSquaresInfo &  info,
LeastSquaresOptions< make_real_t< typename A::value_type > > const &  options,
Precision  p,
Factor  factor 
)

◆ working_precision() [1/2]

template<class S >
Precision uni20::linalg::least_squares_detail::working_precision ( )

◆ working_precision() [2/2]

template<class S >
Precision uni20::linalg::least_squares_detail::working_precision ( Precision  p)