Scale the vector at index by factor.
index
factor
void scale(int index, double factor) { final i = _vectorIndexToBufferIndex(index); buffer[i + 0] *= factor; buffer[i + 1] *= factor; }