DACE 2.0 API Manual
Differential Algebra Core Engine
|
Data Structures | |
class | AlgebraicMatrix |
class | AlgebraicVector |
class | compiledDA |
class | DA |
class | DACEException |
class | DAFormatter |
struct | DASimpleFormat |
class | DASimpleFormatter |
class | Interval |
class | Monomial |
class | PromotionTrait |
class | PromotionTrait< T, T > |
class | storedDA |
Typedefs | |
typedef AlgebraicMatrix< DA > | matrixDA |
Short for AlgebraicMatrix<DA> More... | |
typedef AlgebraicMatrix< double > | matrixdb |
Short for AlgebraicMatrix<double> More... | |
typedef AlgebraicVector< DA > | vectorDA |
Shorthand notation for AlgebraicVector<DA>. More... | |
typedef AlgebraicVector< double > | vectordb |
Shorthand notation for AlgebraicVector<double>. More... | |
Functions | |
template<> | |
std::ostream & | operator<< (std::ostream &out, const AlgebraicMatrix< DA > &obj) |
DA specialization of output stream operator. More... | |
template<> | |
std::istream & | operator>> (std::istream &in, AlgebraicMatrix< DA > &obj) |
DA specialization of input stream operator. More... | |
template<> | |
std::vector< std::vector< double > > | linear (const AlgebraicVector< DA > &obj) |
template<> | |
AlgebraicVector< DA > | trim (const AlgebraicVector< DA > &obj, unsigned int min, unsigned int max) |
template<> | |
AlgebraicVector< DA > | deriv (const AlgebraicVector< DA > &obj, const unsigned int p) |
template<> | |
AlgebraicVector< DA > | integ (const AlgebraicVector< DA > &obj, const unsigned int p) |
template<> | |
compiledDA | compile (const AlgebraicVector< DA > &obj) |
template<> | |
AlgebraicVector< DA > | plug (const AlgebraicVector< DA > &obj, const unsigned int var, const double val) |
DA | operator+ (const DA &da1, const DA &da2) |
DA | operator+ (const DA &da, const double c) |
DA | operator+ (const double c, const DA &da) |
DA | operator- (const DA &da1, const DA &da2) |
DA | operator- (const DA &da, const double c) |
DA | operator- (const double c, const DA &da) |
DA | operator* (const DA &da1, const DA &da2) |
DA | operator* (const DA &da, const double c) |
DA | operator* (const double c, const DA &da) |
DA | operator/ (const DA &da1, const DA &da2) |
DA | operator/ (const DA &da, const double c) |
DA | operator/ (const double c, const DA &da) |
std::ostream & | operator<< (std::ostream &out, const DA &da) |
std::istream & | operator>> (std::istream &in, DA &da) |
int | isnan (const DA &da) |
int | isinf (const DA &da) |
double | cons (const DA &da) |
AlgebraicVector< double > | linear (const DA &da) |
AlgebraicVector< DA > | gradient (const DA &da) |
DA | divide (const DA &da, const unsigned int var, const unsigned int p) |
DA | deriv (const DA &da, const unsigned int i) |
DA | deriv (const DA &da, const std::vector< unsigned int > ind) |
DA | integ (const DA &da, const unsigned int i) |
DA | integ (const DA &da, const std::vector< unsigned int > ind) |
DA | trim (const DA &da, const unsigned int min, const unsigned int max) |
DA | trunc (const DA &da) |
DA | round (const DA &da) |
DA | mod (const DA &da, double p) |
DA | pow (const DA &da, int p) |
DA | pow (const DA &da, double p) |
DA | root (const DA &da, int p) |
DA | minv (const DA &da) |
DA | sqr (const DA &da) |
DA | sqrt (const DA &da) |
DA | isrt (const DA &da) |
DA | cbrt (const DA &da) |
DA | icrt (const DA &da) |
DA | hypot (const DA &da1, const DA &da2) |
DA | exp (const DA &da) |
DA | log (const DA &da) |
DA | logb (const DA &da, const double b) |
DA | log10 (const DA &da) |
DA | log2 (const DA &da) |
DA | sin (const DA &da) |
DA | cos (const DA &da) |
DA | tan (const DA &da) |
DA | asin (const DA &da) |
DA | acos (const DA &da) |
DA | atan (const DA &da) |
DA | atan2 (const DA &da1, const DA &da2) |
DA | sinh (const DA &da) |
DA | cosh (const DA &da) |
DA | tanh (const DA &da) |
DA | asinh (const DA &da) |
DA | acosh (const DA &da) |
DA | atanh (const DA &da) |
DA | erf (const DA &da) |
DA | erfc (const DA &da) |
DA | jn (const int n, const DA &da) |
DA | yn (const int n, const DA &da) |
DA | BesselJFunction (const int n, const DA &da) |
DA | BesselYFunction (const int n, const DA &da) |
DA | BesselIFunction (const int n, const DA &da, const bool scaled) |
DA | BesselKFunction (const int n, const DA &da, const bool scaled) |
DA | tgamma (const DA &da) |
DA | lgamma (const DA &da) |
DA | GammaFunction (const DA &da) |
DA | LogGammaFunction (const DA &da) |
DA | PsiFunction (const unsigned int n, const DA &da) |
unsigned int | size (const DA &da) |
double | abs (const DA &da) |
double | norm (const DA &da, unsigned int type) |
std::vector< double > | orderNorm (const DA &da, const unsigned int var, const unsigned int type) |
std::vector< double > | estimNorm (const DA &da, const unsigned int var, const unsigned int type, const unsigned int nc) |
std::vector< double > | estimNorm (const DA &da, std::vector< double > &err, const unsigned int var, const unsigned int type, const unsigned int nc) |
Interval | bound (const DA &da) |
double | convRadius (const DA &da, const double eps, const unsigned int type) |
DA | plug (const DA &da, const unsigned int var, const double val) |
DA | replaceVariable (const DA &da, const unsigned int from, const unsigned int to, const double val) |
DA | scaleVariable (const DA &da, const unsigned int var, const double val) |
DA | translateVariable (const DA &da, const unsigned int var, const double a, const double c) |
compiledDA | compile (const DA &da) |
std::string | toString (const DA &da) |
void | write (const DA &da, std::ostream &os) |
std::ostream & | operator<< (std::ostream &out, const storedDA &sda) |
std::ostream & | operator<< (std::ostream &out, const DACEException &ex) |
template<typename U > | |
std::ostream & | operator<< (std::ostream &out, const AlgebraicMatrix< U > &obj) |
Overload output stream operator. More... | |
template<> | |
DACE_API std::ostream & | operator<< (std::ostream &out, const AlgebraicMatrix< DA > &obj) |
DA specialization of output stream operator. More... | |
template<typename U > | |
std::istream & | operator>> (std::istream &in, AlgebraicMatrix< U > &obj) |
Overload input stream operator. More... | |
template<> | |
DACE_API std::istream & | operator>> (std::istream &in, AlgebraicMatrix< DA > &obj) |
DA specialization of input stream operator. More... | |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator+ (const AlgebraicMatrix< U > &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator+ (const AlgebraicMatrix< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator+ (const U &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator- (const AlgebraicMatrix< U > &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator- (const AlgebraicMatrix< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator- (const U &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator* (const AlgebraicMatrix< U > &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator* (const AlgebraicMatrix< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > | operator* (const U &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator* (const AlgebraicVector< U > &obj1, const AlgebraicMatrix< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator* (const AlgebraicMatrix< U > &obj1, const AlgebraicVector< V > &obj2) |
template<class T > | |
AlgebraicMatrix< T > | transpose (const AlgebraicMatrix< T > &obj) |
template<class T > | |
T | det (const AlgebraicMatrix< T > &obj) |
template<class T > | |
AlgebraicMatrix< T > | inv (const AlgebraicMatrix< T > &obj) |
template<class T > | |
AlgebraicMatrix< double > | cons (const AlgebraicMatrix< T > &obj) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator+ (const AlgebraicVector< U > &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator+ (const AlgebraicVector< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator+ (const U &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator- (const AlgebraicVector< U > &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator- (const AlgebraicVector< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator- (const U &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator* (const AlgebraicVector< U > &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator* (const AlgebraicVector< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator* (const U &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator/ (const AlgebraicVector< U > &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator/ (const AlgebraicVector< U > &obj1, const V &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | operator/ (const U &obj1, const AlgebraicVector< V > &obj2) |
template<typename U > | |
std::ostream & | operator<< (std::ostream &out, const AlgebraicVector< U > &obj) |
Overload output stream operator. More... | |
template<typename U > | |
std::istream & | operator>> (std::istream &in, AlgebraicVector< U > &obj) |
Overload input stream operator. More... | |
template<typename T > | |
AlgebraicVector< double > | cons (const AlgebraicVector< T > &obj) |
template<typename T > | |
std::vector< std::vector< double > > | linear (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | deriv (const AlgebraicVector< T > &obj, const unsigned int p) |
template<typename T > | |
AlgebraicVector< T > | integ (const AlgebraicVector< T > &obj, const unsigned int p) |
template<typename T > | |
AlgebraicVector< T > | pow (const AlgebraicVector< T > &obj, const int p) |
template<typename T > | |
AlgebraicVector< T > | root (const AlgebraicVector< T > &obj, const int p=2) |
template<typename T > | |
AlgebraicVector< T > | minv (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | sqr (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | sqrt (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | isrt (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | exp (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | log (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | logb (const AlgebraicVector< T > &obj, const double b=10.0) |
template<typename T > | |
AlgebraicVector< T > | sin (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | cos (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | tan (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | asin (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | acos (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | atan (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | atan2 (const AlgebraicVector< T > &obj1, const AlgebraicVector< T > &obj2) |
template<typename T > | |
AlgebraicVector< T > | sinh (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | cosh (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | tanh (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | asinh (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | acosh (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | atanh (const AlgebraicVector< T > &obj) |
template<typename U , typename V > | |
PromotionTrait< U, V >::returnType | dot (const AlgebraicVector< U > &obj1, const AlgebraicVector< V > &obj2) |
template<typename U , typename V > | |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > | cross (const AlgebraicVector< U > &obj1, const AlgebraicVector< V > &obj2) |
template<typename T > | |
T | vnorm (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | normalize (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | trim (const AlgebraicVector< T > &obj, unsigned int min, unsigned int max=DA::getMaxOrder()) |
template<typename T , typename V > | |
V | eval (const AlgebraicVector< T > &obj, const V &args) |
template<typename T , typename U > | |
AlgebraicVector< U > | eval (const AlgebraicVector< T > &obj, const std::initializer_list< U > l) |
template<typename T , typename U > | |
AlgebraicVector< U > | evalScalar (const AlgebraicVector< T > &obj, const U &arg) |
template<typename T > | |
compiledDA | compile (const AlgebraicVector< T > &obj) |
template<typename T > | |
AlgebraicVector< T > | plug (const AlgebraicVector< T > &obj, const unsigned int var, const double val=0.0) |
template<> | |
DACE_API std::vector< std::vector< double > > | linear (const AlgebraicVector< DA > &obj) |
template<> | |
DACE_API AlgebraicVector< DA > | trim (const AlgebraicVector< DA > &obj, unsigned int min, unsigned int max) |
template<> | |
DACE_API AlgebraicVector< DA > | deriv (const AlgebraicVector< DA > &obj, const unsigned int p) |
template<> | |
DACE_API AlgebraicVector< DA > | integ (const AlgebraicVector< DA > &obj, const unsigned int p) |
template<> | |
DACE_API compiledDA | compile (const AlgebraicVector< DA > &obj) |
template<> | |
DACE_API AlgebraicVector< DA > | plug (const AlgebraicVector< DA > &obj, const unsigned int var, const double val) |
template<typename V > | |
V | eval (const AlgebraicVector< DA > &obj, const V &args) |
template<typename T > | |
AlgebraicVector< T > | eval (const AlgebraicVector< DA > &obj, const std::initializer_list< T > l) |
template<typename U > | |
AlgebraicVector< U > | evalScalar (const AlgebraicVector< DA > &obj, const U &arg) |
template<class T > | |
T | eval (const DA &da, const std::vector< T > &args) |
template<class T > | |
T | eval (const DA &da, const T args[], const unsigned int length) |
template<class T > | |
T | evalScalar (const DA &da, const T &arg) |
DACE_API double | cons (const double x) |
Constant part (i.e. the value x) More... | |
DACE_API double | logb (const double x, const double b=10.0) |
Logarithm relative to base b. More... | |
DACE_API double | isrt (const double x) |
Inverse square root. More... | |
DACE_API double | sqr (const double x) |
Square. More... | |
DACE_API double | minv (const double x) |
Multiplicative inverse. More... | |
DACE_API double | root (const double x, const int p=2) |
p-th root More... | |
DACE_API std::ostream & | operator<< (std::ostream &out, const Monomial &m) |
typedef AlgebraicMatrix<DA> DACE::matrixDA |
Short for AlgebraicMatrix<DA>
typedef AlgebraicMatrix<double> DACE::matrixdb |
Short for AlgebraicMatrix<double>
typedef AlgebraicVector<DA> DACE::vectorDA |
Shorthand notation for AlgebraicVector<DA>.
typedef AlgebraicVector<double> DACE::vectordb |
Shorthand notation for AlgebraicVector<double>.
Compute the max norm of a DA object.
[in] | da | a given DA object. |
DACE::DACEException |
AlgebraicVector< T > DACE::acos | ( | const AlgebraicVector< T > & | obj | ) |
Compute the arccosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the arccosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::acosh | ( | const AlgebraicVector< T > & | obj | ) |
Compute the hyperbolic arccosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the hyperbolic arccosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::asin | ( | const AlgebraicVector< T > & | obj | ) |
Compute the arcsine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the arcsine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::asinh | ( | const AlgebraicVector< T > & | obj | ) |
Compute the hyperbolic arcsine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the hyperbolic arcsine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::atan | ( | const AlgebraicVector< T > & | obj | ) |
Compute the arctangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the arctangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::atan2 | ( | const AlgebraicVector< T > & | obj1, |
const AlgebraicVector< T > & | obj2 | ||
) |
Compute the four-quadrant tangent of obj1/obj2. The result is copied in a new AlgebraicVector<T>.
[in] | obj1 | AlgebraicVector<T>. |
[in] | obj2 | AlgebraicVector<T>. |
Compute the four-quadrant tangent of obj1/obj2. The result is copied in a new AlgebraicVector<T>.
[in] | obj1 | AlgebraicVector<T>. |
[in] | obj2 | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::atanh | ( | const AlgebraicVector< T > & | obj | ) |
Compute the hyperbolic arctangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the hyperbolic arctangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the n-th modified Bessel function of first type I_n of a DA object. The result is copied in a new DA object.
[in] | n | order of the Bessel function |
[in] | da | a given DA object. |
[in] | scaled | if true, the modified Bessel function is scaled by a factor exp(-x), i.e. exp(-x)I_n(x) is returned. |
DACE::DACEException |
Compute the n-th Bessel function of first type J_n of a DA object. The result is copied in a new DA object.
[in] | n | order of the Bessel function |
[in] | da | a given DA object. |
DACE::DACEException |
Compute the n-th modified Bessel function of second type K_n of a DA object. The result is copied in a new DA object.
[in] | n | order of the Bessel function |
[in] | da | a given DA object. |
[in] | scaled | if true, the modified Bessel function is scaled by a factor exp(-x), i.e. exp(-x)K_n(x) is returned. |
DACE::DACEException |
Compute the n-th Bessel function of second type Y_n of a DA object. The result is copied in a new DA object.
[in] | n | order of the Bessel function |
[in] | da | a given DA object. |
DACE::DACEException |
compiledDA DACE::compile | ( | const AlgebraicVector< T > & | obj | ) |
DACE_API compiledDA DACE::compile | ( | const AlgebraicVector< DA > & | obj | ) |
Compile vector of polynomials and create a compiledDA object.
[in] | obj | The AlgebraicVector to compile. |
compiledDA DACE::compile | ( | const AlgebraicVector< DA > & | obj | ) |
Compile vector of polynomials and create a compiledDA object.
[in] | obj | The AlgebraicVector to compile. |
DACE_API compiledDA DACE::compile | ( | const DA & | da | ) |
Compile a given DA object and create a compiledDA object.
DACE::DACEException |
double DACE::cons | ( | const double | x | ) |
Constant part (i.e. the value x)
Constant part. For double type this is just x.
[in] | x | Function argument. |
Constant part. For double type this is just x.
[in] | x | Function argument. |
AlgebraicMatrix< double > DACE::cons | ( | const AlgebraicMatrix< T > & | obj | ) |
Extract the constant part of a AlgebraicMatrix The result is copied in a new AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
Extract the constant part of a AlgebraicMatrix The result is copied in a new AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
AlgebraicVector< double > DACE::cons | ( | const AlgebraicVector< T > & | obj | ) |
Return the constant part of a AlgebraicVector<T>.
Return the constant part of a AlgebraicVector<T>.
Return the constant part of a DA object.
[in] | da | a given DA object. |
DACE::DACEException |
Estimate the convergence radius of the given DA.
[in] | da | the given DA object. |
[in] | eps | requested tolerance. |
[in] | type | type of norm (sum norm is used as default) |
DACE::DACEException |
AlgebraicVector< T > DACE::cos | ( | const AlgebraicVector< T > & | obj | ) |
Compute the cosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the cosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::cosh | ( | const AlgebraicVector< T > & | obj | ) |
Compute the hyperbolic cosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the hyperbolic cosine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::cross | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the cross product between two 3D AlgebraicVectors.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a AlgebraicVector. |
Compute the cross product between two 3D AlgebraicVectors.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a AlgebraicVector. |
AlgebraicVector<T> DACE::deriv | ( | const AlgebraicVector< T > & | obj, |
const unsigned int | p | ||
) |
DACE_API AlgebraicVector<DA> DACE::deriv | ( | const AlgebraicVector< DA > & | obj, |
const unsigned int | p | ||
) |
Compute the derivative of a AlgebraicVector<T> with respect to variable p. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | variable with respect to which the derivative is calculated. |
AlgebraicVector<DA> DACE::deriv | ( | const AlgebraicVector< DA > & | obj, |
const unsigned int | p | ||
) |
Compute the derivative of a AlgebraicVector<T> with respect to variable p. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | variable with respect to which the derivative is calculated. |
Compute the derivative of a DA object with respect to variable i. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | i | variable with respect to which the derivative is calculated. |
DACE::DACEException |
Compute the derivative of a DA object with respect to variables ind. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | ind | vector containing the number of derivatives to take for each independent variable. If ind has fewer entries than there are independent variables, the missing entries are assumed to be zero. If ind has more entries than there are independent variables, extra values are ignored. |
DACE::DACEException |
T DACE::det | ( | const AlgebraicMatrix< T > & | obj | ) |
Compute the determinant of an AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
Compute the determinant of an AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
Divide by independent variable var raised to power p. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | var | variable number to divide by. |
[in] | p | power of variable var to divide by. |
DACE::DACEException |
PromotionTrait< U, V >::returnType DACE::dot | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the dot product between two AlgebraicVectors.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a AlgebraicVector. |
Compute the dot product between two AlgebraicVectors.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a AlgebraicVector. |
DACE_API std::vector< double > DACE::estimNorm | ( | const DA & | da, |
const unsigned int | var, | ||
const unsigned int | type, | ||
const unsigned int | nc | ||
) |
Estimate different types of order sorted norms for terms of a DA object up to a specified order.
[in] | da | a given DA object. |
[in] | var | order 0: Terms are sorted by their order (Default) >0: Terms are sorted by the exponent of variable var |
[in] | type | type of norm to be computed. Possible norms are: 0: Max norm (Default) 1: Sum norm >1: Vector norm of given type |
[in] | nc | maximum order (Default order = Max order) |
DACE::DACEException |
DACE_API std::vector< double > DACE::estimNorm | ( | const DA & | da, |
std::vector< double > & | err, | ||
const unsigned int | var, | ||
const unsigned int | type, | ||
const unsigned int | nc | ||
) |
Estimate different types of order sorted norms for terms of a DA object up to a specified order with error estimates.
[in] | da | a given DA object. |
[out] | err | returns the amount by which the estimate underestimates the actual ordered norm of the terms in the polynomial up to the minimum of nc or the maximum computation order. |
[in] | var | order 0: Terms are sorted by their order (Default) >0: Terms are sorted by the exponent of variable var |
[in] | type | type of norm to be computed. Possible norms are: 0: Max norm (Default) 1: Sum norm >1: Vector norm of given type |
[in] | nc | maximum order (Default order = Max order) |
DACE::DACEException |
V DACE::eval | ( | const AlgebraicVector< T > & | obj, |
const V & | args | ||
) |
AlgebraicVector<U> DACE::eval | ( | const AlgebraicVector< T > & | obj, |
const std::initializer_list< U > | l | ||
) |
T DACE::eval | ( | const DA & | da, |
const std::vector< T > & | args | ||
) |
Generic evaluation of the DA with a vector of arithmetic type T arguments.
[in] | da | a given DA object. |
[in] | args | std::vector<T> of arithmetic type T with which the DA vector is evaluated. |
DACE::DACEException |
Generic evaluation of the DA with a vector of arithmetic type T arguments.
[in] | da | a given DA object. |
[in] | args | std::vector<T> of arithmetic type T with which the DA vector is evaluated. |
DACE::DACEException |
T DACE::eval | ( | const DA & | da, |
const T | args[], | ||
const unsigned int | length | ||
) |
Generic evaluation of the DA with an array of arithmetic type T arguments.
[in] | da | a given DA object. |
[in] | args | array of arithmetic type T with which the DA vector is evaluated. |
[in] | length | number of elements in the array args. |
DACE::DACEException |
Generic evaluation of the DA with an array of arithmetic type T arguments.
[in] | da | a given DA object. |
[in] | args | array of arithmetic type T with which the DA vector is evaluated. |
[in] | length | number of elements in the array args. |
DACE::DACEException |
V DACE::eval | ( | const AlgebraicVector< DA > & | obj, |
const V & | args | ||
) |
Evaluate an AlgebraicVector<DA> with a vector type V of arguments and return a vector of type V with the results.
[in] | obj | An AlgebraicVector<DA>. |
[in] | args | Vector type V containing the arguments. |
AlgebraicVector<T> DACE::eval | ( | const AlgebraicVector< DA > & | obj, |
const std::initializer_list< T > | l | ||
) |
Evaluate an AlgebraicVector<DA> with an braced initializer list of type T and return an AlgebraicVector of type T with the results.
[in] | obj | An AlgebraicVector<DA>. |
[in] | l | Braced initializer list containing the arguments. |
AlgebraicVector<U> DACE::evalScalar | ( | const AlgebraicVector< T > & | obj, |
const U & | arg | ||
) |
T DACE::evalScalar | ( | const DA & | da, |
const T & | arg | ||
) |
Generic evaluation of the DA with a single arithmetic type T arguments.
[in] | da | a given DA object. |
[in] | arg | single variable of arithmetic type T of the first independent DA variable. |
DACE::DACEException |
Generic evaluation of the DA with a single arithmetic type T arguments.
[in] | da | a given DA object. |
[in] | arg | single variable of arithmetic type T of the first independent DA variable. |
DACE::DACEException |
AlgebraicVector<U> DACE::evalScalar | ( | const AlgebraicVector< DA > & | obj, |
const U & | arg | ||
) |
Evaluate an AlgebraicVector<DA> with a single scalar argument of type U and return an AlgebraicVector<U> containing the results.
[in] | obj | The AlgebraicVector<T> to evaluate. |
[in] | arg | The argument of type U. |
AlgebraicVector< T > DACE::exp | ( | const AlgebraicVector< T > & | obj | ) |
Compute the exponential of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the exponential of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the Gamma function of a DA object. The result is copied in a new DA object.
[in] | da | a given DA object. |
DACE::DACEException |
DACE_API AlgebraicVector< DA > DACE::gradient | ( | const DA & | da | ) |
Compute the gradient of a DA object.
[in] | da | the given DA object. |
DACE::DACEException |
AlgebraicVector<T> DACE::integ | ( | const AlgebraicVector< T > & | obj, |
const unsigned int | p | ||
) |
DACE_API AlgebraicVector<DA> DACE::integ | ( | const AlgebraicVector< DA > & | obj, |
const unsigned int | p | ||
) |
Compute the integral of a AlgebraicVector<T> with respect to variable p. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | variable with respect to which the integral is calculated. |
AlgebraicVector<DA> DACE::integ | ( | const AlgebraicVector< DA > & | obj, |
const unsigned int | p | ||
) |
Compute the integral of a AlgebraicVector<T> with respect to variable p. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | variable with respect to which the integral is calculated. |
Compute the integral of a DA object with respect to variable i. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | i | variable with respect to which the integral is calculated. |
DACE::DACEException |
Compute the integral of a DA object with respect to variable i. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | ind | vector containing the number of derivatives to take for each independent variable. If ind has fewer entries than there are independent variables, the missing entries are assumed to be zero. If ind has more entries than there are independent variables, extra values are ignored. |
DACE::DACEException |
AlgebraicMatrix< T > DACE::inv | ( | const AlgebraicMatrix< T > & | obj | ) |
Compute the inverse of an AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
Compute the inverse of an AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
Check if a DA object has any INF coefficients.
[in] | da | a given DA object. |
DACE::DACEException |
Check if a DA object has any NAN coefficients.
[in] | da | a given DA object. |
DACE::DACEException |
double DACE::isrt | ( | const double | x | ) |
Inverse square root.
Inverse square root 1/sqrt(x).
[in] | x | Function argument. |
Inverse square root 1/sqrt(x).
[in] | x | Function argument. |
AlgebraicVector< T > DACE::isrt | ( | const AlgebraicVector< T > & | obj | ) |
Compute the inverse square root of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the inverse square root of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the n-th Bessel function of first type J_n of a DA object. The result is copied in a new DA object.
[in] | n | order of the Bessel function. |
[in] | da | a given DA object. |
DACE::DACEException |
Compute the Log Gamma function of a DA object. The result is copied in a new DA object.
[in] | da | a given DA object. |
DACE::DACEException |
std::vector< std::vector<double> > DACE::linear | ( | const AlgebraicVector< T > & | obj | ) |
DACE_API std::vector< std::vector<double> > DACE::linear | ( | const AlgebraicVector< DA > & | obj | ) |
Return the linear part of a AlgebraicVector<T>. Only defined for AlgebraicVector<DA>.
[in] | obj | AlgebraicVector<T> to extract linear part from |
std::vector< std::vector<double> > DACE::linear | ( | const AlgebraicVector< DA > & | obj | ) |
Return the linear part of a AlgebraicVector<T>. Only defined for AlgebraicVector<DA>.
[in] | obj | AlgebraicVector<T> to extract linear part from |
DACE_API AlgebraicVector< double > DACE::linear | ( | const DA & | da | ) |
Return the linear part of a DA object.
[in] | da | a given DA object. |
DACE::DACEException |
AlgebraicVector< T > DACE::log | ( | const AlgebraicVector< T > & | obj | ) |
Compute the natural logarithm of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the natural logarithm of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
double DACE::logb | ( | const double | x, |
const double | b = 10.0 |
||
) |
Logarithm relative to base b.
Logarithm relative to base b.
[in] | x | Function argument. |
[in] | b | Base of the logarithm (must be positive). |
Logarithm relative to base b.
[in] | x | Function argument. |
[in] | b | Base of the logarithm (must be positive). |
AlgebraicVector< T > DACE::logb | ( | const AlgebraicVector< T > & | obj, |
const double | b = 10.0 |
||
) |
Compute the logarithm of a AlgebraicVector<T> with respect to a given base. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | b | base with respect to which the logarithm is computed (default = 10). |
Compute the logarithm of a AlgebraicVector<T> with respect to a given base. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | b | base with respect to which the logarithm is computed (default = 10). |
Compute the logarithm of a DA object with respect to a given base. The result is copied in a new DA object.
[in] | da | a given DA object. |
[in] | b | base with respect to which the logarithm is computed (base 10 set as default base). |
DACE::DACEException |
Compute the Log Gamma function of a DA object. The result is copied in a new DA object.
[in] | da | a given DA object. |
DACE::DACEException |
double DACE::minv | ( | const double | x | ) |
Multiplicative inverse.
Multiplicative inverse 1/x.
[in] | x | Function argument. |
Multiplicative inverse 1/x.
[in] | x | Function argument. |
AlgebraicVector< T > DACE::minv | ( | const AlgebraicVector< T > & | obj | ) |
Compute the multiplicative inverse of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the multiplicative inverse of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the floating-point remainder of c/p (c modulo p), where c is the constant part of the given DA object. The result is copied in a new DA object.
[in] | da | a given DA object. |
[in] | p | costant with respect to which the modulo function is computed. |
DACE::DACEException |
Compute different types of norms for a DA object.
[in] | da | a given DA object. |
[in] | type | type of norm to be computed. Possible norms are: 0: Max norm (Default) 1: Sum norm >1: Vector norm of given type |
DACE::DACEException |
AlgebraicVector< T > DACE::normalize | ( | const AlgebraicVector< T > & | obj | ) |
Normalize an AlgebraicVector<T>.
[in] | obj | An AlgebraicVector<T> to normalize. |
Normalize an AlgebraicVector<T>.
[in] | obj | An AlgebraicVector<T> to normalize. |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const AlgebraicMatrix< U > & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the multiplication between two AlgebraicMatrices.
[in] | obj1 | first AlgebraicMatrix \( (n \times m) \) |
[in] | obj2 | second AlgebraicMatrix \( (m \times p) \). |
Compute the multiplication between two AlgebraicMatrices.
[in] | obj1 | first AlgebraicMatrix \( (n \times m) \) |
[in] | obj2 | second AlgebraicMatrix \( (m \times p) \). |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const AlgebraicMatrix< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the multiplication between a AlgebraicMatrix and a scalar value.
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a scalar value. |
Compute the multiplication between a AlgebraicMatrix and a scalar value.
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a scalar value. |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const U & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the multiplication between a scalar value and a AlgebraicMatrix.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicMatrix. |
Compute the multiplication between a scalar value and a AlgebraicMatrix.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicMatrix. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the multiplication between a AlgebraicVector (row) and a AlgebraicMatrix.
[in] | obj1 | a AlgebraicVector |
[in] | obj2 | a AlgebraicMatrix |
Compute the multiplication between a AlgebraicVector (row) and a AlgebraicMatrix.
[in] | obj1 | a AlgebraicVector |
[in] | obj2 | a AlgebraicMatrix |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const AlgebraicMatrix< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the multiplication between a AlgebraicMatrix and a AlgebraicVector (column) .
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a AlgebraicVector. |
Compute the multiplication between a AlgebraicMatrix and a AlgebraicVector (column) .
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a AlgebraicVector. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the element-wise multiplication between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
Compute the element-wise multiplication between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const AlgebraicVector< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the multiplication between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
Compute the multiplication between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator* | ( | const U & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the multiplication between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the multiplication between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the multiplication between a DA object and a given constant. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | c | given constant. |
DACE::DACEException |
Compute the multiplication between a given constant and a DA object. The result is copied in a new DA object.
[in] | c | given constant. |
[in] | da | DA object. |
DACE::DACEException |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator+ | ( | const AlgebraicMatrix< U > & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the addition between two AlgebraicMatrices.
[in] | obj1 | the first AlgebraicMatrix. |
[in] | obj2 | the second AlgebraicMatrix. |
Compute the addition between two AlgebraicMatrices.
[in] | obj1 | the first AlgebraicMatrix. |
[in] | obj2 | the second AlgebraicMatrix. |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator+ | ( | const AlgebraicMatrix< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the addition between a AlgebraicMatrix and a scalar value.
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a scalar value. |
Compute the addition between a AlgebraicMatrix and a scalar value.
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a scalar value. |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator+ | ( | const U & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the addition between a scalar value and a AlgebraicMatrix.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicMatrix. |
Compute the addition between a scalar value and a AlgebraicMatrix.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicMatrix. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator+ | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the addition between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
Compute the addition between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator+ | ( | const AlgebraicVector< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the addition between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
Compute the addition between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator+ | ( | const U & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the addition between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the addition between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the addition between a DA object and a given constant. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | c | given constant. |
DACE::DACEException |
Compute the addition between a given constant and a DA object. The result is copied in a new DA object.
[in] | c | given constant. |
[in] | da | DA object. |
DACE::DACEException |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator- | ( | const AlgebraicMatrix< U > & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the subtraction between two AlgebraicMatrices.
[in] | obj1 | first AlgebraicMatrx. |
[in] | obj2 | second AlgebraicMatrix. |
Compute the subtraction between two AlgebraicMatrices.
[in] | obj1 | first AlgebraicMatrx. |
[in] | obj2 | second AlgebraicMatrix. |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator- | ( | const AlgebraicMatrix< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the subtraction between a AlgebraicMatrix and a scalar value.
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a scalar value. |
Compute the subtraction between a AlgebraicMatrix and a scalar value.
[in] | obj1 | a AlgebraicMatrix. |
[in] | obj2 | a scalar value. |
AlgebraicMatrix< typename PromotionTrait< U, V >::returnType > DACE::operator- | ( | const U & | obj1, |
const AlgebraicMatrix< V > & | obj2 | ||
) |
Compute the subtraction between a scalar value and a AlgebraicMatrix.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicMatrix. |
Compute the subtraction between a scalar value and a AlgebraicMatrix.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicMatrix. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator- | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the subtraction between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
Compute the subtraction between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator- | ( | const AlgebraicVector< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the subtraction between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
Compute the subtraction between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator- | ( | const U & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the subtraction between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the subtraction between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the subtraction between a DA object and a given constant. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | c | given constant. |
DACE::DACEException |
Compute the subtraction between a given constant and a DA object. The result is copied in a new DA object.
[in] | c | given constant. |
[in] | da | DA object. |
DACE::DACEException |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator/ | ( | const AlgebraicVector< U > & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the element-wise division between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
Compute the element-wise division between two AlgebraicVectors.
[in] | obj1 | first AlgebraicVector. |
[in] | obj2 | second AlgebraicVector. |
std::runtime_error |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator/ | ( | const AlgebraicVector< U > & | obj1, |
const V & | obj2 | ||
) |
Compute the division between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
Compute the division between a AlgebraicVector and a scalar value.
[in] | obj1 | a AlgebraicVector. |
[in] | obj2 | a scalar value. |
AlgebraicVector< typename PromotionTrait< U, V >::returnType > DACE::operator/ | ( | const U & | obj1, |
const AlgebraicVector< V > & | obj2 | ||
) |
Compute the division between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the division between a scalar value and a AlgebraicVector.
[in] | obj1 | a scalar value. |
[in] | obj2 | a AlgebraicVector. |
Compute the division between a DA object and a given constant. The result is copied in a new DA object.
[in] | da | DA object. |
[in] | c | given constant. |
DACE::DACEException |
Compute the division between a given constant and a DA object. The result is copied in a new DA object.
[in] | c | given constant. |
[in] | da | DA object. |
DACE::DACEException |
std::ostream& DACE::operator<< | ( | std::ostream & | out, |
const AlgebraicMatrix< DA > & | obj | ||
) |
std::ostream & DACE::operator<< | ( | std::ostream & | out, |
const Monomial & | m | ||
) |
Overload output stream operator.
Overload of std::operator<< in iostream.
[in] | out | standard output stream. |
[in] | m | Monomial vector to be printed in the stream |
Overload of std::operator<< in iostream.
[in] | out | standard output stream. |
[in] | m | Monomial vector to be printed in the stream |
std::ostream & DACE::operator<< | ( | std::ostream & | out, |
const AlgebraicMatrix< U > & | obj | ||
) |
Overload output stream operator.
Overload of std::operator<< in iostream.
[in] | out | standard output stream. |
[in] | obj | AlgebraicMatrix<U> to be printed in the stream |
Overload of std::operator<< in iostream.
[in] | out | standard output stream. |
[in] | obj | AlgebraicMatrix<U> to be printed in the stream |
DACE_API std::ostream& DACE::operator<< | ( | std::ostream & | out, |
const AlgebraicMatrix< DA > & | obj | ||
) |
std::ostream & DACE::operator<< | ( | std::ostream & | out, |
const AlgebraicVector< U > & | obj | ||
) |
Overload output stream operator.
Output a vector to a C++ output stream.
[in] | out | standard output stream. |
[in] | obj | AlgebraicVector<U> to be written to the stream |
Output a vector to a C++ output stream.
[in] | out | standard output stream. |
[in] | obj | AlgebraicVector<U> to be written to the stream |
std::ostream& DACE::operator<< | ( | std::ostream & | out, |
const DACEException & | ex | ||
) |
Overload of std::operator<< in iostream.
[in] | out | standard output stream. |
[in] | ex | Exception to be printed in the stream |
std::ostream& DACE::operator<< | ( | std::ostream & | out, |
const DA & | da | ||
) |
Overload of std::operator<< in iostream.
[in] | out | standard output stream. |
[in] | da | DA object to be printed in the stream |
DACE::DACEException |
std::ostream& DACE::operator<< | ( | std::ostream & | out, |
const storedDA & | sda | ||
) |
std::istream& DACE::operator>> | ( | std::istream & | in, |
AlgebraicMatrix< DA > & | obj | ||
) |
std::istream & DACE::operator>> | ( | std::istream & | in, |
AlgebraicMatrix< U > & | obj | ||
) |
Overload input stream operator.
Overload of std::operator>> in iostream.
[in] | in | standard input stream. |
[in] | obj | AlgebraicMatrix<U> to be created from the stream |
Overload of std::operator>> in iostream.
[in] | in | standard input stream. |
[in] | obj | AlgebraicMatrix<U> to be created from the stream |
DACE_API std::istream& DACE::operator>> | ( | std::istream & | in, |
AlgebraicMatrix< DA > & | obj | ||
) |
std::istream & DACE::operator>> | ( | std::istream & | in, |
AlgebraicVector< U > & | obj | ||
) |
Overload input stream operator.
Input a vector from a C++ input stream.
[in] | in | standard input stream. |
[in] | obj | AlgebraicVector<U> to be read from the stream |
Input a vector from a C++ input stream.
[in] | in | standard input stream. |
[in] | obj | AlgebraicVector<U> to be read from the stream |
std::istream& DACE::operator>> | ( | std::istream & | in, |
DA & | da | ||
) |
Overload of std::operator>> in iostream. Reads both string and binary DA representations from a file.
[in] | in | standard input stream. |
[in] | da | DA object to be created from the stream |
DACE::DACEException |
DACE_API std::vector< double > DACE::orderNorm | ( | const DA & | da, |
const unsigned int | var, | ||
const unsigned int | type | ||
) |
Compute different types of order sorted norms for terms of a DA object.
[in] | da | a given DA object. |
[in] | var | order 0: Terms are sorted by their order (Default) >0: Terms are sorted by the exponent of variable var |
[in] | type | type of norm to be computed. Possible norms are: 0: Max norm (Default) 1: Sum norm >1: Vector norm of given type |
DACE::DACEException |
AlgebraicVector<T> DACE::plug | ( | const AlgebraicVector< T > & | obj, |
const unsigned int | var, | ||
const double | val = 0.0 |
||
) |
DACE_API AlgebraicVector<DA> DACE::plug | ( | const AlgebraicVector< DA > & | obj, |
const unsigned int | var, | ||
const double | val | ||
) |
Partial evaluation of vector of polynomials. In each element of the vector, variable var is replaced by the value val. The resulting vector of DAs is returned.
[in] | obj | The vector to partially evaluate. |
[in] | var | Variable number to be replaced. |
[in] | val | Value by which to replace the variable. |
AlgebraicVector<DA> DACE::plug | ( | const AlgebraicVector< DA > & | obj, |
const unsigned int | var, | ||
const double | val | ||
) |
Partial evaluation of vector of polynomials. In each element of the vector, variable var is replaced by the value val. The resulting vector of DAs is returned.
[in] | obj | The vector to partially evaluate. |
[in] | var | Variable number to be replaced. |
[in] | val | Value by which to replace the variable. |
Partial evaluation of a DA object. In the DA object, variable var is replaced by the value val. The resulting DA object is returned.
[in] | da | a given DA object. |
[in] | var | variable number to be replaced |
[in] | val | value by which to replace the variable |
DACE::DACEException |
AlgebraicVector< T > DACE::pow | ( | const AlgebraicVector< T > & | obj, |
const int | p | ||
) |
Elevate a AlgebraicVector<T> to a given integer power. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | power at which the AlgebraicVector is elevated. |
Elevate a AlgebraicVector<T> to a given integer power. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | power at which the AlgebraicVector is elevated. |
Raise a DA object to a given integer power. The constant part must be positive. The result is copied in a new DA object.
DACE::DACEException |
Compute the n-th Psi function of a DA object. The result is copied in a new DA object.
[in] | n | order of the Psi function to compute. |
[in] | da | a given DA object. |
DACE::DACEException |
DACE_API DA DACE::replaceVariable | ( | const DA & | da, |
const unsigned int | from, | ||
const unsigned int | to, | ||
const double | val | ||
) |
Partial evaluation of a DA object. In the DA object, variable from is replaced by the value val times variable to. The resulting DA object is returned.
[in] | da | a given DA object. |
[in] | from | variable number to be replaced |
[in] | to | variable number to be inserted instead |
[in] | val | value by which to scale the inserted variable |
DACE::DACEException |
double DACE::root | ( | const double | x, |
const int | p = 2 |
||
) |
p-th root
p-th root of x.
[in] | x | Function argument. |
[in] | p | Root to take. |
p-th root of x.
[in] | x | Function argument. |
[in] | p | Root to take. |
AlgebraicVector< T > DACE::root | ( | const AlgebraicVector< T > & | obj, |
const int | p = 2 |
||
) |
Compute the p-th root of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | root to be computed (default = 2). |
Compute the p-th root of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
[in] | p | root to be computed (default = 2). |
Scaling of an independent variable. In the DA object, variable var is replaced by the value val times var. The resulting DA object is returned.
[in] | da | a given DA object. |
[in] | var | variable number to be scaled |
[in] | val | value by which to scale the variable |
DACE::DACEException |
AlgebraicVector< T > DACE::sin | ( | const AlgebraicVector< T > & | obj | ) |
Compute the sine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the sine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::sinh | ( | const AlgebraicVector< T > & | obj | ) |
Compute the hyperbolic sine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the hyperbolic sine of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Return the number of non-zero coefficients of a DA object.
[in] | da | a given DA object. |
DACE::DACEException |
double DACE::sqr | ( | const double | x | ) |
Square.
Square of x.
[in] | x | Function argument. |
Square of x.
[in] | x | Function argument. |
AlgebraicVector< T > DACE::sqr | ( | const AlgebraicVector< T > & | obj | ) |
Compute the square of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the square of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::sqrt | ( | const AlgebraicVector< T > & | obj | ) |
Compute the square root of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the square root of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::tan | ( | const AlgebraicVector< T > & | obj | ) |
Compute the tangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the tangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
AlgebraicVector< T > DACE::tanh | ( | const AlgebraicVector< T > & | obj | ) |
Compute the hyperbolic tangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the hyperbolic tangent of a AlgebraicVector<T>. The result is copied in a new AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the Gamma function of a DA object. The result is copied in a new DA object.
[in] | da | a given DA object. |
DACE::DACEException |
Convert DA object to a string.
[in] | da | a given DA object. |
DACE::DACEException |
DACE_API DA DACE::translateVariable | ( | const DA & | da, |
const unsigned int | var, | ||
const double | a, | ||
const double | c | ||
) |
Affine translation of an independent variable. In the DA object, variable var is replaced by a*var + c. The resulting DA object is returned.
[in] | da | a given DA object. |
[in] | var | variable number to be translated |
[in] | a | value by which to scale the variable |
[in] | c | value by which to shift the variable |
DACE::DACEException |
AlgebraicMatrix< T > DACE::transpose | ( | const AlgebraicMatrix< T > & | obj | ) |
Compute the transpose of an AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
Compute the transpose of an AlgebraicMatrix.
[in] | obj | An AlgebraicMatrix |
AlgebraicVector<T> DACE::trim | ( | const AlgebraicVector< T > & | obj, |
unsigned int | min, | ||
unsigned int | max = DA::getMaxOrder() |
||
) |
DACE_API AlgebraicVector<DA> DACE::trim | ( | const AlgebraicVector< DA > & | obj, |
unsigned int | min, | ||
unsigned int | max | ||
) |
Returns an AlgebraicVector<DA> with all monomials of order less than min and greater than max removed (trimmed). The result is copied in a new AlgebraicVector<DA>.
[in] | obj | the AlgebraicVector<DA> to be trimmed. |
[in] | min | minimum order to be preserved. |
[in] | max | maximum order to be preserved. |
AlgebraicVector<DA> DACE::trim | ( | const AlgebraicVector< DA > & | obj, |
unsigned int | min, | ||
unsigned int | max | ||
) |
Returns an AlgebraicVector<DA> with all monomials of order less than min and greater than max removed (trimmed). The result is copied in a new AlgebraicVector<DA>.
[in] | obj | the AlgebraicVector<DA> to be trimmed. |
[in] | min | minimum order to be preserved. |
[in] | max | maximum order to be preserved. |
Returns a DA object with all monomials of order less than min and greater than max removed (trimmed). The result is copied in a new DA object.
[in] | da | DA object. |
[in] | min | The minimum order to keep in the DA object. |
[in] | max | The maximum order to keep in the DA object. |
DACE::DACEException |
T DACE::vnorm | ( | const AlgebraicVector< T > & | obj | ) |
Compute the Euclidean vector norm (length) of an AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Compute the Euclidean vector norm (length) of an AlgebraicVector<T>.
[in] | obj | AlgebraicVector<T>. |
Write binary representation of DA object to given stream os.
[in] | da | a given DA object. |
[in] | os | the output stream to write to. |
DACE::DACEException |
Compute the n-th Bessel function of second type Y_n of a DA object. The result is copied in a new DA object.
[in] | n | order of the Bessel function. |
[in] | da | a given DA object. |
DACE::DACEException |