[Jprogramming] eigenvalues

Raul Miller rauldmiller at gmail.com
Mon Jun 11 10:05:52 HKT 2012


I am looking for a concise expression to find eigenvalues in J (for
small matrices)

lapack is not universally available, so I am ignoring it.

Here's the best I have been able to find (loosely based on an "At Play
With J" article)

ev=: 1 {:: [: p.@> [: -&.>/ .(+//.@(*/)&.>) ] <@,"0 -@=@i.@#

Is there some way to eliminate the boxing and unboxing here?

Thanks,

-- 
Raul


More information about the Programming mailing list