next up previous contents
Next: Explicit coercion operators Up: Vectors and vector operators Previous: Vector sets   Contents

Coercion of scalars to vectors

An integer expression is coerced to a vector expression whenever:

The length of the vector representation of an integer is 32 bits. The shorter of the two argument vectors is then padded with zeros before applying the operation.

        [0,1,1] + 17
yields a 32 bit vector representation of the number 20.



2002-10-28