package jas.hist; import java.text.NumberFormat; public class Matrix { public static double[][] create(int size) { double[][] result = new double[size][]; for (int i=0; i Math.abs(amax)) { amax = array[i][j]; ik[k] = i; jk[k] = j; } } } // Interchange rows and columns to put max in array[k][k] if (amax == 0) throw new IndeterminateMatrix(); { int i = ik[k]; if (k > i) throw new MatrixBug(); if (i > k) { for (int j=0; j j) throw new MatrixBug(); if (j > k) { for (int i=0; ik) { for (int i=0; ik) { for (int j=0; j