dot#

AnsMath.dot(vec_a, vec_b)#

Multiply two AnsMath vectors.

Parameters:
vec_aAnsVec

AnsMath vector.

vec_bAnsVec

AnsMath vector.

Returns:
float

Product of multiplying the two vectors.

Examples

>>> v = mm.ones(10)
>>> w = mm.ones(10)
>>> v.dot(w)