mathdotnet - Is there a method in recent Math.Net to return the SquaredNorm of a vector? -
in old version (iridium) there method vector.squarednorm() in recent stable version of math.net there none available.
what method should use?
if want squared l2-norm (which iridium did if remember correctly) can square yourself:
var squarednorm1 = math.pow(v.l2norm(),2);
alternatively can use dot product bit shorter (and faster in case use native providers , vectors large):
var squarednorm2 = v*v;
Comments
Post a Comment