klampt.math.vectorops module
Allows treating tuples/lists as vectors
- klampt.math.vectorops.mul(a, b)[source]
Multiply a vector either elementwise with another vector, or with a scalar.
- klampt.math.vectorops.div(a, b)[source]
Elementwise division with another vector, or with a scalar.
- klampt.math.vectorops.unit(a, epsilon=1e-05)[source]
Returns the unit vector in the direction a. If the norm of a is less than epsilon, a is left unchanged.
- klampt.math.vectorops.norm_L2(a)
L2 norm