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

Grigory Sarnitskiy sargrigory at ya.ru
Mon May 16 18:59:33 CEST 2011


> 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



More information about the Haskell-Cafe mailing list