Re: [Haskell-cafe] [repa] beginner questions

2012-11-19 Thread Dmitry Malikov
On 11/19/2012 01:21 AM, Dominic Steinitz wrote: Dmitry Malikov gmail.com> writes: Playing around with repa arrays and got some questions. 1) How I can get list of indexes of array that suffice some predicate? > a1 AUnboxed (Z :. 3) (fromList [False,False,True]) it :: Array

Re: [Haskell-cafe] [repa] beginner questions

2012-11-18 Thread Dominic Steinitz
Dmitry Malikov gmail.com> writes: > > Playing around with repa arrays and got some questions. > > 1) How I can get list of indexes of array that suffice some predicate? > > > a1 > AUnboxed (Z :. 3) (fromList [False,False,True]) > it :: Array U (Z :. Int) Bool > > Indexes of ele

[Haskell-cafe] [repa] beginner questions

2012-11-10 Thread Dmitry Malikov
Playing around with repa arrays and got some questions. 1) How I can get list of indexes of array that suffice some predicate? > a1 AUnboxed (Z :. 3) (fromList [False,False,True]) it :: Array U (Z :. Int) Bool Indexes of element that satisfying specific predicate could be obtained