/** * Multiply the values inplace by a scalar and return this * @param value scalar multiplier * @return this */ public SparseFloatArray multiplyInplace(double value) { for (Entry e : entries()) { if (this.isUsed(e.index)) set(e.index, (float)(value * e.value)); } return this; }