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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -