On Fri, Dec 18, 2009 at 1:51 PM, Wayne Watson
<sierra_mtnv...@sbcglobal.net> wrote:
> Is it possible to calculate a dot product in numpy by either notation
> (a ^ b, where ^ is a possible notation) or calling a dot function
> (dot(a,b)? I'm trying to use a column matrix for both "vectors".
> Perhaps, I need to somehow change them to arrays?

Does this do what you want?

>> x
matrix([[1],
        [2],
        [3]])

>> x.T * x
   matrix([[14]])
>> np.dot(x.T,x)
   matrix([[14]])
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to