pymel.util.outer

outer(u, v)

outer(u, v) –> MatrixN

Returns the outer product of vectors u and v.

>>> u = VectorN(1.0, 2.0, 3.0)
>>> v = VectorN(10.0, 20.0, 30.0)
>>> outer(u, v)
MatrixN([[10.0, 20.0, 30.0], [20.0, 40.0, 60.0], [30.0, 60.0, 90.0]])
>>> outer(u, [10.0, 20.0, 30.0])
MatrixN([[10.0, 20.0, 30.0], [20.0, 40.0, 60.0], [30.0, 60.0, 90.0]])

Related : see VectorN.outer method.

Previous topic

pymel.util.normal

Next topic

pymel.util.pairIter

Core

Core Modules

Other Modules

This Page