| 42 | } |
| 43 | |
| 44 | SparseVector BSplineBasis::eval(const DenseVector &x) const |
| 45 | { |
| 46 | // Evaluate basisfunctions for each variable i and compute the tensor product of the function values |
| 47 | std::vector<SparseVector> basisFunctionValues; |
| 48 | |
| 49 | for (int var = 0; var < x.size(); var++) |
| 50 | basisFunctionValues.push_back(bases.at(var).eval(x(var))); |
| 51 | |
| 52 | return kroneckerProductVectors(basisFunctionValues); |
| 53 | } |
| 54 | |
| 55 | // Old implementation of Jacobian |
| 56 | DenseMatrix BSplineBasis::evalBasisJacobianOld(DenseVector &x) const |
no test coverage detected