Skip to content
Snippets Groups Projects
Commit a3938e12 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

implement the actual Hessian

[[Imported from SVN: r5597]]
parent a9889474
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,14 @@ public:
matrix[i][j] = (i==j);
}
void assembleHessian(const TargetSpace& x,
Dune::FieldMatrix<double,size,size>& matrix) const
{
matrix = 0;
for (int i=0; i<dim+1; i++)
matrix.axpy(w[i], TargetSpace::secondDerivativeOfDistanceSquaredWRTSecondArgument(coefficients_[i], q));
}
const std::vector<TargetSpace> coefficients_;
const std::vector<double> weights_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment