@Test public void testNcols() { System.out.println("ncols"); assertEquals(3, sparse.ncols()); }
@Override public int ncols() { return n; }
FloatSparseMatrix extends SMatrix implements Iterable<FloatSparseMatrix.Entry> { @Override public int ncols() { return n; } }
FloatSparseMatrix extends SMatrix implements Iterable<FloatSparseMatrix.Entry> { @Override public int ncols() { return n; } private  FloatSparseMatrix(int m, int n, int nvals);  FloatSparseMatrix(int m, int n, float[] nonzeros, int[] rowIndex, int[] colIndex);  FloatSparseMatrix(float[][] A);  FloatSparseMatrix(float[][] A, float tol); }
FloatSparseMatrix extends SMatrix implements Iterable<FloatSparseMatrix.Entry> { @Override public int ncols() { return n; } private  FloatSparseMatrix(int m, int n, int nvals);  FloatSparseMatrix(int m, int n, float[] nonzeros, int[] rowIndex, int[] colIndex);  FloatSparseMatrix(float[][] A);  FloatSparseMatrix(float[][] A, float tol); @Override FloatSparseMatrix clone(); @Override int nrows(); @Override int ncols(); @Override long size(); Stream<Entry> nonzeros(); Stream<Entry> nonzeros(int beginColumn, int endColumn); @Override Iterator<Entry> iterator(); Iterator<Entry> iterator(int beginColumn, int endColumn); void forEachNonZero(DoubleConsumer consumer); void forEachNonZero(int beginColumn, int endColumn, FloatConsumer consumer); float get(int index); float set(int index, float value); @Override float get(int i, int j); @Override FloatSparseMatrix set(int i, int j, float x); @Override void mv(Transpose trans, float alpha, float[] x, float beta, float[] y); @Override void mv(float[] work, int inputOffset, int outputOffset); @Override void tv(float[] work, int inputOffset, int outputOffset); FloatSparseMatrix transpose(); FloatSparseMatrix mm(FloatSparseMatrix B); FloatSparseMatrix ata(); FloatSparseMatrix aat(); @Override float[] diag(); static FloatSparseMatrix harwell(Path path); static FloatSparseMatrix rutherford(Path path); static FloatSparseMatrix text(Path path); }
FloatSparseMatrix extends SMatrix implements Iterable<FloatSparseMatrix.Entry> { @Override public int ncols() { return n; } private  FloatSparseMatrix(int m, int n, int nvals);  FloatSparseMatrix(int m, int n, float[] nonzeros, int[] rowIndex, int[] colIndex);  FloatSparseMatrix(float[][] A);  FloatSparseMatrix(float[][] A, float tol); @Override FloatSparseMatrix clone(); @Override int nrows(); @Override int ncols(); @Override long size(); Stream<Entry> nonzeros(); Stream<Entry> nonzeros(int beginColumn, int endColumn); @Override Iterator<Entry> iterator(); Iterator<Entry> iterator(int beginColumn, int endColumn); void forEachNonZero(DoubleConsumer consumer); void forEachNonZero(int beginColumn, int endColumn, FloatConsumer consumer); float get(int index); float set(int index, float value); @Override float get(int i, int j); @Override FloatSparseMatrix set(int i, int j, float x); @Override void mv(Transpose trans, float alpha, float[] x, float beta, float[] y); @Override void mv(float[] work, int inputOffset, int outputOffset); @Override void tv(float[] work, int inputOffset, int outputOffset); FloatSparseMatrix transpose(); FloatSparseMatrix mm(FloatSparseMatrix B); FloatSparseMatrix ata(); FloatSparseMatrix aat(); @Override float[] diag(); static FloatSparseMatrix harwell(Path path); static FloatSparseMatrix rutherford(Path path); static FloatSparseMatrix text(Path path);  }