akreon-linalg
Fixed-size linear algebra and numerical methods in C++26.
Loading...
Searching...
No Matches
linalg::scalar_traits< T > Struct Template Reference

Customization point for scalar metadata. More...

Detailed Description

template<typename T>
struct linalg::scalar_traits< T >

Customization point for scalar metadata.

A specialization registers a scalar representation by exposing scalar_type, real_type, is_real, and is_complex. The primary template is intentionally undefined, preventing arbitrary arithmetic types from silently entering the Akreon Linalg's mathematical type system.

scalar_type is the normalized scalar representation. real_type is its underlying real component type, which is the scalar itself for a real type and T for std::complex<T>.

Template Parameters
TUnqualified scalar representation being described.

Definition at line 37 of file scalar_traits.hpp.


The documentation for this struct was generated from the following file: