![]() |
Reference documentation for deal.II version GIT 574c7c8486 2023-09-22 10:20:02+00:00
|
#include <deal.II/base/numbers.h>
Public Types | |
using | real_type = number |
using | double_type = double |
Static Public Member Functions | |
static constexpr const number & | conjugate (const number &x) |
static constexpr real_type | abs_square (const number &x) |
static real_type | abs (const number &x) |
Static Public Attributes | |
static constexpr bool | is_complex = false |
A structure that, together with its partial specializations NumberTraits<std::complex<number> >, provides traits and member functions that make it possible to write templates that work on both real number types and complex number types. This template is mostly used to implement linear algebra classes such as vectors and matrices that work for both real and complex numbers.
using numbers::NumberTraits< number >::real_type = number |
using numbers::NumberTraits< number >::double_type = double |
|
staticconstexpr |
|
staticconstexpr |
Return the square of the absolute value of the given number. Since the general template is chosen for types not equal to std::complex, this function simply returns the square of the given number.
|
static |
|
staticconstexpr |