dot#

Vector.dot(other)[source]#

Calculate dot (inner) product with other.

Parameters:
otherVector or VectorArray
Returns:
dot_productfloat or ndarray

If other is type Vector, returns float.

If other is type VectorArray, returns ndarray.

Examples

>>> vec_a = ap.Vector(1, 2, 3)
>>> vec_b = ap.Vector(3, 2, 1)
>>> vec_a.dot(vec_b)
10.0