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

Method eval

src/bsplinebasis.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44SparseVector 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
56DenseMatrix BSplineBasis::evalBasisJacobianOld(DenseVector &x) const

Callers 4

evalBasisJacobianOldMethod · 0.45
evalBasisJacobianMethod · 0.45
evalBasisJacobian2Method · 0.45
evalBasisHessianMethod · 0.45

Calls 1

kroneckerProductVectorsFunction · 0.85

Tested by

no test coverage detected