[Haskell-cafe] Accelerate package (CUDA). How to actually create an array?
dons00 at gmail.com
Mon May 16 19:05:23 CEST 2011
You might want to read the Repa tutorial:
fromList (Z :. (3::Int)) [1,2,3]
2011/5/16 Grigory Sarnitskiy <sargrigory at ya.ru>:
>> There's fromIArray and fromList . 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
> arr1 = fromList (1,3) [1,2,3] :: Array DIM1 Int
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe