* Returns the function value at x */
| 76 | * Returns the function value at x |
| 77 | */ |
| 78 | double 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 |
no test coverage detected