Reference documentation for deal.II version 9.0.0
|
#include <deal.II/base/numbers.h>
Public Types | |
typedef number | real_type |
Static Public Member Functions | |
static const number & | conjugate (const number &x) |
static real_type | abs_square (const number &x) |
static real_type | abs (const number &x) |
Static Public Attributes | |
static const 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.
typedef number numbers::NumberTraits< number >::real_type |
|
static |
|
static |
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 |
|
static |