dot#

VectorArray.dot(other)[source]#

Calculate dot (inner) product with other.

Parameters:
otherVector or VectorArray
Returns:
dot_productndarray

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.])