86 already mentions adding SVD, but I thought it deserved a separate issue to track progress and would be very convenient for calculating eigenvectors / eigenvalues.
I have a largely untested and unbenchmarked implementation of SVD for 2x2 matrices I'm working on that might be of some help to someone who doesn't feel like pulling in more dependencies and marshaling between them. It's likely that this one isn't the most optimal implementation, I've lifted it from http://scicomp.stackexchange.com/a/19646/3470. (I'd appreciate references to other 2x2 SVD implementations if anyone has suggestions.)
As an aside, I believe fromDiagonal might be a helpful utility function. Numpy's diag does the same thing when supplied with a vector for example. Would it be appropriate to open a PR for it?
86 already mentions adding SVD, but I thought it deserved a separate issue to track progress and would be very convenient for calculating eigenvectors / eigenvalues.
I have a largely untested and unbenchmarked implementation of SVD for 2x2 matrices I'm working on that might be of some help to someone who doesn't feel like pulling in more dependencies and marshaling between them. It's likely that this one isn't the most optimal implementation, I've lifted it from http://scicomp.stackexchange.com/a/19646/3470. (I'd appreciate references to other 2x2 SVD implementations if anyone has suggestions.)
As an aside, I believefromDiagonal
might be a helpful utility function. Numpy's diag does the same thing when supplied with a vector for example. Would it be appropriate to open a PR for it?