dot#
- VectorArray.dot(other)[source]#
Calculate dot (inner) product with other.
- Parameters:
- other
VectororVectorArray
- other
- Returns:
- dot_product
ndarray
- dot_product
Examples
>>> vecs_a = ap.VectorArray([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> vecs_b = ap.VectorArray([[7, 8, 9], [4, 5, 6], [1, 2, 3]]) >>> vecs_a.dot(vecs_b) array([50., 77., 50.])