Contains common data structures and operations for LU decomposition algorithms.
447448449450451452453454455456
return; // A.reshape(N-off,N, false); A = A.reshape(N-off, N); AltLU lu = new AltLU(); lu._decompose(A); assertFalse(lu.isSingular()); // assertTrue(MatrixFeatures.isRowsLinearIndependent(A)); }
515253545556575859
if(!A.isSquare()) throw new IllegalArgumentException("Input must be a square matrix."); this.A = A; this.numRows = A.rowCount(); this.numCols = A.columnCount(); decomp = new AltLU(); result = decomp._decompose(A); return result; }