Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-31 Thread Friedrich Romstedt
2011/7/29 Benjamin Root ben.r...@ou.edu: I am starting to get very interested in this quaternion concept (and maybe how I could use it for mplot3d), but I have never come across it before (beyond the typical vector math that I am familiar with). Can anybody recommend a good introductory

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-31 Thread Martin Ling
Hi Hans, Sorry, that is actually what I implemented, I just documented it iincorrectly. I have just pushed an update to the README. Thanks for pointing this out! Martin On Sun, Jul 31, 2011 at 07:57:58AM +0200, Hans Meine wrote: Hi Martin, I think it would be more useful if isfinite

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-30 Thread Stéfan van der Walt
Hi Ben On Fri, Jul 29, 2011 at 12:57 PM, Benjamin Root ben.r...@ou.edu wrote: I am starting to get very interested in this quaternion concept (and maybe how I could use it for mplot3d), but I have never come across it before (beyond the typical vector math that I am familiar with).  Can

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-30 Thread Hans Meine
Hi Martin, I think it would be more useful if isfinite returned true if *all* elements were finite. (Opposite of isnan and isinf.) HTH, Hans PS: did not check the complex dtype, hopefully that one's no different. (The above has been typed using a small on-screen keyboard, which may

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Martin Ling
On Thu, Jul 28, 2011 at 09:48:29PM -0500, Robert Love wrote: Quaternions have a handedness or a sign convention. The recently departed Space Shuttle used a Left versor convention while most things, including Space Station, use the right versor convention, in their flight software. Made for

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Charles R Harris
On Fri, Jul 29, 2011 at 9:03 AM, Martin Ling martin-nu...@earth.li wrote: On Thu, Jul 28, 2011 at 09:48:29PM -0500, Robert Love wrote: Quaternions have a handedness or a sign convention. The recently departed Space Shuttle used a Left versor convention while most things, including Space

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Martin Ling
On Fri, Jul 29, 2011 at 09:14:00AM -0600, Charles R Harris wrote: Well, if the shuttle used a different definition then it was out there somewhere. The history of quaternions is rather involved and mixed up with vectors, so it may be the case that there were different conventions.

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Charles R Harris
On Fri, Jul 29, 2011 at 11:07 AM, Martin Ling martin-nu...@earth.li wrote: On Fri, Jul 29, 2011 at 09:14:00AM -0600, Charles R Harris wrote: Well, if the shuttle used a different definition then it was out there somewhere. The history of quaternions is rather involved and mixed up

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Benjamin Root
On Fri, Jul 29, 2011 at 2:52 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Jul 29, 2011 at 11:07 AM, Martin Ling martin-nu...@earth.liwrote: On Fri, Jul 29, 2011 at 09:14:00AM -0600, Charles R Harris wrote: Well, if the shuttle used a different definition then it was

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Charles R Harris
On Fri, Jul 29, 2011 at 1:57 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Jul 29, 2011 at 2:52 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Jul 29, 2011 at 11:07 AM, Martin Ling martin-nu...@earth.liwrote: On Fri, Jul 29, 2011 at 09:14:00AM -0600, Charles R Harris

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-29 Thread Mark Wiebe
On Fri, Jul 29, 2011 at 2:57 PM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Jul 29, 2011 at 2:52 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Jul 29, 2011 at 11:07 AM, Martin Ling martin-nu...@earth.liwrote: On Fri, Jul 29, 2011 at 09:14:00AM -0600, Charles R Harris

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-28 Thread Martin Ling
On Wed, Jul 27, 2011 at 10:29:08PM -0500, Robert Love wrote: To use quaternions I find I often need conversion to/from matrices and to/from Euler angles. Will you add that functionality? Yes, I intend to. Note that these conversions are already available in the standalone (non-dtype)

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-28 Thread Robert Love
On Jul 28, 2011, at 7:42 AM, Martin Ling wrote: On Wed, Jul 27, 2011 at 10:29:08PM -0500, Robert Love wrote: To use quaternions I find I often need conversion to/from matrices and to/from Euler angles. Will you add that functionality? Yes, I intend to. Note that these conversions are

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-28 Thread Robert Kern
On Thu, Jul 28, 2011 at 21:48, Robert Love rblove_li...@comcast.net wrote: On Jul 28, 2011, at 7:42 AM, Martin Ling wrote: On Wed, Jul 27, 2011 at 10:29:08PM -0500, Robert Love wrote: To use quaternions I find I often need conversion to/from matrices and to/from Euler angles.  Will you add

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-28 Thread Charles R Harris
On Thu, Jul 28, 2011 at 8:48 PM, Robert Love rblove_li...@comcast.netwrote: On Jul 28, 2011, at 7:42 AM, Martin Ling wrote: On Wed, Jul 27, 2011 at 10:29:08PM -0500, Robert Love wrote: To use quaternions I find I often need conversion to/from matrices and to/from Euler angles. Will

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-28 Thread Charles R Harris
On Thu, Jul 28, 2011 at 8:48 PM, Robert Love rblove_li...@comcast.netwrote: On Jul 28, 2011, at 7:42 AM, Martin Ling wrote: On Wed, Jul 27, 2011 at 10:29:08PM -0500, Robert Love wrote: To use quaternions I find I often need conversion to/from matrices and to/from Euler angles. Will

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-27 Thread Robert Love
To use quaternions I find I often need conversion to/from matrices and to/from Euler angles. Will you add that functionality? Will you handle the left versor and right versor versions? I have a set of pure python code I've sketched out for my needs (aerospace) but would be happy to have an

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-17 Thread Ralf Gommers
On Sat, Jul 16, 2011 at 4:50 PM, Martin Ling martin-nu...@earth.li wrote: Hi all, I have just pushed a package to GitHub which adds a quaternion dtype to NumPy: https://github.com/martinling/numpy_quaternion Some backstory: on Wednesday I gave a talk at SciPy 2011 about an inertial sensing

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-17 Thread Martin Ling
On Sat, Jul 16, 2011 at 08:16:44PM -0400, Anne Archibald wrote: The next interesting question is, how well does scipy.interpolate deal with them? For really good rotational paths I seem to recall you want specialized splines, but simply interpolating in the quaternion domain is not a bad quick

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-17 Thread Martin Ling
On Sun, Jul 17, 2011 at 05:52:19PM +0200, Ralf Gommers wrote: Looks very interesting. One thing that is surprising to me is that the quaternion dtype is inserted in to the numpy namespace. For dtypes that are planned to be integrated with numpy later on perhaps this makes

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-16 Thread Craig Yoshioka
Wow, that makes for a great howto example. Thanks. On Jul 16, 2011, at 7:50 AM, Martin Ling wrote: Hi all, I have just pushed a package to GitHub which adds a quaternion dtype to NumPy: https://github.com/martinling/numpy_quaternion Some backstory: on Wednesday I gave a talk at SciPy

Re: [Numpy-discussion] Quaternion dtype for NumPy - initial implementation available

2011-07-16 Thread Anne Archibald
What a useful package! Apart from helping all the people who know they need quaternions, this package removes one major family of use cases for vectorized small-matrix operations, namely, 3D rotations. Quaternions are the canonical way to represent orientation and rotation in three dimensions, and