library of assembled shared sources |
http://lass.cocamware.com |
#include <filtered_float.h>
Public Types | |
typedef FilteredFloat< T > | TSelf |
typedef util::CallTraits< T > ::TValue | TValue |
typedef util::CallTraits< T > ::TParam | TParam |
typedef util::CallTraits< T > ::TReference | TReference |
typedef util::CallTraits< T > ::TConstReference | TConstReference |
typedef num::NumTraits< T > | TNumTraits |
Public Member Functions | |
FilteredFloat () | |
FilteredFloat (TParam t) | |
FilteredFloat (TParam t, TParam e) | |
FilteredFloat (const TSelf &other) | |
TParam | value () const |
TParam | error () const |
TSelf | operator- () const |
TSelf | operator+ () const |
TSelf & | operator+= (const TSelf &other) |
TSelf & | operator-= (const TSelf &other) |
TSelf & | operator*= (const TSelf &other) |
TSelf & | operator/= (const TSelf &other) |
void | swap (TSelf &other) |
Private Member Functions | |
TSelf | split (TParam a, int s) |
Private Attributes | |
volatile TValue | t_ |
the value | |
volatile TValue | e_ |
the expected precision, based on forward error analysis |
For more information we refer to the work of Shewchuck, Fortune, Van Wijck on forward error analysis.
Definition at line 72 of file filtered_float.h.
typedef FilteredFloat< T > lass::num::FilteredFloat< T >::TSelf |
Definition at line 75 of file filtered_float.h.
typedef util::CallTraits<T>::TValue lass::num::FilteredFloat< T >::TValue |
Definition at line 76 of file filtered_float.h.
typedef util::CallTraits<T>::TParam lass::num::FilteredFloat< T >::TParam |
Definition at line 77 of file filtered_float.h.
typedef util::CallTraits<T>::TReference lass::num::FilteredFloat< T >::TReference |
Definition at line 78 of file filtered_float.h.
typedef util::CallTraits<T>::TConstReference lass::num::FilteredFloat< T >::TConstReference |
Definition at line 79 of file filtered_float.h.
typedef num::NumTraits< T > lass::num::FilteredFloat< T >::TNumTraits |
Definition at line 80 of file filtered_float.h.
lass::num::FilteredFloat< T >::FilteredFloat | ( | ) | [inline] |
Definition at line 82 of file filtered_float.h.
lass::num::FilteredFloat< T >::FilteredFloat | ( | TParam | t | ) | [inline] |
Definition at line 86 of file filtered_float.h.
lass::num::FilteredFloat< T >::FilteredFloat | ( | TParam | t, | |
TParam | e | |||
) | [inline, explicit] |
Definition at line 91 of file filtered_float.h.
lass::num::FilteredFloat< T >::FilteredFloat | ( | const TSelf & | other | ) | [inline] |
Definition at line 97 of file filtered_float.h.
TParam lass::num::FilteredFloat< T >::value | ( | ) | const [inline] |
Definition at line 102 of file filtered_float.h.
References lass::num::FilteredFloat< T >::t_.
Referenced by lass::num::abs(), lass::num::acos(), lass::num::asin(), lass::num::atan(), lass::num::atan2(), lass::num::ceil(), lass::num::cos(), lass::num::div(), lass::num::exp(), lass::num::floor(), lass::num::fractional(), lass::num::inv(), lass::num::log(), lass::num::mod(), lass::num::FilteredFloat< T >::operator/=(), lass::num::operator==(), lass::num::pow(), lass::num::round(), lass::num::sin(), lass::num::sqrt(), and lass::num::tan().
TParam lass::num::FilteredFloat< T >::error | ( | ) | const [inline] |
Definition at line 107 of file filtered_float.h.
References lass::num::FilteredFloat< T >::e_.
Referenced by lass::num::operator==().
TSelf lass::num::FilteredFloat< T >::operator- | ( | ) | const [inline] |
Definition at line 112 of file filtered_float.h.
References lass::num::FilteredFloat< T >::e_, and lass::num::FilteredFloat< T >::t_.
TSelf lass::num::FilteredFloat< T >::operator+ | ( | ) | const [inline] |
Definition at line 117 of file filtered_float.h.
TSelf& lass::num::FilteredFloat< T >::operator+= | ( | const TSelf & | other | ) | [inline] |
Definition at line 122 of file filtered_float.h.
References lass::num::abs(), lass::num::FilteredFloat< T >::e_, LASS_ENFORCE, lass::stde::T, and lass::num::FilteredFloat< T >::t_.
TSelf& lass::num::FilteredFloat< T >::operator-= | ( | const TSelf & | other | ) | [inline] |
Definition at line 134 of file filtered_float.h.
References lass::num::abs(), lass::num::FilteredFloat< T >::e_, LASS_ENFORCE, lass::stde::T, and lass::num::FilteredFloat< T >::t_.
TSelf& lass::num::FilteredFloat< T >::operator*= | ( | const TSelf & | other | ) | [inline] |
Definition at line 146 of file filtered_float.h.
References lass::num::abs(), lass::num::FilteredFloat< T >::e_, LASS_ENFORCE, lass::num::NumTraits< C >::mantisseSize, lass::num::FilteredFloat< T >::split(), lass::stde::T, and lass::num::FilteredFloat< T >::t_.
Referenced by lass::num::FilteredFloat< T >::operator/=().
TSelf& lass::num::FilteredFloat< T >::operator/= | ( | const TSelf & | other | ) | [inline] |
Definition at line 160 of file filtered_float.h.
References lass::num::abs(), lass::num::FilteredFloat< T >::e_, LASS_ENFORCE, lass::num::FilteredFloat< T >::operator*=(), lass::stde::T, lass::num::FilteredFloat< T >::t_, and lass::num::FilteredFloat< T >::value().
void lass::num::FilteredFloat< T >::swap | ( | TSelf & | other | ) | [inline] |
Definition at line 169 of file filtered_float.h.
References lass::num::FilteredFloat< T >::e_, and lass::num::FilteredFloat< T >::t_.
Referenced by std::swap().
TSelf lass::num::FilteredFloat< T >::split | ( | TParam | a, | |
int | s | |||
) | [inline, private] |
Definition at line 179 of file filtered_float.h.
References lass::stde::T.
Referenced by lass::num::FilteredFloat< T >::operator*=().
volatile TValue lass::num::FilteredFloat< T >::t_ [private] |
the value
Definition at line 176 of file filtered_float.h.
Referenced by lass::num::FilteredFloat< T >::operator*=(), lass::num::FilteredFloat< T >::operator+=(), lass::num::FilteredFloat< T >::operator-(), lass::num::FilteredFloat< T >::operator-=(), lass::num::FilteredFloat< T >::operator/=(), lass::num::FilteredFloat< T >::swap(), and lass::num::FilteredFloat< T >::value().
volatile TValue lass::num::FilteredFloat< T >::e_ [private] |
the expected precision, based on forward error analysis
Definition at line 176 of file filtered_float.h.
Referenced by lass::num::FilteredFloat< T >::error(), lass::num::FilteredFloat< T >::operator*=(), lass::num::FilteredFloat< T >::operator+=(), lass::num::FilteredFloat< T >::operator-(), lass::num::FilteredFloat< T >::operator-=(), lass::num::FilteredFloat< T >::operator/=(), and lass::num::FilteredFloat< T >::swap().
Generated on Mon Nov 10 14:22:10 2008 for Library of Assembled Shared Sources by 1.5.7.1 |