Using the following on matlab / octave:
A = [ 1, 2; 3, 4; 5, 6];
[u, s, v] = svd(A)
-0.22985 0.88346 0.40825
-0.52474 0.24078 -0.81650
-0.81964 -0.40190 0.40825
Now with the js implementation:
var A = $M([
var svd = A.svd();
I obtain nothing because it crashes:
var e = S.triu(1).unroll().norm();
TypeError: Cannot call method 'triu' of null
at Object.svdJs (/[...]/node_modules/sylvester
Is it an issue with the qr factorization? Looks like at some point the R in qrJs() becomes null and everything crashes from there.
I think this issue might belong in the node-sylvester project.
Arghk. My bad. It does...
What should I do, just report it back in Sylvester ?
in NaturalNode / node-sylvester, yup. QR and SVD were somewhat experimental so it's not a shock to me to see some problems reported. i'll have a look at it over the weekend.
Ok, I close here then. Thanks for the feedback.