dot#
- Vector.dot(other)[source]#
Calculate dot (inner) product with other.
- Parameters:
- other
VectororVectorArray
- other
- Returns:
- dot_product
floatorndarray If other is type
Vector, returns float.If other is type
VectorArray, returns ndarray.
- dot_product
Examples
>>> vec_a = ap.Vector(1, 2, 3) >>> vec_b = ap.Vector(3, 2, 1) >>> vec_a.dot(vec_b) 10.0