File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
lib/src/Uncertainty/Algorithm/MetaModel/TensorApproximation Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 23
23
#include " openturns/OSS.hxx"
24
24
#include " openturns/Sample.hxx"
25
25
#include " openturns/PersistentObjectFactory.hxx"
26
- #include " openturns/CenteredFiniteDifferenceGradient.hxx"
27
26
#include " openturns/CenteredFiniteDifferenceHessian.hxx"
28
27
#include " openturns/CanonicalTensorGradient.hxx"
29
28
@@ -72,6 +71,7 @@ TensorApproximationResult::TensorApproximationResult(
72
71
Function tensorFunction;
73
72
tensorFunction.setEvaluation (tensorCollection_[outputIndex].clone ());
74
73
tensorFunction.setGradient (CanonicalTensorGradient (tensorCollection_[outputIndex]));
74
+ tensorFunction.setHessian (new CenteredFiniteDifferenceHessian (ResourceMap::GetAsScalar ( " CenteredFiniteDifferenceHessian-DefaultEpsilon" ), tensorFunction.getEvaluation ()));
75
75
marginals.add (tensorFunction);
76
76
}
77
77
composedMetaModel_ = Function (marginals);
You can’t perform that action at this time.
0 commit comments