JC Coez wrote:
> How could I "generalize" to matrices of rank n ( >2 ) the
> diagonal =i.9 that is mat(i,j,k,...) is 1 if and only if
> 2 indices at least are equal ?

For example:
   disp=: <"2^:(2<[EMAIL PROTECTED])
   d2=: ] ([EMAIL PROTECTED] > [ [EMAIL PROTECTED]@#: ])"1 0 i.
   disp d2 4#4
?

-- 
Raul

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

Reply via email to