eig for complex matrix

32 views
Skip to first unread message

Viktar Khamianok

unread,
Oct 24, 2016, 10:50:51 AM10/24/16
to efficient-java-matrix-library-discuss
Hi Peter,


We are porting a matlab robotic framework to java and we stuck because we need eig calculation of complex matrix (for inverse kinematic algorithm).

We need to port the next matlab code (the required result in comments) :

R = [1.0000,         0,         0;
         0,   -1.0000,   -7.346410206643586e-06;
         0,    7.346410206643586e-06,   -1.0000;];

[v, d] = eig(R);

% v =
%    0.0000 + 0.0000i   0.0000 + 0.0000i   1.0000 + 0.0000i
%    0.7071 + 0.0000i   0.7071 + 0.0000i   0.0000 + 0.0000i
%    0.0000 - 0.7071i   0.0000 + 0.7071i   0.0000 + 0.0000i
% d =
%   -1.0000 + 0.0000i   0.0000 + 0.0000i   0.0000 + 0.0000i
%    0.0000 + 0.0000i  -1.0000 - 0.0000i   0.0000 + 0.0000i
%    0.0000 + 0.0000i   0.0000 + 0.0000i   1.0000 + 0.0000i


Is it possible to boost somehow implementing eig calculation of complex matrix in ejml? :)


Best regards,
Viktar

Peter A

unread,
Oct 25, 2016, 12:48:10 AM10/25/16
to efficient-java-mat...@googlegroups.com
Is the input matrix real?  That case is easier to add support for.  Now the bad news, support for complex matrices in general was started a couple of years ago and then halted.  A company I was working for needed it.  I then went to work for another company and there wasn't any need to add more support for complex operations.

- Peter

--
You received this message because you are subscribed to the Google Groups "efficient-java-matrix-library-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to efficient-java-matrix-library-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
"Now, now my good man, this is no time for making enemies."    — Voltaire (1694-1778), on his deathbed in response to a priest asking that he renounce Satan.
Reply all
Reply to author
Forward
0 new messages