NumericAL
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
numerical::field Concept Reference

A floating-point field: float, double, long double, or std::complex of one. The factorisations and the solvers require it, so that an integer matrix is refused at compile time, by name, where it would otherwise be factorised in integer division. More...

#include <concepts.hpp>

Concept definition

template<typename T>
concept numerical::field = std::floating_point<T> || (detail::is_complex_number<T> && std::floating_point<typename T::value_type>)
A floating-point field: float, double, long double, or std::complex of one. The factorisations and th...
Definition concepts.hpp:28

Detailed Description

A floating-point field: float, double, long double, or std::complex of one. The factorisations and the solvers require it, so that an integer matrix is refused at compile time, by name, where it would otherwise be factorised in integer division.

What each carries in its own precision: LU, Cholesky and the unpivoted QR compute in T itself, a long double to its own precision. The SVD takes any field and computes in double: its singular values are double, and a long double matrix's factors hold a double's precision. The eigendecompositions, the Schur form, the pivoted QR and LDLá´´ take double_field alone; the symmetric and Hermitian eigensolvers and the generalized forms are of double and std::complex<double> by their signatures.

Definition at line 28 of file concepts.hpp.