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

Register a standard floating-point type as a real scalar. More...

#include <scalar_traits.hpp>

Public Types

using scalar_type = T
 Normalized scalar representation.
 
using real_type = T
 Associated real component type.
 

Static Public Attributes

static constexpr bool is_real = true
 Whether the registered scalar belongs to the real category.
 
static constexpr bool is_complex = false
 Whether the registered scalar belongs to the complex category.
 

Detailed Description

template<std::floating_point T>
struct linalg::scalar_traits< T >

Register a standard floating-point type as a real scalar.

Definition at line 41 of file scalar_traits.hpp.

Member Typedef Documentation

◆ real_type

template<std::floating_point T>
using linalg::scalar_traits< T >::real_type = T

Associated real component type.

Definition at line 45 of file scalar_traits.hpp.

◆ scalar_type

template<std::floating_point T>
using linalg::scalar_traits< T >::scalar_type = T

Normalized scalar representation.

Definition at line 43 of file scalar_traits.hpp.

Member Data Documentation

◆ is_complex

template<std::floating_point T>
constexpr bool linalg::scalar_traits< T >::is_complex = false
staticconstexpr

Whether the registered scalar belongs to the complex category.

Definition at line 50 of file scalar_traits.hpp.

◆ is_real

template<std::floating_point T>
constexpr bool linalg::scalar_traits< T >::is_real = true
staticconstexpr

Whether the registered scalar belongs to the real category.

Definition at line 48 of file scalar_traits.hpp.


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