/** * Package-private helper that allows other matrices direct access to * setting the sparse vector rows of this. Be very careful when calling this * -- you have direct access to the data! * * NOTE: Upon completion, this is in the sparse vector format. * * @param i The row index * @param v The vector that to put in the new row */ final void setRowInternal( final int i, final SparseVector v) { if (isCompressed()) { decompress(); } rows[i] = v; }
/** * Package-private helper that allows other matrices direct access to * setting the sparse vector rows of this. Be very careful when calling this * -- you have direct access to the data! * * NOTE: Upon completion, this is in the sparse vector format. * * @param i The row index * @param v The vector that to put in the new row */ final void setRowInternal( final int i, final SparseVector v) { if (isCompressed()) { decompress(); } rows[i] = v; }
/** * Package-private helper that allows other matrices direct access to * setting the sparse vector rows of this. Be very careful when calling this * -- you have direct access to the data! * * NOTE: Upon completion, this is in the sparse vector format. * * @param i The row index * @param v The vector that to put in the new row */ final void setRowInternal( final int i, final SparseVector v) { if (isCompressed()) { decompress(); } rows[i] = v; }
/** * {@inheritDoc} * * NOTE: Upon completion this is in the compressed Yale format. * * @param rowIndex {@inheritDoc} * @param columnIndex {@inheritDoc} * @param value {@inheritDoc} * @throws ArrayIndexOutOfBoundsException if the indices are out of bounds */ @Override final public void setElement( final int rowIndex, final int columnIndex, final double value) { if (isCompressed()) { decompress(); } rows[rowIndex].setElement(columnIndex, value); }
/** * {@inheritDoc} * * NOTE: Upon completion this is in the compressed Yale format. * * @param rowIndex {@inheritDoc} * @param columnIndex {@inheritDoc} * @param value {@inheritDoc} * @throws ArrayIndexOutOfBoundsException if the indices are out of bounds */ @Override final public void setElement( final int rowIndex, final int columnIndex, final double value) { if (isCompressed()) { decompress(); } rows[rowIndex].setElement(columnIndex, value); }
/** * {@inheritDoc} * * NOTE: Upon completion this is in the compressed Yale format. * * @param rowIndex {@inheritDoc} * @param columnIndex {@inheritDoc} * @param value {@inheritDoc} * @throws ArrayIndexOutOfBoundsException if the indices are out of bounds */ @Override final public void setElement( final int rowIndex, final int columnIndex, final double value) { if (isCompressed()) { decompress(); } rows[rowIndex].setElement(columnIndex, value); }