/** * {@inheritDoc} * * No change to compressed Yale or sparse row format. * @param rowIndex {@inheritDoc} * @param columnIndex {@inheritDoc} * @return {@inheritDoc} */ @Override final public double getElement( final int rowIndex, final int columnIndex) { return this.get(rowIndex, columnIndex); }
/** * {@inheritDoc} * * No change to compressed Yale or sparse row format. * @param rowIndex {@inheritDoc} * @param columnIndex {@inheritDoc} * @return {@inheritDoc} */ @Override final public double getElement( final int rowIndex, final int columnIndex) { return this.get(rowIndex, columnIndex); }
/** * {@inheritDoc} * * No change to compressed Yale or sparse row format. * @param rowIndex {@inheritDoc} * @param columnIndex {@inheritDoc} * @return {@inheritDoc} */ @Override final public double getElement( final int rowIndex, final int columnIndex) { return this.get(rowIndex, columnIndex); }
@Override public final void dotTimesEquals( final SparseMatrix other) { this.assertSameDimensions(other); for (int i = 0; i < diagonal.length; ++i) { diagonal[i] *= other.get(i, i); } }
@Override public final void dotTimesEquals( final SparseMatrix other) { this.assertSameDimensions(other); for (int i = 0; i < diagonal.length; ++i) { diagonal[i] *= other.get(i, i); } }
@Override public final void dotTimesEquals( final SparseMatrix other) { this.assertSameDimensions(other); for (int i = 0; i < diagonal.length; ++i) { diagonal[i] *= other.get(i, i); } }
if (Math.abs(values[i] - get(columnIndices[i], rowNum)) > effectiveZero)
if (Math.abs(values[i] - get(columnIndices[i], rowNum)) > effectiveZero)
if (Math.abs(values[i] - get(columnIndices[i], rowNum)) > effectiveZero)
/** * {@inheritDoc} * * NOTE: Upon completion this is in the compressed Yale format. * * @param columnIndex {@inheritDoc} * @return {@inheritDoc} */ @Override final public Vector getColumn( final int columnIndex) { if (!isCompressed()) { compress(); } SparseVector result = new SparseVector(numRows); for (int i = 0; i < numRows; ++i) { result.setElement(i, get(i, columnIndex)); } return result; }
/** * {@inheritDoc} * * NOTE: Upon completion this is in the compressed Yale format. * * @param columnIndex {@inheritDoc} * @return {@inheritDoc} */ @Override final public Vector getColumn( final int columnIndex) { if (!isCompressed()) { compress(); } SparseVector result = new SparseVector(numRows); for (int i = 0; i < numRows; ++i) { result.setElement(i, get(i, columnIndex)); } return result; }
/** * {@inheritDoc} * * NOTE: Upon completion this is in the compressed Yale format. * * @param columnIndex {@inheritDoc} * @return {@inheritDoc} */ @Override final public Vector getColumn( final int columnIndex) { if (!isCompressed()) { compress(); } SparseVector result = new SparseVector(numRows); for (int i = 0; i < numRows; ++i) { result.setElement(i, get(i, columnIndex)); } return result; }