/** * Sets the matrix cell at coordinate <tt>index</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @param value the value to be filled into the specified cell. */ public void setQuick(int index, Object value) { //if (debug) if (index<0 || index>=size) checkIndex(index); //int i = index(index); // manually inlined: int i = zero + index*stride; if (value == null) this.elements.removeKey(i); else this.elements.put(i, value); } /**
/** * Sets the matrix cell at coordinate <tt>index</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @param value the value to be filled into the specified cell. */ public void setQuick(int index, Object value) { //if (debug) if (index<0 || index>=size) checkIndex(index); //int i = index(index); //manually inlined: int i = offset + offsets[zero + index*stride]; if (value == null) this.elements.removeKey(i); else this.elements.put(i, value); } /**
/** * Sets the matrix cell at coordinate <tt>[row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int row, int column, Object value) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //int index = index(row,column); //manually inlined: int index = rowZero + row*rowStride + columnZero + column*columnStride; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>index</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @param value the value to be filled into the specified cell. */ public void setQuick(int index, Object value) { //if (debug) if (index<0 || index>=size) checkIndex(index); //int i = index(index); //manually inlined: int i = offset + offsets[zero + index*stride]; if (value == null) this.elements.removeKey(i); else this.elements.put(i, value); } /**
/** * Sets the matrix cell at coordinate <tt>[row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int row, int column, Object value) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //int index = index(row,column); //manually inlined: int index = offset + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>[row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int row, int column, Object value) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //int index = index(row,column); //manually inlined: int index = rowZero + row*rowStride + columnZero + column*columnStride; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>index</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>index<0 || index>=size()</tt>. * * @param index the index of the cell. * @param value the value to be filled into the specified cell. */ public void setQuick(int index, Object value) { //if (debug) if (index<0 || index>=size) checkIndex(index); //int i = index(index); // manually inlined: int i = zero + index*stride; if (value == null) this.elements.removeKey(i); else this.elements.put(i, value); } /**
/** * Sets the matrix cell at coordinate <tt>[row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>0 <= column < columns() && 0 <= row < rows()</tt>. * * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int row, int column, Object value) { //if (debug) if (column<0 || column>=columns || row<0 || row>=rows) throw new IndexOutOfBoundsException("row:"+row+", column:"+column); //int index = index(row,column); //manually inlined: int index = offset + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>[slice,row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column()</tt>. * * @param slice the index of the slice-coordinate. * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int slice, int row, int column, Object value) { //if (debug) if (slice<0 || slice>=slices || row<0 || row>=rows || column<0 || column>=columns) throw new IndexOutOfBoundsException("slice:"+slice+", row:"+row+", column:"+column); //int index = index(slice,row,column); //manually inlined: int index = offset + sliceOffsets[sliceZero + slice*sliceStride] + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>[slice,row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column()</tt>. * * @param slice the index of the slice-coordinate. * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int slice, int row, int column, Object value) { //if (debug) if (slice<0 || slice>=slices || row<0 || row>=rows || column<0 || column>=columns) throw new IndexOutOfBoundsException("slice:"+slice+", row:"+row+", column:"+column); //int index = index(slice,row,column); //manually inlined: int index = sliceZero + slice*sliceStride + rowZero + row*rowStride + columnZero + column*columnStride; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>[slice,row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column()</tt>. * * @param slice the index of the slice-coordinate. * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int slice, int row, int column, Object value) { //if (debug) if (slice<0 || slice>=slices || row<0 || row>=rows || column<0 || column>=columns) throw new IndexOutOfBoundsException("slice:"+slice+", row:"+row+", column:"+column); //int index = index(slice,row,column); //manually inlined: int index = offset + sliceOffsets[sliceZero + slice*sliceStride] + rowOffsets[rowZero + row*rowStride] + columnOffsets[columnZero + column*columnStride]; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**
/** * Sets the matrix cell at coordinate <tt>[slice,row,column]</tt> to the specified value. * * <p>Provided with invalid parameters this method may access illegal indexes without throwing any exception. * <b>You should only use this method when you are absolutely sure that the coordinate is within bounds.</b> * Precondition (unchecked): <tt>slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column()</tt>. * * @param slice the index of the slice-coordinate. * @param row the index of the row-coordinate. * @param column the index of the column-coordinate. * @param value the value to be filled into the specified cell. */ public void setQuick(int slice, int row, int column, Object value) { //if (debug) if (slice<0 || slice>=slices || row<0 || row>=rows || column<0 || column>=columns) throw new IndexOutOfBoundsException("slice:"+slice+", row:"+row+", column:"+column); //int index = index(slice,row,column); //manually inlined: int index = sliceZero + slice*sliceStride + rowZero + row*rowStride + columnZero + column*columnStride; if (value == null) this.elements.removeKey(index); else this.elements.put(index, value); } /**