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

New Post: Missing Vector.ScalarMultiply(Vector), and more

$
0
0
Vector.Multiply and Vector.Add do not modify the vector "in place", they return a copy.

In the end I did the following:
// Replaces Vector.ScaleInplace (double)double scalar = 2;
v1.MapInPlace (value => value * scalar);

// Replaces Vector.AddInplace (Vector)
v1.MapIndexedInplace ((index, value) => value + v2[index]);

Viewing all articles
Browse latest Browse all 971

Trending Articles



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