Generates quaternion multiplication matrix
PM = quaternion_matrix(p)
quaternion_matrix generates quaternion multiplication matrix.
quaternion_matrix
PM
PM * q = quaternion_multiply(p,q)
q = rand(4,1); p = rand(4,1); // these two routines should give the same result: quaternion_multiply(p,q) quaternion_matrix(p) * q
http://siptoolbox.sf.net