multiplyAdd function

void multiplyAdd({
  1. required double factorA,
  2. required List<double> factorB,
  3. required List<double> dest,
})

Implementation

void multiplyAdd({required double factorA, required List<double> factorB, required List<double> dest})
{
  assert(factorB.length == dest.length);

  for (var i = 0; i < dest.length; i++)
  {
      dest[i] += factorA * factorB[i];
  }
}