Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

New Post: Is there a method in recent Math.Net to return the SquaredNorm of a vector?

$
0
0
I assume you want the squared L2-norm (which is what Iridium did if I remember correctly).
// straight forward, simply square the L2-norm directly:
var squaredNorm1 = Math.Pow(v.L2Norm(),2);

// alternative using dot product, much shorter and likely also faster:
var squaredNorm2 = v*v;

Viewing all articles
Browse latest Browse all 971

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>