Skip to content
Snippets Groups Projects
Commit 0e9463c0 authored by Lasse Hinrichsen's avatar Lasse Hinrichsen
Browse files

Bugfix: include factor in subdiff

parent 0317e237
No related branches found
No related tags found
1 merge request!25WIP: Semilinear functional
......@@ -217,7 +217,9 @@ public:
auto subDifferential(double pos) const
{
auto shiftedPos = origin_ + pos;
return phi_.subDifferential(shiftedPos);
auto sd = phi_.subDifferential(shiftedPos);
sd *= weights_;
return sd;
}
Range operator()(Vector x) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment