Sacado::ScalarParameterLibrary Class Reference

Specialization of Sacado::ParameterLibraryBase for scalar parameters. More...

#include <Sacado_ScalarParameterLibrary.hpp>

Inheritance diagram for Sacado::ScalarParameterLibrary:

Inheritance graph
[legend]
Collaboration diagram for Sacado::ScalarParameterLibrary:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ScalarParameterLibrary ()
 Default constructor.
virtual ~ScalarParameterLibrary ()
 Destructor.
void setRealValueForAllTypes (const std::string &name, double value)
 Set paramter value using a real number.
template<class ValueType>
void setValueAsConstant (const std::string &name, const ValueType &value)
 Set parameter to value value.
template<class ValueType>
void setValueAsIndependent (const std::string &name, const ValueType &value)
 Set parameter to value value.
template<class ValueType>
const ValueTypegetValue (const std::string &name) const
 Get parameter value.
void fillVector (const Teuchos::Array< std::string > &names, ScalarParameterVector &pv)
 Fill a vector with the supplied parameter names.

Static Public Member Functions

static ScalarParameterLibrarygetInstance ()
 Returns a parameter library (singleton object).

Detailed Description

Specialization of Sacado::ParameterLibraryBase for scalar parameters.


Member Function Documentation

void Sacado::ScalarParameterLibrary::fillVector ( const Teuchos::Array< std::string > &  names,
ScalarParameterVector pv 
)

Fill a vector with the supplied parameter names.

baseValue will be computed from each individual parameter

template<class ValueType>
void Sacado::ScalarParameterLibrary::setValueAsConstant ( const std::string &  name,
const ValueType value 
)

Set parameter to value value.

Treat the set parameter as a constant for derivative computations.

template<class ValueType>
void Sacado::ScalarParameterLibrary::setValueAsIndependent ( const std::string &  name,
const ValueType value 
)

Set parameter to value value.

Treat the set parameter as an independent for derivative computations.


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:54:54 2009 for Sacado by doxygen 1.4.7