next up previous contents index
Next: MachineInteger Up: LinearCombinationType Previous: add!   Contents   Index


times!


Usage

times!(r, p)


Signature

times!: (R, %) $\to$ %


Parameter Type Description
r R A scalar to be multiplied by p
p % An element of the type (to be destroyed)


Returns

Returns the product $r p$.


Remarks

The storage used by p is allowed to be destroyed or reused, so p is lost after this call. This may cause p to be destroyed, so do not use this unless p has been locally allocated, and is thus guaranteed not to share space with other elements. Some functions are not necessarily copying their arguments and can thus create memory aliases.


See Also

$*$,add!



Manuel Bronstein 2004-06-28