/** * Returns a short string representation describing the shape of the matrix. */ public static String shape(AbstractMatrix1D matrix) { //return "Matrix1D of size="+matrix.size(); //return matrix.size()+" element matrix"; //return "matrix("+matrix.size()+")"; return matrix.size()+" matrix"; } /**
/** * Returns a short string representation describing the shape of the matrix. */ public static String shape(AbstractMatrix1D matrix) { //return "Matrix1D of size="+matrix.size(); //return matrix.size()+" element matrix"; //return "matrix("+matrix.size()+")"; return matrix.size()+" matrix"; } /**
/** * Returns a string representations of all cells; no alignment considered. */ protected String[] formatRow(AbstractMatrix1D vector) { Former formatter = null; formatter = factory.create(format); int s = vector.size(); String[] strings = new String[s]; for (int i=0; i<s; i++) { strings[i] = form(vector,i,formatter); } return strings; } /**
/** * Returns a string representations of all cells; no alignment considered. */ protected String[] formatRow(AbstractMatrix1D vector) { Former formatter = null; formatter = factory.create(format); int s = vector.size(); String[] strings = new String[s]; for (int i=0; i<s; i++) { strings[i] = form(vector,i,formatter); } return strings; } /**