Reference documentation for deal.II version 9.2.0
|
#include <deal.II/base/numbers.h>
Public Types | |
using | real_type = number |
Static Public Member Functions | |
static constexpr const number & | conjugate (const number &x) |
template<typename Dummy = number> | |
static constexpr std::enable_if< std::is_same< Dummy, number >::value &&is_cuda_compatible< Dummy >::value, real_type >::type | abs_square (const number &x) |
template<typename Dummy = number> | |
static constexpr std::enable_if< std::is_same< Dummy, number >::value &&!is_cuda_compatible< Dummy >::value, real_type >::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 |
|
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.
|
staticconstexpr |
|
static |
|
staticconstexpr |