10281029103010311032103310341035103610371038
AVector a = getColumnView(i); AVector b = getColumnView(j); int rc = rowCount(); for (int k = 0; k < rc; k++) { double t = a.unsafeGet(k); a.unsafeSet(k, b.unsafeGet(k)); b.unsafeSet(k, t); } } public void composeWith(AMatrix a) {
6667686970717273747576
int kmax = Math.min(i, j); double s = 0.0; for (int k = 0; k < kmax; k++) { s += m.get(i, k) * jcolumn.unsafeGet(k); } jcolumn.set(i, jcolumn.unsafeGet(i) - s); m.set(i, j, jcolumn.unsafeGet(i)); }
6970717273747576777879
double s = 0.0; for (int k = 0; k < kmax; k++) { s += m.get(i, k) * jcolumn.unsafeGet(k); } jcolumn.set(i, jcolumn.unsafeGet(i) - s); m.set(i, j, jcolumn.unsafeGet(i)); } int biggest = j;
7071727374757677787980
for (int k = 0; k < kmax; k++) { s += m.get(i, k) * jcolumn.unsafeGet(k); } jcolumn.set(i, jcolumn.unsafeGet(i) - s); m.set(i, j, jcolumn.unsafeGet(i)); } int biggest = j; for (int i = j + 1; i < n; i++) {
7677787980818283848586
} int biggest = j; for (int i = j + 1; i < n; i++) { if (Math.abs(jcolumn.unsafeGet(i)) > Math.abs(jcolumn.unsafeGet(biggest))) biggest = i; } if (biggest != j) { m.swapRows(biggest, j);