Hi,
Le 24/02/2012 13:55, Nicolas Rougier a écrit :
> You should use a (M,N,2) array to store your vectors:
> [...]
> [...]
> numpy.dot(data,rotation)
looking at how numpy.dot generalizes the matrix product* to N-dim
arrays, I came to the same conclusion.

I just suspect that the 'rotation' array should be transposed. (or flip
the sign of theta which is equivalent...)

Best,
Pierre

* from numpy.dot docstring :
""""
dot(a, b) Dot product of two arrays.

For N dimensions it is a sum product over the *last* axis of `a` and
the *second-to-last* of `b`::

    dot(a, b)[i,j,k,m] = sum(a[i,j,:] * b[k,:,m])
""""


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to