I’m having trouble with this sequence:
var y_diff = new Func<Vector<double>, Vector<double>>(p => f0(p) - y);. var g0 = new Func<Vector<double>, Vector<double>>(p => (x.Map(z1 => 2.0 * y_diff(p) )));
On the x.Map, I’m getting “The type Vector must be a non-nullable value type in order to use it as a parameter.”
Hey, all I’m trying to do is multiply a vector by a scalar (and eventually get the sum of the elements).
Edit: Also, I could do with an explanation of forceMapZero which also arose while trying various fixes. I would have expected it to be an attribute of Zeros, but it doesn’t appear.