Bug in toRightTriangular
Opened this issue · 0 comments
jlerny commented
Hi
I think there is a bug in Sylvester, in the toRightTriangular function of sylvester.src.js it is missing declaring j as a local variable.
Currently:
var n = this.elements.length, k = n, i, np, kp = this.elements[0].length, p;
Should be:
var n = this.elements.length, k = n, i, j, np, kp = this.elements[0].length, p;
It is currently modifying any global j variable.
Best regards
PS: did not find your contact address