File kernel/src/utils/SiconosAlgebra/SiconosAlgebraScal.hpp

Go to the source code of this file

Functions

void scal(double a, const SiconosMatrix &A, SiconosMatrix &B, bool = true)

multiplication of a matrix by a scalar, B = a*A (init = true) or B += a*A (init = false)

Parameters
  • a: a double

  • A: a SiconosMatrix

  • [inout] B: a SiconosMatrix

  • init: a bool