[Numpy-discussion] Row-wise dot product?

Chris Colbert sccolbert@gmail....
Wed Sep 9 04:57:36 CDT 2009


the way I do my rotations is this:

tmat = rotation matrix
vec = stack of row vectors

rotated_vecs = np.dot(tmat, vec.T).T



On Mon, Sep 7, 2009 at 6:53 PM, T J<tjhnson@gmail.com> wrote:
> On Mon, Sep 7, 2009 at 3:43 PM, T J<tjhnson@gmail.com> wrote:
>> Or perhaps I am just being dense.
>>
>
> Yes.  I just tried to reinvent standard matrix multiplication.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>


More information about the NumPy-Discussion mailing list