Currently I have a program that finds the dot product of two XYZ coordinates, how would I put this into a loop, so that it goes down a list of coordinates and finds the dot prod
import numpy v0 = (6,7,6) vectors = numpy.array([[1,2,3],[4,5,6],[7,8,9]]) dot_products = vectors.dot(v0)
is by far the easiest way to do what you are trying to do imho
and it should be much faster if you have "a lot" of vectors in your vectors list...(for some definition of a lot)