CrossSum function

Calculations on cubes

Calculations on cubes

Implements several operations of objects of class ADCube .

CrossSum(u, w) CrossMult(u, w) CrossDivide(u, w) CrossSquare(u) CrossExp(u) CrossLog(u) CrossPow(u, r) CrossSqrt(u) CrossRaisePow(u, w)

Arguments

  • u: an object of class ADCube .
  • w: an object of class ADCube .
  • r: a positive real number.

Returns

An object of class ADCube is returned. See Details .

Details

Assume u and w contain the evaluations of functions f()f() and g()g(), together with evaluations of all their cross-derivatives, at points xx and yy, respectively.

CrossSum returns the evaluation of f()+g()f()+g(), together with all evaluated cross-derivates.

CrossMult returns the evaluation of f()g()f()g(), together with all evaluated cross-derivates.

CrossDivide returns the evaluation of f()/g()f()/g(), together with all evaluated cross-derivates.

CrossSquare returns the evaluation of (f())2(f())^2, together with all evaluated cross-derivates.

CrossExp returns the evaluation of exp(f())exp(f()), together with all evaluated cross-derivates.

CrossLog returns the evaluation of log(f())log(f()), together with all evaluated cross-derivates.

CrossPow returns the evaluation of (f())r(f())^r, together with all evaluated cross-derivates.

CrossSqrt returns the evaluation of sqrt(f())sqrt(f()), together with all evaluated cross-derivates.

CrossRaisePow returns the evaluation of f()g()f()^{g()}, together with all evaluated cross-derivates.

References

Griewank, A., Lehmann, L., Leovey, H. and Zilberman, M. (2014). Automatic evaluations of cross-derivatives, Mathematics of Computation 83 (285): 251-274.

See Also

NewCube

Author(s)

Berwin A. Turlach berwin.turlach@gmail.com

  • Maintainer: Berwin A. Turlach
  • License: GPL (>= 2)
  • Last published: 2025-04-13

Useful links