/** * 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"; }
/** * Self modifying version of viewFlip(). What used to be index <tt>0</tt> is * now index <tt>size()-1</tt>, ..., what used to be index <tt>size()-1</tt> * is now index <tt>0</tt>. */ protected AbstractMatrix1D vFlip() { if (size > 0) { this.zero += (this.size() - 1) * this.stride; this.stride = -this.stride; this.isNoView = false; } return this; }
/** * Self modifying version of viewFlip(). What used to be index <tt>0</tt> is * now index <tt>size()-1</tt>, ..., what used to be index <tt>size()-1</tt> * is now index <tt>0</tt>. */ protected AbstractMatrix1D vFlip() { if (size > 0) { this.zero += (this.size() - 1) * this.stride; this.stride = -this.stride; this.isNoView = false; } return this; }
/** * Returns a string representations of all cells; no alignment considered. */ protected String[] formatRow(AbstractMatrix1D vector) { Former formatter = null; formatter = factory.create(format); int s = (int) 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 = (int) vector.size(); String[] strings = new String[s]; for (int i = 0; i < s; i++) { strings[i] = form(vector, i, formatter); } return strings; }