Closed twheys closed 9 years ago
Line 747 of org.la4j.Matrix incorrectly compares the number of rows and columns to be inserted with columns and rows:
if (destRow + rows > this.columns || destColumn + columns > this.rows) { fail("Out of bounds: Cannot add " + rows + " rows and " + columns + " cols at " + destRow + ", " + destColumn + " in a " + this.rows + "x" + this.columns + " matrix."); }
Should be
if (destRow + rows > this.rows || destColumn + columns > this.columns) { fail("Out of bounds: Cannot add " + rows + " rows and " + columns + " cols at " + destRow + ", " + destColumn + " in a " + this.rows + "x" + this.columns + " matrix."); }
Do you mind to create a PR?
sure
Cool! Thanks!
That was my bad :P
I wrote that, didn't test it enough. Copy paste error :disappointed:
Line 747 of org.la4j.Matrix incorrectly compares the number of rows and columns to be inserted with columns and rows:
Should be