MCPcopy Create free account
hub / github.com/bgrimstad/splinter / eval

Method eval

src/bspline.cpp:78–84  ·  view source on GitHub ↗

* Returns the function value at x */

Source from the content-addressed store, hash-verified

76 * Returns the function value at x
77 */
78double BSpline::eval(DenseVector x) const
79{
80 checkInput(x);
81 // NOTE: casting to DenseVector to allow accessing as res(0)
82 DenseVector res = coefficients.transpose()*evalBasis(x);
83 return res(0);
84}
85
86/**
87 * Returns the (1 x numVariables) Jacobian evaluated at x

Callers 2

evalBasisMethod · 0.45

Calls 1

checkInputFunction · 0.85

Tested by

no test coverage detected