Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Sacado::PCE::ScalarTraitsImp< PCEType > Struct Template Reference

Implementation for Teuchos::ScalarTraits for all PCE types. More...

#include <Sacado_PCE_ScalarTraitsImp.hpp>

Inheritance diagram for Sacado::PCE::ScalarTraitsImp< PCEType >:
Inheritance graph
[legend]

Public Types

typedef Sacado::ValueType< PCEType >::type ValueT
 
typedef Teuchos::ScalarTraits< ValueT >::magnitudeType magnitudeType
 
typedef ValueT innerProductType
 
typedef mpl::apply< PCEType, typenameTeuchos::ScalarTraits< ValueT >::halfPrecision >::type halfPrecision
 
typedef mpl::apply< PCEType, typenameTeuchos::ScalarTraits< ValueT >::doublePrecision >::type doublePrecision
 

Static Public Member Functions

static Teuchos::ScalarTraits< ValueT >::magnitudeType eps ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType sfmin ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType base ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType prec ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType t ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType rnd ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType emin ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType rmin ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType emax ()
 
static Teuchos::ScalarTraits< ValueT >::magnitudeType rmax ()
 
static magnitudeType magnitude (const PCEType &a)
 
static innerProductType innerProduct (const PCEType &a, const PCEType &b)
 
static ValueT zero ()
 
static ValueT one ()
 
static PCEType conjugate (const PCEType &x)
 
static PCEType real (const PCEType &x)
 
static PCEType imag (const PCEType &x)
 
static ValueT nan ()
 
static bool isnaninf (const PCEType &x)
 
static void seedrandom (unsigned int s)
 
static ValueT random ()
 
static std::string name ()
 
static PCEType squareroot (const PCEType &x)
 
static PCEType pow (const PCEType &x, const PCEType &y)
 
static PCEType log (const PCEType &x)
 
static PCEType log10 (const PCEType &x)
 
static bool is_complex_real (const ValueT &x)
 
static bool is_pce_real (const PCEType &x)
 

Static Public Attributes

static const bool isComplex = Teuchos::ScalarTraits<ValueT>::isComplex
 
static const bool isOrdinal = Teuchos::ScalarTraits<ValueT>::isOrdinal
 
static const bool isComparable
 
static const bool hasMachineParameters
 

Detailed Description

template<typename PCEType>
struct Sacado::PCE::ScalarTraitsImp< PCEType >

Implementation for Teuchos::ScalarTraits for all PCE types.

Definition at line 58 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Typedef Documentation

◆ ValueT

template<typename PCEType >
typedef Sacado::ValueType<PCEType>::type Sacado::PCE::ScalarTraitsImp< PCEType >::ValueT

Definition at line 59 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ magnitudeType

template<typename PCEType >
typedef Teuchos::ScalarTraits<ValueT>::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::magnitudeType

Definition at line 61 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ innerProductType

template<typename PCEType >
typedef ValueT Sacado::PCE::ScalarTraitsImp< PCEType >::innerProductType

Definition at line 63 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ halfPrecision

template<typename PCEType >
typedef mpl::apply<PCEType,typenameTeuchos::ScalarTraits<ValueT>::halfPrecision>::type Sacado::PCE::ScalarTraitsImp< PCEType >::halfPrecision

Definition at line 64 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ doublePrecision

template<typename PCEType >
typedef mpl::apply<PCEType,typenameTeuchos::ScalarTraits<ValueT>::doublePrecision>::type Sacado::PCE::ScalarTraitsImp< PCEType >::doublePrecision

Definition at line 65 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Function Documentation

◆ eps()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::eps ( )
inlinestatic

Definition at line 73 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ sfmin()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::sfmin ( )
inlinestatic

Definition at line 76 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ base()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::base ( )
inlinestatic

Definition at line 79 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ prec()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::prec ( )
inlinestatic

Definition at line 82 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ t()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::t ( )
inlinestatic

Definition at line 85 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ rnd()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::rnd ( )
inlinestatic

Definition at line 88 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ emin()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::emin ( )
inlinestatic

Definition at line 91 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ rmin()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::rmin ( )
inlinestatic

