|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <type_traits>#include <complex>#include <cmath>Classes | |
| struct | mtl::magnitude_trait< T > |
| Primary template: magnitude type is the type itself. More... | |
| struct | mtl::magnitude_trait< std::complex< T > > |
| Specialization for std::complex. More... | |
Namespaces | |
| namespace | mtl |
| namespace | mtl::detail |
| mat*vec multiply into pre-allocated y: y = A * x. | |
| namespace | mtl::detail::magnitude_adl |
Concepts | |
| concept | mtl::detail::magnitude_adl::has_abs |
| abs(a) as generic code calls it: std::abs for the built-in types, and the number type's own abs found by ADL (#838: it was unqualified with no using std::abs, so Magnitude<double> held only through C's ::abs(int)). | |
| concept | mtl::Magnitude |
| Concept: a type has a well-defined magnitude. | |
Typedefs | |
| template<typename T> | |
| using | mtl::magnitude_t = typename magnitude_trait<std::remove_cv_t<T>>::type |
| Alias for the magnitude type of T, cv-qualifiers ignored (#838): magnitude_t<const std::complex<double>> is double. | |