Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
A package of type aliases to satisfy a backpack Torch.Sig.Types signature.
Synopsis
- type CStorage = CIntStorage
- type CTensor = CIntTensor
- type CReal = CInt
- type CAccReal = CLong
- type HsReal = Int32
- type HsAccReal = Int64
- real2acc :: HsReal -> HsAccReal
- acc2real :: HsAccReal -> HsReal
- hs2cReal :: HsReal -> CReal
- hs2cAccReal :: HsAccReal -> CAccReal
- c2hsReal :: CReal -> HsReal
- c2hsAccReal :: CAccReal -> HsAccReal
- i2hsReal :: Integral i => i -> HsReal
- type Storage = IntStorage
- cstorage :: IntStorage -> ForeignPtr CIntStorage
- storage :: ForeignPtr CState -> ForeignPtr CIntStorage -> IntStorage
- storageState :: IntStorage -> (ForeignPtr CState, ForeignPtr CIntStorage)
- storageStateRef :: IntStorage -> ForeignPtr CState
- type Dynamic = IntDynamic
- ctensor :: IntDynamic -> ForeignPtr CIntTensor
- dynamic :: ForeignPtr CState -> ForeignPtr CIntTensor -> IntDynamic
- dynamicState :: IntDynamic -> (ForeignPtr CState, ForeignPtr CIntTensor)
- dynamicStateRef :: IntDynamic -> ForeignPtr CState
- type Tensor = IntTensor
- asDynamic :: IntTensor ds -> IntDynamic
- asStatic :: IntDynamic -> IntTensor ds
Documentation
type CStorage = CIntStorage Source #
type alias of CIntStorage
type CTensor = CIntTensor Source #
type alias of CIntTensor
i2hsReal :: Integral i => i -> HsReal Source #
convert an integral type to its hask-level representation
type Storage = IntStorage Source #
type alias to IntStorage
cstorage :: IntStorage -> ForeignPtr CIntStorage Source #
get the C-level representation of a IntStorage
out of intStorageState
storage :: ForeignPtr CState -> ForeignPtr CIntStorage -> IntStorage Source #
alias to intStorage
storageState :: IntStorage -> (ForeignPtr CState, ForeignPtr CIntStorage) Source #
alias to intStorageState
storageStateRef :: IntStorage -> ForeignPtr CState Source #
get the C-level representation of the CState
from a IntStorage
out of intStorageState
type Dynamic = IntDynamic Source #
type alias to IntDynamic
ctensor :: IntDynamic -> ForeignPtr CIntTensor Source #
get the C-level representation of a IntDynamic
out of intDynamicState
dynamic :: ForeignPtr CState -> ForeignPtr CIntTensor -> IntDynamic Source #
alias to intDynamic
dynamicState :: IntDynamic -> (ForeignPtr CState, ForeignPtr CIntTensor) Source #
alias to intDynamicState
dynamicStateRef :: IntDynamic -> ForeignPtr CState Source #
get the C-level representation of the CState
from a IntDynamic
out of intDynamicState
asDynamic :: IntTensor ds -> IntDynamic Source #
type alias to intAsDynamic
asStatic :: IntDynamic -> IntTensor ds Source #
type alias to intAsStatic