pymel.core.datatypes.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.core.datatypes.normal

Next topic

pymel.core.datatypes.patchMath

Core

Core Modules

Other Modules

This Page