hasktorch-ffi-th-0.0.1.0: src/Torch/FFI/TH/Short/Storage.hs
{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Short.Storage where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
-- | c_data : -> real *
foreign import ccall "THStorage.h THShortStorage_data"
c_data_ :: Ptr C'THShortStorage -> IO (Ptr CShort)
-- | alias of c_data_ with unused argument (for CTHState) to unify backpack signatures.
c_data :: Ptr C'THState -> Ptr C'THShortStorage -> IO (Ptr CShort)
c_data = const c_data_
-- | c_size : -> ptrdiff_t
foreign import ccall "THStorage.h THShortStorage_size"
c_size_ :: Ptr C'THShortStorage -> IO CPtrdiff
-- | alias of c_size_ with unused argument (for CTHState) to unify backpack signatures.
c_size :: Ptr C'THState -> Ptr C'THShortStorage -> IO CPtrdiff
c_size = const c_size_
-- | c_set : -> void
foreign import ccall "THStorage.h THShortStorage_set"
c_set_ :: Ptr C'THShortStorage -> CPtrdiff -> CShort -> IO ()
-- | alias of c_set_ with unused argument (for CTHState) to unify backpack signatures.
c_set :: Ptr C'THState -> Ptr C'THShortStorage -> CPtrdiff -> CShort -> IO ()
c_set = const c_set_
-- | c_get : -> real
foreign import ccall "THStorage.h THShortStorage_get"
c_get_ :: Ptr C'THShortStorage -> CPtrdiff -> IO CShort
-- | alias of c_get_ with unused argument (for CTHState) to unify backpack signatures.
c_get :: Ptr C'THState -> Ptr C'THShortStorage -> CPtrdiff -> IO CShort
c_get = const c_get_
-- | c_new : -> THStorage *
foreign import ccall "THStorage.h THShortStorage_new"
c_new_ :: IO (Ptr C'THShortStorage)
-- | alias of c_new_ with unused argument (for CTHState) to unify backpack signatures.
c_new :: Ptr C'THState -> IO (Ptr C'THShortStorage)
c_new = const c_new_
-- | c_newWithSize : size -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithSize"
c_newWithSize_ :: CPtrdiff -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithSize_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithSize :: Ptr C'THState -> CPtrdiff -> IO (Ptr C'THShortStorage)
c_newWithSize = const c_newWithSize_
-- | c_newWithSize1 : -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithSize1"
c_newWithSize1_ :: CShort -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithSize1_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithSize1 :: Ptr C'THState -> CShort -> IO (Ptr C'THShortStorage)
c_newWithSize1 = const c_newWithSize1_
-- | c_newWithSize2 : -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithSize2"
c_newWithSize2_ :: CShort -> CShort -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithSize2_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithSize2 :: Ptr C'THState -> CShort -> CShort -> IO (Ptr C'THShortStorage)
c_newWithSize2 = const c_newWithSize2_
-- | c_newWithSize3 : -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithSize3"
c_newWithSize3_ :: CShort -> CShort -> CShort -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithSize3_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithSize3 :: Ptr C'THState -> CShort -> CShort -> CShort -> IO (Ptr C'THShortStorage)
c_newWithSize3 = const c_newWithSize3_
-- | c_newWithSize4 : -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithSize4"
c_newWithSize4_ :: CShort -> CShort -> CShort -> CShort -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithSize4_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithSize4 :: Ptr C'THState -> CShort -> CShort -> CShort -> CShort -> IO (Ptr C'THShortStorage)
c_newWithSize4 = const c_newWithSize4_
-- | c_newWithMapping : filename size flags -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithMapping"
c_newWithMapping_ :: Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithMapping_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithMapping :: Ptr C'THState -> Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THShortStorage)
c_newWithMapping = const c_newWithMapping_
-- | c_newWithData : data size -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithData"
c_newWithData_ :: Ptr CShort -> CPtrdiff -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithData_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithData :: Ptr C'THState -> Ptr CShort -> CPtrdiff -> IO (Ptr C'THShortStorage)
c_newWithData = const c_newWithData_
-- | c_newWithAllocator : size allocator allocatorContext -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithAllocator"
c_newWithAllocator_ :: CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithAllocator_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithAllocator :: Ptr C'THState -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THShortStorage)
c_newWithAllocator = const c_newWithAllocator_
-- | c_newWithDataAndAllocator : data size allocator allocatorContext -> THStorage *
foreign import ccall "THStorage.h THShortStorage_newWithDataAndAllocator"
c_newWithDataAndAllocator_ :: Ptr CShort -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THShortStorage)
-- | alias of c_newWithDataAndAllocator_ with unused argument (for CTHState) to unify backpack signatures.
c_newWithDataAndAllocator :: Ptr C'THState -> Ptr CShort -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THShortStorage)
c_newWithDataAndAllocator = const c_newWithDataAndAllocator_
-- | c_setFlag : storage flag -> void
foreign import ccall "THStorage.h THShortStorage_setFlag"
c_setFlag_ :: Ptr C'THShortStorage -> CChar -> IO ()
-- | alias of c_setFlag_ with unused argument (for CTHState) to unify backpack signatures.
c_setFlag :: Ptr C'THState -> Ptr C'THShortStorage -> CChar -> IO ()
c_setFlag = const c_setFlag_
-- | c_clearFlag : storage flag -> void
foreign import ccall "THStorage.h THShortStorage_clearFlag"
c_clearFlag_ :: Ptr C'THShortStorage -> CChar -> IO ()
-- | alias of c_clearFlag_ with unused argument (for CTHState) to unify backpack signatures.
c_clearFlag :: Ptr C'THState -> Ptr C'THShortStorage -> CChar -> IO ()
c_clearFlag = const c_clearFlag_
-- | c_retain : storage -> void
foreign import ccall "THStorage.h THShortStorage_retain"
c_retain_ :: Ptr C'THShortStorage -> IO ()
-- | alias of c_retain_ with unused argument (for CTHState) to unify backpack signatures.
c_retain :: Ptr C'THState -> Ptr C'THShortStorage -> IO ()
c_retain = const c_retain_
-- | c_swap : storage1 storage2 -> void
foreign import ccall "THStorage.h THShortStorage_swap"
c_swap_ :: Ptr C'THShortStorage -> Ptr C'THShortStorage -> IO ()
-- | alias of c_swap_ with unused argument (for CTHState) to unify backpack signatures.
c_swap :: Ptr C'THState -> Ptr C'THShortStorage -> Ptr C'THShortStorage -> IO ()
c_swap = const c_swap_
-- | c_free : storage -> void
foreign import ccall "THStorage.h THShortStorage_free"
c_free_ :: Ptr C'THShortStorage -> IO ()
-- | alias of c_free_ with unused argument (for CTHState) to unify backpack signatures.
c_free :: Ptr C'THState -> Ptr C'THShortStorage -> IO ()
c_free = const c_free_
-- | c_resize : storage size -> void
foreign import ccall "THStorage.h THShortStorage_resize"
c_resize_ :: Ptr C'THShortStorage -> CPtrdiff -> IO ()
-- | alias of c_resize_ with unused argument (for CTHState) to unify backpack signatures.
c_resize :: Ptr C'THState -> Ptr C'THShortStorage -> CPtrdiff -> IO ()
c_resize = const c_resize_
-- | c_fill : storage value -> void
foreign import ccall "THStorage.h THShortStorage_fill"
c_fill_ :: Ptr C'THShortStorage -> CShort -> IO ()
-- | alias of c_fill_ with unused argument (for CTHState) to unify backpack signatures.
c_fill :: Ptr C'THState -> Ptr C'THShortStorage -> CShort -> IO ()
c_fill = const c_fill_
-- | p_data : Pointer to function : -> real *
foreign import ccall "THStorage.h &THShortStorage_data"
p_data :: FunPtr (Ptr C'THShortStorage -> IO (Ptr CShort))
-- | p_size : Pointer to function : -> ptrdiff_t
foreign import ccall "THStorage.h &THShortStorage_size"
p_size :: FunPtr (Ptr C'THShortStorage -> IO CPtrdiff)
-- | p_set : Pointer to function : -> void
foreign import ccall "THStorage.h &THShortStorage_set"
p_set :: FunPtr (Ptr C'THShortStorage -> CPtrdiff -> CShort -> IO ())
-- | p_get : Pointer to function : -> real
foreign import ccall "THStorage.h &THShortStorage_get"
p_get :: FunPtr (Ptr C'THShortStorage -> CPtrdiff -> IO CShort)
-- | p_new : Pointer to function : -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_new"
p_new :: FunPtr (IO (Ptr C'THShortStorage))
-- | p_newWithSize : Pointer to function : size -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithSize"
p_newWithSize :: FunPtr (CPtrdiff -> IO (Ptr C'THShortStorage))
-- | p_newWithSize1 : Pointer to function : -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithSize1"
p_newWithSize1 :: FunPtr (CShort -> IO (Ptr C'THShortStorage))
-- | p_newWithSize2 : Pointer to function : -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithSize2"
p_newWithSize2 :: FunPtr (CShort -> CShort -> IO (Ptr C'THShortStorage))
-- | p_newWithSize3 : Pointer to function : -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithSize3"
p_newWithSize3 :: FunPtr (CShort -> CShort -> CShort -> IO (Ptr C'THShortStorage))
-- | p_newWithSize4 : Pointer to function : -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithSize4"
p_newWithSize4 :: FunPtr (CShort -> CShort -> CShort -> CShort -> IO (Ptr C'THShortStorage))
-- | p_newWithMapping : Pointer to function : filename size flags -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithMapping"
p_newWithMapping :: FunPtr (Ptr CChar -> CPtrdiff -> CInt -> IO (Ptr C'THShortStorage))
-- | p_newWithData : Pointer to function : data size -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithData"
p_newWithData :: FunPtr (Ptr CShort -> CPtrdiff -> IO (Ptr C'THShortStorage))
-- | p_newWithAllocator : Pointer to function : size allocator allocatorContext -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithAllocator"
p_newWithAllocator :: FunPtr (CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THShortStorage))
-- | p_newWithDataAndAllocator : Pointer to function : data size allocator allocatorContext -> THStorage *
foreign import ccall "THStorage.h &THShortStorage_newWithDataAndAllocator"
p_newWithDataAndAllocator :: FunPtr (Ptr CShort -> CPtrdiff -> Ptr C'THAllocator -> Ptr () -> IO (Ptr C'THShortStorage))
-- | p_setFlag : Pointer to function : storage flag -> void
foreign import ccall "THStorage.h &THShortStorage_setFlag"
p_setFlag :: FunPtr (Ptr C'THShortStorage -> CChar -> IO ())
-- | p_clearFlag : Pointer to function : storage flag -> void
foreign import ccall "THStorage.h &THShortStorage_clearFlag"
p_clearFlag :: FunPtr (Ptr C'THShortStorage -> CChar -> IO ())
-- | p_retain : Pointer to function : storage -> void
foreign import ccall "THStorage.h &THShortStorage_retain"
p_retain :: FunPtr (Ptr C'THShortStorage -> IO ())
-- | p_swap : Pointer to function : storage1 storage2 -> void
foreign import ccall "THStorage.h &THShortStorage_swap"
p_swap :: FunPtr (Ptr C'THShortStorage -> Ptr C'THShortStorage -> IO ())
-- | p_free : Pointer to function : storage -> void
foreign import ccall "THStorage.h &THShortStorage_free"
p_free :: FunPtr (Ptr C'THShortStorage -> IO ())
-- | p_resize : Pointer to function : storage size -> void
foreign import ccall "THStorage.h &THShortStorage_resize"
p_resize :: FunPtr (Ptr C'THShortStorage -> CPtrdiff -> IO ())
-- | p_fill : Pointer to function : storage value -> void
foreign import ccall "THStorage.h &THShortStorage_fill"
p_fill :: FunPtr (Ptr C'THShortStorage -> CShort -> IO ())