Copyright | (c) 2016 Tao He |
---|---|
License | MIT |
Maintainer | sighingnow@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
NDArray module.
- type NDArray = NDArrayHandle
- data Context
- makeNDArray :: [Int] -> IO NDArray
- getNDArrayShape :: NDArray -> IO (Int, [Int])
- defaultContext :: Context
- contextCPU :: Context
- contextGPU :: Context
Data type definitions
type NDArray = NDArrayHandle Source #
NDArray type alias.
Context definition.
DeviceType
- cpu
- gpu
- cpu_pinned
Functions about NDArray
Make a new NDArray with given shape.
Get the shape of given NDArray.
Default contexts
defaultContext :: Context Source #
Default context, use the CPU 0 as device.
contextCPU :: Context Source #
Context for CPU 0.
contextGPU :: Context Source #
Context for GPU 0.