Quantcast
Viewing all articles
Browse latest Browse all 971

New Post: How to apply operation over vector from each row/column of a matrix?

I have been porting some code that I had with my own Matrix<T> implementation but Math.Net is far more complete.

And I am wondering if there exists such a method here.
My code looked like this:

wu_v += Functions.Sum(v, Axis.Rows);

Where wu_v is a Matrix<T> and v is a Vector<T>. The alternative is to do:
wu_v = wu_v + ones * diag(v) or coding it by hand for performance, but I was wondering if there was such a construct already.

Federico

Viewing all articles
Browse latest Browse all 971

Trending Articles



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