Dune Core Modules (2.5.0)
Class implementing different number representations and helper functions. More...
Modules | |
FloatCmp | |
Classes | |
class | Dune::bigunsignedint< k > |
Portable very large unsigned integers. More... | |
class | Dune::GMPField< precision > |
Number class for high precision floating point number using the GMP library mpf_class implementation. More... | |
Functions | |
Dune::bigunsignedint< k >::bigunsignedint () | |
Construct uninitialized. | |
template<typename Signed > | |
Dune::bigunsignedint< k >::bigunsignedint (Signed x, typename std::enable_if< std::is_integral< Signed >::value &&std::is_signed< Signed >::value >::type *=0) | |
Construct from signed int. | |
Dune::bigunsignedint< k >::bigunsignedint (std::uintmax_t x) | |
Construct from unsigned int. | |
std::uint_least32_t | Dune::bigunsignedint< k >::touint () const |
export to other types | |
double | Dune::bigunsignedint< k >::todouble () const |
Convert to a double. More... | |
void | Dune::bigunsignedint< k >::print (std::ostream &s) const |
Print number in hex notation. | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator+ (const bigunsignedint< k > &x) const |
add | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator- (const bigunsignedint< k > &x) const |
subtract | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator* (const bigunsignedint< k > &x) const |
multiply | |
bigunsignedint< k > & | Dune::bigunsignedint< k >::operator++ () |
prefix increment | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator/ (const bigunsignedint< k > &x) const |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator% (const bigunsignedint< k > &x) const |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator& (const bigunsignedint< k > &x) const |
bitwise and | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator^ (const bigunsignedint< k > &x) const |
bitwise exor | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator| (const bigunsignedint< k > &x) const |
bitwise or | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator~ () const |
bitwise complement | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator<< (int i) const |
left shift | |
bigunsignedint< k > | Dune::bigunsignedint< k >::operator>> (int i) const |
right shift | |
bool | Dune::bigunsignedint< k >::operator!= (const bigunsignedint< k > &x) const |
not equal | |
bool | Dune::bigunsignedint< k >::operator== (const bigunsignedint< k > &x) const |
equal | |
bool | Dune::bigunsignedint< k >::operator< (const bigunsignedint< k > &x) const |
less than | |
bool | Dune::bigunsignedint< k >::operator<= (const bigunsignedint< k > &x) const |
less than or equal | |
bool | Dune::bigunsignedint< k >::operator> (const bigunsignedint< k > &x) const |
greater than | |
bool | Dune::bigunsignedint< k >::operator>= (const bigunsignedint< k > &x) const |
greater or equal | |
Detailed Description
Class implementing different number representations and helper functions.
Function Documentation
◆ operator%()
template<int k>
|
inline |
modulo
- Warning
- This function is very slow and its usage should be prevented if possible
◆ operator/()
template<int k>
|
inline |
divide
- Warning
- This function is very slow and its usage should be prevented if possible
References DUNE_THROW.
◆ todouble()
template<int k>
|
inline |
Convert to a double.
- Warning
- Subject to rounding errors!
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)