# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.differentiation.multivariate

## Class HessianFunction

• java.lang.Object
• com.numericalmethod.suanshu.analysis.differentiation.multivariate.HessianFunction
• All Implemented Interfaces:
Function<Vector,Matrix>, RntoMatrix

public class HessianFunction
extends Object
implements RntoMatrix
The Hessian function, H(x), evaluates the Hessian of a real scalar function f at a point x. H(x) has the same domain as f(x).

• ### Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function

Function.EvaluationException
• ### Constructor Summary

Constructors
Constructor and Description
HessianFunction(RealScalarFunction f)
Construct the Hessian function of a real scalar function f.
• ### Method Summary

All Methods
Modifier and Type Method and Description
int dimensionOfDomain()
Get the number of variables the function has.
int dimensionOfRange()
Get the dimension of the range space of the function.
Matrix evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
• ### Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
• ### Constructor Detail

• #### HessianFunction

public HessianFunction(RealScalarFunction f)
Construct the Hessian function of a real scalar function f.
Parameters:
f - a real scalar function
• ### Method Detail

• #### evaluate

public Matrix evaluate(Vector x)
Description copied from interface: Function
Evaluate the function f at x, where x is from the domain.
Specified by:
evaluate in interface Function<Vector,Matrix>
Parameters:
x - x
Returns:
f(x)
• #### dimensionOfDomain

public int dimensionOfDomain()
Description copied from interface: Function
Get the number of variables the function has. For example, for a univariate function, the domain dimension is 1; for a bivariate function, the domain dimension is 2.
Specified by:
dimensionOfDomain in interface Function<Vector,Matrix>
Returns:
the number of variables
• #### dimensionOfRange

public int dimensionOfRange()
Description copied from interface: Function
Get the dimension of the range space of the function. For example, for a Rn->Rm function, the dimension of the range is m.
Specified by:
dimensionOfRange in interface Function<Vector,Matrix>
Returns:
the dimension of the range