A^9, actually:

   +/ . *^:9~ A
 4783807  6972050
10458075 15241882

You can save some matrix multiplies if you analyze the power.

Henry Rich
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of June Kim
> Sent: Monday, August 07, 2006 10:01 PM
> To: Programming forum
> Subject: [Jprogramming] conventional way of matrix power?
> 
>    A=: >1 2;3 4
>    (+/ . *)/ 10 2$A   NB. A^10
>  4783807  6972050
> 10458075 15241882
> 
> Is this conventional in J? (I guess not)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to