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


add!


Usage

add!(p, r, q)


Signature

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


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


Returns

add!(p, r, q) returns $p + r q$.


Remarks

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


See Also

times!



Manuel Bronstein 2004-06-28