/** * {@inheritDoc} */ public double get(int row, int col) { return backingMatrix.get(getRealRow(row), col); }
/** * {@inheritDoc} */ public void set(int row, int col, double val) { backingMatrix.set(getRealRow(row), col, val); }
/** * {@inheritDoc} */ public void setRow(int row, DoubleVector values) { backingMatrix.setRow(getRealRow(row), values); }
/** * {@inheritDoc} */ public double get(int row, int col) { return backingMatrix.get(getRealRow(row), col); }
/** * {@inheritDoc} */ public DoubleVector getRowVector(int row) { return backingMatrix.getRowVector(getRealRow(row)); }
/** * {@inheritDoc} */ public void setRow(int row, DoubleVector values) { backingMatrix.setRow(getRealRow(row), values); }
/** * {@inheritDoc} */ public void setRow(int row, double[] columns) { backingMatrix.setRow(getRealRow(row), columns); }
/** * {@inheritDoc} */ public DoubleVector getRowVector(int row) { return backingMatrix.getRowVector(getRealRow(row)); }
/** * {@inheritDoc} */ public void set(int row, int col, double val) { backingMatrix.set(getRealRow(row), col, val); }
/** * {@inheritDoc} */ public double[] getRow(int row) { return backingMatrix.getRow(getRealRow(row)); }
/** * {@inheritDoc} */ public void setRow(int row, double[] columns) { backingMatrix.setRow(getRealRow(row), columns); }
/** * {@inheritDoc} */ public double[] getRow(int row) { return backingMatrix.getRow(getRealRow(row)); }
/** * {@inheritDoc} */ public void setColumn(int column, DoubleVector values) { if (values.length() != rows) throw new IllegalArgumentException("cannot set a column " + "whose dimensions are different than the matrix"); if (values instanceof SparseVector) { SparseVector sv = (SparseVector)values; for (int nz : sv.getNonZeroIndices()) backingMatrix.set(getRealRow(nz), nz, values.get(nz)); } else { for (int i = 0; i < rowToReal.length; ++i) backingMatrix.set(rowToReal[i], i, values.get(i)); } }
/** * {@inheritDoc} */ public void setColumn(int column, DoubleVector values) { if (values.length() != rows) throw new IllegalArgumentException("cannot set a column " + "whose dimensions are different than the matrix"); if (values instanceof SparseVector) { SparseVector sv = (SparseVector)values; for (int nz : sv.getNonZeroIndices()) backingMatrix.set(getRealRow(nz), nz, values.get(nz)); } else { for (int i = 0; i < rowToReal.length; ++i) backingMatrix.set(rowToReal[i], i, values.get(i)); } }