Calculates the second-order gradient of a multivariable function, a parametric surface function, or a vector field at a vector.
The function or vector field
The vector
const f = Chalkboard.real.define((x, y) => x * x + x * y + y * y);const Hessian = Chalkboard.calc.grad2(f, Chalkboard.vect.init(0, 0)); // Returns the Hessian matrix Copy
const f = Chalkboard.real.define((x, y) => x * x + x * y + y * y);const Hessian = Chalkboard.calc.grad2(f, Chalkboard.vect.init(0, 0)); // Returns the Hessian matrix
Calculates the second-order gradient of a multivariable function, a parametric surface function, or a vector field at a vector.