[Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

2011-05-16 Thread Grigory Sarnitskiy
Hello! I'm probing CUDA with Haskell, accelerate package to be exact. Sound stupid, but I couldn't find how to actually construct an array, for example Vector Float. There is quite a number of examples provided with the package, but they seem not simple enough for me just to start. __

Re: [Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

2011-05-16 Thread Felipe Almeida Lessa
On Mon, May 16, 2011 at 1:33 PM, Grigory Sarnitskiy wrote: > Hello! > > I'm probing CUDA with Haskell, accelerate package to be exact. Sound stupid, > but I couldn't find how to actually construct an array, for example Vector > Float. > > There is quite a number of examples provided with the pac

Re: [Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

2011-05-16 Thread Grigory Sarnitskiy
> There's fromIArray and fromList [1].  Does that answer your question? Huh, yes, thank you! But still I don't get it. Neither arr1 = fromList 3 [1,2,3] :: Array DIM1 Int nor arr1 = fromList (1,3) [1,2,3] :: Array DIM1 Int works ___ Haskell-Cafe mai

Re: [Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

2011-05-16 Thread Don Stewart
You might want to read the Repa tutorial: http://www.haskell.org/haskellwiki/Numeric_Haskell:_A_Repa_Tutorial e.g. fromList (Z :. (3::Int)) [1,2,3] 2011/5/16 Grigory Sarnitskiy : >> There's fromIArray and fromList [1].  Does that answer your question? > > Huh, yes, thank you! But still

Re: [Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

2011-05-17 Thread briand
On Mon, 16 May 2011 20:33:12 +0400 Grigory Sarnitskiy wrote: > Hello! > > I'm probing CUDA with Haskell, accelerate package to be exact. Sound stupid, > but I couldn't find how to actually construct an array, for example Vector > Float. > > There is quite a number of examples provided with th