Quaternion type @ rosettacode.org

Anyone here use/have an opinion about the Quaternion type @ rosettacode.orghttp://rosettacode.org/wiki/Simple_Quaternion_type_and_operations#Python? Or have an opinion about it having derived the type from collections.namedtuple? Anyone have an open-source, numpy-based alternative? Ditto last question for Octonion and/or general n-basis Grassmann (exterior) and/or Clifford Algebras? (rosettacode appears to have none of these). Thanks!
David Goldsmith

Hello David,
There is a numpy-quarterion repo that has served me well in the past. I believe this came out of a SciPy 2011 sprint. See https://github.com/martinling/numpy_quaternion. I hope this helps.
Be Well Anthony
On Thu, Jan 2, 2014 at 12:29 PM, David Goldsmith d.l.goldsmith@gmail.comwrote:
Anyone here use/have an opinion about the Quaternion type @ rosettacode.orghttp://rosettacode.org/wiki/Simple_Quaternion_type_and_operations#Python? Or have an opinion about it having derived the type from collections.namedtuple? Anyone have an open-source, numpy-based alternative? Ditto last question for Octonion and/or general n-basis Grassmann (exterior) and/or Clifford Algebras? (rosettacode appears to have none of these). Thanks!
David Goldsmith
NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

On Thu, 2 Jan 2014 12:29:42 David Goldsmith wrote:
Anyone here use/have an opinion about the Quaternion type @
rosettacode.org<http://rosettacode.org/wiki/Simple_Quaternion_type_and_opera
tions#Python>? Or have an opinion about it having derived the type from collections.namedtuple? Anyone have an open-source, numpy-based alternative? Ditto last question for Octonion and/or general n-basis Grassmann (exterior) and/or Clifford Algebras? (rosettacode appears to have none of these). Thanks!
Hi David, Not Numpy based, but:
GluCat http://sourceforge.net/projects/glucat/ is an open source C++ library for calculations in Clifford algebras, based on the C++ Standard Library and Boost uBLAS. It also includes PyClical, a Python extension module coded in Cython. The PyClical tutorials and demos at http://sourceforge.net/p/glucat/git/ci/master/tree/pyclical/demos/ should give you an idea of how PyClical can be used with Numpy, SciPy and the rest of Python. See also http://sourceforge.net/p/glucat/git/ci/master/tree/README
If you have compilation problems, try the release_0_7_1-patches branch: http://sourceforge.net/p/glucat/git/ci/release_0_7_1-patches/
I am always open to feedback and criticism of this code.
All the best, Paul
participants (3)
-
Anthony Scopatz
-
David Goldsmith
-
Paul Leopardi