Re: [Jprogramming] Matrix Transformations based on local submatrices

2012-11-17 Thread Raul Miller
On Fri, Nov 16, 2012 at 11:13 PM, Alex Giannakopoulos aeg...@blueyonder.co.uk wrote: However, my concern was not the saving of 1k mem, but a deeper elegance issue. I may be wrong here, I don't know, but I always prefer my data to exist as only one copy, and as many references to it as are

Re: [Jprogramming] Arc consistency in J

2012-11-17 Thread Linda Alvord
Hi Michal, I keep working on your code and I hit a snag? Maybe someone can explain the domain error that I encounter. n=: 5 X=:(?(2#n)$2)*(i.n)/i.n adj=: 13 :'(0y)([:#)1 i.#y' A=:adj X I'm trying to simplify arcsX arcsX =: [: ( @ (,./)) ([ (,..)0 {) ](i.n) arcsX A 0 4