|
Tiny Vector Matrix library using Expression Templates | Sourceforge Project Page |
#include <tvmet/NumericTraits.h>
double> > NumericTraits.h "tvmet/NumericTraits.h"
long> > NumericTraits.h "tvmet/NumericTraits.h"
int> > NumericTraits.h "tvmet/NumericTraits.h"
> NumericTraits.h "tvmet/NumericTraits.h"
int> NumericTraits.h "tvmet/NumericTraits.h"
NumericTraits.h "tvmet/NumericTraits.h".
"tvmet/NumericTraits.h"
For each type we have to specialize this traits.
Traits specialized for unsigned char.
conj
for an unsigned type! An unary minus operator applied to unsigned type will result unsigned. Therefore this function is missing here.Traits specialized for short unsigned int.
conj
for an unsigned type! An unary minus operator applied to unsigned type will result unsigned. Therefore this function is missing here.Traits specialized for unsigned int.
conj
for an unsigned type! An unary minus operator applied to unsigned type will result unsigned. Therefore this function is missing here.Traits specialized for unsigned long.
conj
for an unsigned type! An unary minus operator applied to unsigned type will result unsigned. Therefore this function is missing here.Traits specialized for double.
Traits specialized for long double.
Traits specialized for std::complex<int>.
Traits specialized for std::complex<unsigned int>.
conj
for an unsigned type! An unary minus operator applied to unsigned type will result unsigned. Therefore this function is missing here.Traits specialized for std::complex<unsigned long>.
conj
for an unsigned type! An unary minus operator applied to unsigned type will result unsigned. Therefore this function is missing here.Traits specialized for std::complex<double>.
Public Types | |
typedef T | base_type |
typedef T | value_type |
typedef value_type | sum_type |
typedef value_type | diff_type |
typedef value_type | float_type |
typedef value_type | signed_type |
typedef NumericTraits< value_type > | traits_type |
typedef const value_type & | argument_type |
Static Public Member Functions | |
static base_type | real (argument_type x) |
static base_type | imag (argument_type x) |
static value_type | conj (argument_type x) |
static base_type | abs (argument_type x) |
static value_type | sqrt (argument_type x) |
static base_type | norm_1 (argument_type x) |
static base_type | norm_2 (argument_type x) |
static base_type | norm_inf (argument_type x) |
static bool | equals (argument_type lhs, argument_type rhs) |
typedef T tvmet::NumericTraits< T >::base_type |
typedef T tvmet::NumericTraits< T >::value_type |
typedef value_type tvmet::NumericTraits< T >::sum_type |
typedef value_type tvmet::NumericTraits< T >::diff_type |
typedef value_type tvmet::NumericTraits< T >::float_type |
typedef value_type tvmet::NumericTraits< T >::signed_type |
typedef NumericTraits<value_type> tvmet::NumericTraits< T >::traits_type |
typedef const value_type& tvmet::NumericTraits< T >::argument_type |
static base_type tvmet::NumericTraits< T >::real | ( | argument_type | x | ) | [inline, static] |
Referenced by tvmet::tvmet::NumericTraits< std::complex< unsigned long > >::equals(), tvmet::tvmet::NumericTraits< std::complex< long > >::equals(), tvmet::tvmet::NumericTraits< std::complex< unsigned int > >::equals(), tvmet::tvmet::NumericTraits< std::complex< int > >::equals(), tvmet::tvmet::NumericTraits< std::complex< long double > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< double > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< float > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< unsigned long > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< long > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< unsigned int > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< int > >::norm_1(), tvmet::NumericTraits< T >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< long double > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< double > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< float > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< unsigned long > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< long > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< unsigned int > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< int > >::norm_inf(), and tvmet::NumericTraits< T >::norm_inf().
static base_type tvmet::NumericTraits< T >::imag | ( | argument_type | x | ) | [inline, static] |
Referenced by tvmet::tvmet::NumericTraits< std::complex< long double > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< double > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< float > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< unsigned long > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< long > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< unsigned int > >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< int > >::norm_1(), tvmet::NumericTraits< T >::norm_1(), tvmet::tvmet::NumericTraits< std::complex< long double > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< double > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< float > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< unsigned long > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< long > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< unsigned int > >::norm_inf(), tvmet::tvmet::NumericTraits< std::complex< int > >::norm_inf(), and tvmet::NumericTraits< T >::norm_inf().
static value_type tvmet::NumericTraits< T >::conj | ( | argument_type | x | ) | [inline, static] |
static base_type tvmet::NumericTraits< T >::abs | ( | argument_type | x | ) | [inline, static] |
static value_type tvmet::NumericTraits< T >::sqrt | ( | argument_type | x | ) | [inline, static] |
static base_type tvmet::NumericTraits< T >::norm_1 | ( | argument_type | x | ) | [inline, static] |
References tvmet::abs(), tvmet::NumericTraits< T >::imag(), and tvmet::NumericTraits< T >::real().
static base_type tvmet::NumericTraits< T >::norm_2 | ( | argument_type | x | ) | [inline, static] |
References tvmet::abs().
static base_type tvmet::NumericTraits< T >::norm_inf | ( | argument_type | x | ) | [inline, static] |
References tvmet::NumericTraits< T >::imag(), tvmet::max(), and tvmet::NumericTraits< T >::real().
Referenced by tvmet::tvmet::NumericTraits< std::complex< long double > >::equals(), tvmet::tvmet::NumericTraits< std::complex< double > >::equals(), tvmet::tvmet::NumericTraits< std::complex< float > >::equals(), tvmet::tvmet::NumericTraits< long double >::equals(), tvmet::tvmet::NumericTraits< double >::equals(), tvmet::tvmet::NumericTraits< float >::equals(), and tvmet::NumericTraits< T >::equals().
static bool tvmet::NumericTraits< T >::equals | ( | argument_type | lhs, | |
argument_type | rhs | |||
) | [inline, static] |
References tvmet::max(), tvmet::min(), and tvmet::NumericTraits< T >::norm_inf().
Author: |