jsat.math
Interface FunctionVec
-
- All Known Implementing Classes:
- LinearBatch.GradFunction
public interface FunctionVecInterface for representing a function that takes a vector as input should return a vector as the output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default Vecf(double... x)Computes the function value given the inputxdefault Vecf(Vec x)Computes the function value given the inputxdefault Vecf(Vec x, Vec s)Computes the function value given the inputxVecf(Vec x, Vec s, boolean parallel)Computes the function value given the inputx
-
-
-
Method Detail
-
f
default Vec f(double... x)
Computes the function value given the inputx- Parameters:
x- the input to compute the output from- Returns:
- the vector containing the results
-
f
default Vec f(Vec x)
Computes the function value given the inputx- Parameters:
x- the input to compute the output from- Returns:
- the vector containing the results
-
f
default Vec f(Vec x, Vec s)
Computes the function value given the inputx- Parameters:
x- the input to compute the output froms- the vector to store the result in, ornullif a new vector should be allocated- Returns:
- the vector containing the results. This is the same object as
sifsis notnull
-
f
Vec f(Vec x, Vec s, boolean parallel)
Computes the function value given the inputx- Parameters:
x- the input to compute the output froms- the vector to store the result in, ornullif a new vector should be allocatedparallel-trueif multiple threads should be used for evaluation,falseif only a single thread should.- Returns:
- the vector containing the results. This is the same object as
sofsis notnull
-
-
DataMelt 3.0 © DataMelt by jWork.ORG