Vector.dot_vectors

static Vector.dot_vectors(left, right)[source]

Compute the dot product of two lists of vectors.

Parameters
  • left (list) – A list of vectors.

  • right (list) – A list of vectors.

Returns

list – A list of dot products.

Examples

>>> Vector.dot_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]], [[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
[1.0, 4.0]