scale method

void scale(
  1. int index,
  2. double factor
)

Scale the vector at index by factor.

Implementation

void scale(int index, double factor) {
  final i = _vectorIndexToBufferIndex(index);
  buffer[i + 0] *= factor;
  buffer[i + 1] *= factor;
}