Re: [Jprogramming] Submatrices

2019-12-12 Thread Nimp O
: [Jprogramming] Submatrices ({. ,.&.> }.)"1@:((1 1,:2 1)&(<;._3)) a Henry Rich On 12/11/2019 6:43 PM, Nimp O wrote: > Hello everyone, > > > Given > ]a=: 3 4 $ 1 1 1 _1 4 2 1 _1 9 3 1 1 > > > 1 1 1 _1 > > 4 2 1 _1 > > 9 3 1 1 > > I wa

Re: [Jprogramming] Submatrices

2019-12-11 Thread Henry Rich
   ({. ,.&.> }.)"1@:((1 1,:2 1)&(<;._3)) a Henry Rich On 12/11/2019 6:43 PM, Nimp O wrote: Hello everyone, Given ]a=: 3 4 $ 1 1 1 _1 4 2 1 _1 9 3 1 1 1 1 1 _1 4 2 1 _1 9 3 1 1 I want to find the submatrices: f a ┌───┬───┬┐ │1 1│1 1│1 _1│ │4 2│4 1│4 _1│ ├───┼───┼┤ │4 2│4 1│4

Re: [Jprogramming] Submatrices

2019-12-11 Thread Ben Gorte
For a moment I was thinking you wanted 2 2 < ;. _3 a ┌───┬───┬┐ │1 1│1 1│1 _1│ │4 2│2 1│1 _1│ ├───┼───┼┤ │4 2│2 1│1 _1│ │9 3│3 1│1 1│ └───┴───┴┘ but you didn't. How is your selection of submatrices defined? Ben On Thu, 12 Dec 2019 at 10:43, Nimp O wrote: > Hello everyo

[Jprogramming] Submatrices

2019-12-11 Thread Nimp O
Hello everyone, Given ]a=: 3 4 $ 1 1 1 _1 4 2 1 _1 9 3 1 1 1 1 1 _1 4 2 1 _1 9 3 1 1 I want to find the submatrices: f a ┌───┬───┬┐ │1 1│1 1│1 _1│ │4 2│4 1│4 _1│ ├───┼───┼┤ │4 2│4 1│4 _1│ │9 3│9 1│9 1│ └───┴───┴┘ I have a quite lengthy solution for this task. I was wonderin