final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
final double[] otherValues = other.getValues(); for (int i = 0; i < otherValues.length; ++i)
@Override public final void plusEquals( final SparseMatrix other) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] += ovals[i]; } }
@Override public void scaledPlusEquals( final SparseMatrix other, final double scaleFactor) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] += ovals[i] * scaleFactor; } }
@Override public final void minusEquals( final SparseMatrix other) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] -= ovals[i]; } }
@Override public void scaledPlusEquals( final SparseMatrix other, final double scaleFactor) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] += ovals[i] * scaleFactor; } }
@Override public final void plusEquals( final SparseMatrix other) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] += ovals[i]; } }
@Override public final void minusEquals( final SparseMatrix other) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] -= ovals[i]; } }
@Override public final void plusEquals( final SparseMatrix other) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] += ovals[i]; } }
@Override public final void minusEquals( final SparseMatrix other) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] -= ovals[i]; } }
@Override public void scaledPlusEquals( final SparseMatrix other, final double scaleFactor) { this.assertSameDimensions(other); if (!other.isCompressed()) { other.compress(); } double[] ovals = other.getValues(); int[] ocolIdxs = other.getColumnIndices(); int[] ofirstRows = other.getFirstInRows(); int rownum = 0; for (int i = 0; i < ovals.length; ++i) { while (ofirstRows[rownum + 1] <= i) { ++rownum; } this.rows[rownum].values[ocolIdxs[i]] += ovals[i] * scaleFactor; } }