Nice. In FVJ3 I use

spix=:[ # #"_1  NB. super pixel

The _1 means this also works for h by w by 3 arrays of RGB triples in addition to matrices.
Best, Cliff

On 7/16/2014 6:32 PM, 'Pascal Jasmin' via Programming wrote:
spoiling quiz with answer already, neat short fork.

zoom =: [ # #"1


for every cell in original, a 2x2 copy of that cell is made.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
Clifford A. Reiter
Lafayette College, Easton, PA 18042
http://webbox.lafayette.edu/~reiterc/

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

Reply via email to