A little shorter:  f2=: =/&i. -


----- Original Message -----
From: Ric Sherlock <[email protected]>
Date: Friday, August 20, 2010 4:27
Subject: Re: [Jprogramming] Creating a matrix (some polish required)
To: 'Programming forum' <[email protected]>

A little more polish:
   flipidm=: - =/&i. ]
   flipidm 4
0 0 0 1
0 0 1 0
0 1 0 0
1 0 0 0

> From: Lippu Esa
> Sent: Friday, 20 August 2010 22:51
> 
> flipidm=.i. at -=/i.
> 
> flipidm 4
> 0 0 0 1
> 0 0 1 0
> 0 1 0 0
> 1 0 0 0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to