Definition at line 94 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ emax()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::emax ( )
inlinestatic

Definition at line 97 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ rmax()

template<typename PCEType >
static Teuchos::ScalarTraits< ValueT >::magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::rmax ( )
inlinestatic

Definition at line 100 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ magnitude()

template<typename PCEType >
static magnitudeType Sacado::PCE::ScalarTraitsImp< PCEType >::magnitude ( const PCEType a)
inlinestatic

Definition at line 103 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ innerProduct()

template<typename PCEType >
static innerProductType Sacado::PCE::ScalarTraitsImp< PCEType >::innerProduct ( const PCEType a,
const PCEType b 
)
inlinestatic

Definition at line 114 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ zero()

template<typename PCEType >
static ValueT Sacado::PCE::ScalarTraitsImp< PCEType >::zero ( )
inlinestatic

Definition at line 125 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ one()

template<typename PCEType >
static ValueT Sacado::PCE::ScalarTraitsImp< PCEType >::one ( )
inlinestatic

Definition at line 128 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ conjugate()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::conjugate ( const PCEType x)
inlinestatic

Definition at line 133 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ real()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::real ( const PCEType x)
inlinestatic

Definition at line 146 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ imag()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::imag ( const PCEType x)
inlinestatic

Definition at line 159 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ nan()

template<typename PCEType >
static ValueT Sacado::PCE::ScalarTraitsImp< PCEType >::nan ( )
inlinestatic

Definition at line 168 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ isnaninf()

template<typename PCEType >
static bool Sacado::PCE::ScalarTraitsImp< PCEType >::isnaninf ( const PCEType x)
inlinestatic

Definition at line 171 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ seedrandom()

template<typename PCEType >
static void Sacado::PCE::ScalarTraitsImp< PCEType >::seedrandom ( unsigned int  s)
inlinestatic

Definition at line 177 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ random()

template<typename PCEType >
static ValueT Sacado::PCE::ScalarTraitsImp< PCEType >::random ( )
inlinestatic

Definition at line 180 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ name()

template<typename PCEType >
static std::string Sacado::PCE::ScalarTraitsImp< PCEType >::name ( )
inlinestatic

Definition at line 183 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ squareroot()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::squareroot ( const PCEType x)
inlinestatic

Definition at line 186 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ pow()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::pow ( const PCEType x,
const PCEType y 
)
inlinestatic

Definition at line 194 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ log()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::log ( const PCEType x)
inlinestatic

Definition at line 197 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ log10()

template<typename PCEType >
static PCEType Sacado::PCE::ScalarTraitsImp< PCEType >::log10 ( const PCEType x)
inlinestatic

Definition at line 200 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ is_complex_real()

template<typename PCEType >
static bool Sacado::PCE::ScalarTraitsImp< PCEType >::is_complex_real ( const ValueT x)
inlinestatic

Definition at line 205 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ is_pce_real()

template<typename PCEType >
static bool Sacado::PCE::ScalarTraitsImp< PCEType >::is_pce_real ( const PCEType x)
inlinestatic

Definition at line 211 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Data Documentation

◆ isComplex

template<typename PCEType >
const bool Sacado::PCE::ScalarTraitsImp< PCEType >::isComplex = Teuchos::ScalarTraits<ValueT>::isComplex
static

Definition at line 67 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ isOrdinal

template<typename PCEType >
const bool Sacado::PCE::ScalarTraitsImp< PCEType >::isOrdinal = Teuchos::ScalarTraits<ValueT>::isOrdinal
static

Definition at line 68 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ isComparable

template<typename PCEType >
const bool Sacado::PCE::ScalarTraitsImp< PCEType >::isComparable
static
Initial value:
=
Teuchos::ScalarTraits<ValueT>::isComparable

Definition at line 69 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ hasMachineParameters

template<typename PCEType >
const bool Sacado::PCE::ScalarTraitsImp< PCEType >::hasMachineParameters
static
Initial value:
=
Teuchos::ScalarTraits<ValueT>::hasMachineParameters

Definition at line 71 of file Sacado_PCE_ScalarTraitsImp.hpp.


The documentation for this struct was generated from the following file: