Package jdistlib.inference.lang
Class ExternalFunctionResult
java.lang.Object
jdistlib.inference.lang.ExternalFunctionResult
Immutable external-function values and derivatives with respect to flattened arguments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]jacobian()static ExternalFunctionResultscalar(double value, double... partials) int[]shape()double[]values()
-
Constructor Details
-
ExternalFunctionResult
public ExternalFunctionResult(double[] values, int[] shape, double[][] jacobian) - Parameters:
values- flattened return valuesshape- return dimensions, empty for a scalarjacobian- rows by return value and columns by all argument elements in order
-
-
Method Details
-
scalar
-
values
public double[] values() -
shape
public int[] shape() -
jacobian
public double[][] jacobian()
-