scale method

void scale (int index, double factor)

Scale the vector at index by factor.

Implementation

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