Yes, it works! Thank you!
regs,
Ahti.
John Randall wrote:
The current versions of LAPACK work differently on Windows and Linux. I
also erroneously assumed a sort order on the returned eigenvalues, which
appears true for Linux and false for Windows.
I did post a followup on this, but it seems not to have made it to the
archives.
To calculate the principal eigenvalue you need:
require '~addons/lapack/lapack.ijs'
require '~addons/lapack/dgeev.ijs'
la=:3 : 0
'l c r'=.dgeev_jlapack_ y.
({. \: c){"1 r
)
With your example, this gives
(%+/)la m2
0.0935079 0.152629 0.174427 0.166814 0.154946 0.257677
(%+/) power m2
0.0935079 0.152629 0.174427 0.166814 0.154946 0.257677
Please let me know if this works for you.
Best wishes,
John
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm