{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Long.Tensor where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
foreign import ccall "THTensor.h THLongTensor_storage"
c_storage_ :: Ptr C'THLongTensor -> IO (Ptr C'THLongStorage)
c_storage :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THLongStorage)
c_storage = const c_storage_
foreign import ccall "THTensor.h THLongTensor_storageOffset"
c_storageOffset_ :: Ptr C'THLongTensor -> IO CPtrdiff
c_storageOffset :: Ptr C'THState -> Ptr C'THLongTensor -> IO CPtrdiff
c_storageOffset = const c_storageOffset_
foreign import ccall "THTensor.h THLongTensor_nDimension"
c_nDimension_ :: Ptr C'THLongTensor -> IO CInt
c_nDimension :: Ptr C'THState -> Ptr C'THLongTensor -> IO CInt
c_nDimension = const c_nDimension_
foreign import ccall "THTensor.h THLongTensor_size"
c_size_ :: Ptr C'THLongTensor -> CInt -> IO CLLong
c_size :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> IO CLLong
c_size = const c_size_
foreign import ccall "THTensor.h THLongTensor_stride"
c_stride_ :: Ptr C'THLongTensor -> CInt -> IO CLLong
c_stride :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> IO CLLong
c_stride = const c_stride_
foreign import ccall "THTensor.h THLongTensor_newSizeOf"
c_newSizeOf_ :: Ptr C'THLongTensor -> IO (Ptr C'THLongStorage)
c_newSizeOf :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THLongStorage)
c_newSizeOf = const c_newSizeOf_
foreign import ccall "THTensor.h THLongTensor_newStrideOf"
c_newStrideOf_ :: Ptr C'THLongTensor -> IO (Ptr C'THLongStorage)
c_newStrideOf :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THLongStorage)
c_newStrideOf = const c_newStrideOf_
foreign import ccall "THTensor.h THLongTensor_data"
c_data_ :: Ptr C'THLongTensor -> IO (Ptr CLong)
c_data :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr CLong)
c_data = const c_data_
foreign import ccall "THTensor.h THLongTensor_setFlag"
c_setFlag_ :: Ptr C'THLongTensor -> CChar -> IO ()
c_setFlag :: Ptr C'THState -> Ptr C'THLongTensor -> CChar -> IO ()
c_setFlag = const c_setFlag_
foreign import ccall "THTensor.h THLongTensor_clearFlag"
c_clearFlag_ :: Ptr C'THLongTensor -> CChar -> IO ()
c_clearFlag :: Ptr C'THState -> Ptr C'THLongTensor -> CChar -> IO ()
c_clearFlag = const c_clearFlag_
foreign import ccall "THTensor.h THLongTensor_new"
c_new_ :: IO (Ptr C'THLongTensor)
c_new :: Ptr C'THState -> IO (Ptr C'THLongTensor)
c_new = const c_new_
foreign import ccall "THTensor.h THLongTensor_newWithTensor"
c_newWithTensor_ :: Ptr C'THLongTensor -> IO (Ptr C'THLongTensor)
c_newWithTensor :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THLongTensor)
c_newWithTensor = const c_newWithTensor_
foreign import ccall "THTensor.h THLongTensor_newWithStorage"
c_newWithStorage_ :: Ptr C'THLongStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newWithStorage :: Ptr C'THState -> Ptr C'THLongStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newWithStorage = const c_newWithStorage_
foreign import ccall "THTensor.h THLongTensor_newWithStorage1d"
c_newWithStorage1d_ :: Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage1d :: Ptr C'THState -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage1d = const c_newWithStorage1d_
foreign import ccall "THTensor.h THLongTensor_newWithStorage2d"
c_newWithStorage2d_ :: Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage2d :: Ptr C'THState -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage2d = const c_newWithStorage2d_
foreign import ccall "THTensor.h THLongTensor_newWithStorage3d"
c_newWithStorage3d_ :: Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage3d :: Ptr C'THState -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage3d = const c_newWithStorage3d_
foreign import ccall "THTensor.h THLongTensor_newWithStorage4d"
c_newWithStorage4d_ :: Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage4d :: Ptr C'THState -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithStorage4d = const c_newWithStorage4d_
foreign import ccall "THTensor.h THLongTensor_newWithSize"
c_newWithSize_ :: Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newWithSize :: Ptr C'THState -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newWithSize = const c_newWithSize_
foreign import ccall "THTensor.h THLongTensor_newWithSize1d"
c_newWithSize1d_ :: CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize1d :: Ptr C'THState -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize1d = const c_newWithSize1d_
foreign import ccall "THTensor.h THLongTensor_newWithSize2d"
c_newWithSize2d_ :: CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize2d :: Ptr C'THState -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize2d = const c_newWithSize2d_
foreign import ccall "THTensor.h THLongTensor_newWithSize3d"
c_newWithSize3d_ :: CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize3d :: Ptr C'THState -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize3d = const c_newWithSize3d_
foreign import ccall "THTensor.h THLongTensor_newWithSize4d"
c_newWithSize4d_ :: CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize4d :: Ptr C'THState -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newWithSize4d = const c_newWithSize4d_
foreign import ccall "THTensor.h THLongTensor_newClone"
c_newClone_ :: Ptr C'THLongTensor -> IO (Ptr C'THLongTensor)
c_newClone :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THLongTensor)
c_newClone = const c_newClone_
foreign import ccall "THTensor.h THLongTensor_newContiguous"
c_newContiguous_ :: Ptr C'THLongTensor -> IO (Ptr C'THLongTensor)
c_newContiguous :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THLongTensor)
c_newContiguous = const c_newContiguous_
foreign import ccall "THTensor.h THLongTensor_newSelect"
c_newSelect_ :: Ptr C'THLongTensor -> CInt -> CLLong -> IO (Ptr C'THLongTensor)
c_newSelect :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> CLLong -> IO (Ptr C'THLongTensor)
c_newSelect = const c_newSelect_
foreign import ccall "THTensor.h THLongTensor_newNarrow"
c_newNarrow_ :: Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newNarrow :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newNarrow = const c_newNarrow_
foreign import ccall "THTensor.h THLongTensor_newTranspose"
c_newTranspose_ :: Ptr C'THLongTensor -> CInt -> CInt -> IO (Ptr C'THLongTensor)
c_newTranspose :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> CInt -> IO (Ptr C'THLongTensor)
c_newTranspose = const c_newTranspose_
foreign import ccall "THTensor.h THLongTensor_newUnfold"
c_newUnfold_ :: Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newUnfold :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THLongTensor)
c_newUnfold = const c_newUnfold_
foreign import ccall "THTensor.h THLongTensor_newView"
c_newView_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newView :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newView = const c_newView_
foreign import ccall "THTensor.h THLongTensor_newExpand"
c_newExpand_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newExpand :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor)
c_newExpand = const c_newExpand_
foreign import ccall "THTensor.h THLongTensor_expand"
c_expand_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO ()
c_expand :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO ()
c_expand = const c_expand_
foreign import ccall "THTensor.h THLongTensor_expandNd"
c_expandNd_ :: Ptr (Ptr C'THLongTensor) -> Ptr (Ptr C'THLongTensor) -> CInt -> IO ()
c_expandNd :: Ptr C'THState -> Ptr (Ptr C'THLongTensor) -> Ptr (Ptr C'THLongTensor) -> CInt -> IO ()
c_expandNd = const c_expandNd_
foreign import ccall "THTensor.h THLongTensor_resize"
c_resize_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_resize :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_resize = const c_resize_
foreign import ccall "THTensor.h THLongTensor_resizeAs"
c_resizeAs_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_resizeAs :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_resizeAs = const c_resizeAs_
foreign import ccall "THTensor.h THLongTensor_resizeNd"
c_resizeNd_ :: Ptr C'THLongTensor -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_resizeNd :: Ptr C'THState -> Ptr C'THLongTensor -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_resizeNd = const c_resizeNd_
foreign import ccall "THTensor.h THLongTensor_resize1d"
c_resize1d_ :: Ptr C'THLongTensor -> CLLong -> IO ()
c_resize1d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> IO ()
c_resize1d = const c_resize1d_
foreign import ccall "THTensor.h THLongTensor_resize2d"
c_resize2d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> IO ()
c_resize2d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> IO ()
c_resize2d = const c_resize2d_
foreign import ccall "THTensor.h THLongTensor_resize3d"
c_resize3d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> IO ()
c_resize3d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> IO ()
c_resize3d = const c_resize3d_
foreign import ccall "THTensor.h THLongTensor_resize4d"
c_resize4d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize4d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize4d = const c_resize4d_
foreign import ccall "THTensor.h THLongTensor_resize5d"
c_resize5d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize5d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize5d = const c_resize5d_
foreign import ccall "THTensor.h THLongTensor_set"
c_set_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_set :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_set = const c_set_
foreign import ccall "THTensor.h THLongTensor_setStorage"
c_setStorage_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_setStorage :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_setStorage = const c_setStorage_
foreign import ccall "THTensor.h THLongTensor_setStorageNd"
c_setStorageNd_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_setStorageNd :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_setStorageNd = const c_setStorageNd_
foreign import ccall "THTensor.h THLongTensor_setStorage1d"
c_setStorage1d_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> IO ()
c_setStorage1d :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> IO ()
c_setStorage1d = const c_setStorage1d_
foreign import ccall "THTensor.h THLongTensor_setStorage2d"
c_setStorage2d_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage2d :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage2d = const c_setStorage2d_
foreign import ccall "THTensor.h THLongTensor_setStorage3d"
c_setStorage3d_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage3d :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage3d = const c_setStorage3d_
foreign import ccall "THTensor.h THLongTensor_setStorage4d"
c_setStorage4d_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage4d :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage4d = const c_setStorage4d_
foreign import ccall "THTensor.h THLongTensor_narrow"
c_narrow_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO ()
c_narrow :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO ()
c_narrow = const c_narrow_
foreign import ccall "THTensor.h THLongTensor_select"
c_select_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> IO ()
c_select :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> IO ()
c_select = const c_select_
foreign import ccall "THTensor.h THLongTensor_transpose"
c_transpose_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CInt -> IO ()
c_transpose :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CInt -> IO ()
c_transpose = const c_transpose_
foreign import ccall "THTensor.h THLongTensor_unfold"
c_unfold_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO ()
c_unfold :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO ()
c_unfold = const c_unfold_
foreign import ccall "THTensor.h THLongTensor_squeeze"
c_squeeze_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_squeeze :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_squeeze = const c_squeeze_
foreign import ccall "THTensor.h THLongTensor_squeeze1d"
c_squeeze1d_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> IO ()
c_squeeze1d :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> IO ()
c_squeeze1d = const c_squeeze1d_
foreign import ccall "THTensor.h THLongTensor_unsqueeze1d"
c_unsqueeze1d_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> IO ()
c_unsqueeze1d :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> IO ()
c_unsqueeze1d = const c_unsqueeze1d_
foreign import ccall "THTensor.h THLongTensor_isContiguous"
c_isContiguous_ :: Ptr C'THLongTensor -> IO CInt
c_isContiguous :: Ptr C'THState -> Ptr C'THLongTensor -> IO CInt
c_isContiguous = const c_isContiguous_
foreign import ccall "THTensor.h THLongTensor_isSameSizeAs"
c_isSameSizeAs_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO CInt
c_isSameSizeAs :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO CInt
c_isSameSizeAs = const c_isSameSizeAs_
foreign import ccall "THTensor.h THLongTensor_isSetTo"
c_isSetTo_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO CInt
c_isSetTo :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO CInt
c_isSetTo = const c_isSetTo_
foreign import ccall "THTensor.h THLongTensor_isSize"
c_isSize_ :: Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO CInt
c_isSize :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO CInt
c_isSize = const c_isSize_
foreign import ccall "THTensor.h THLongTensor_nElement"
c_nElement_ :: Ptr C'THLongTensor -> IO CPtrdiff
c_nElement :: Ptr C'THState -> Ptr C'THLongTensor -> IO CPtrdiff
c_nElement = const c_nElement_
foreign import ccall "THTensor.h THLongTensor_retain"
c_retain_ :: Ptr C'THLongTensor -> IO ()
c_retain :: Ptr C'THState -> Ptr C'THLongTensor -> IO ()
c_retain = const c_retain_
foreign import ccall "THTensor.h THLongTensor_free"
c_free_ :: Ptr C'THLongTensor -> IO ()
c_free :: Ptr C'THState -> Ptr C'THLongTensor -> IO ()
c_free = const c_free_
foreign import ccall "THTensor.h THLongTensor_freeCopyTo"
c_freeCopyTo_ :: Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_freeCopyTo :: Ptr C'THState -> Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ()
c_freeCopyTo = const c_freeCopyTo_
foreign import ccall "THTensor.h THLongTensor_set1d"
c_set1d_ :: Ptr C'THLongTensor -> CLLong -> CLong -> IO ()
c_set1d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLong -> IO ()
c_set1d = const c_set1d_
foreign import ccall "THTensor.h THLongTensor_set2d"
c_set2d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLong -> IO ()
c_set2d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLong -> IO ()
c_set2d = const c_set2d_
foreign import ccall "THTensor.h THLongTensor_set3d"
c_set3d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLong -> IO ()
c_set3d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLong -> IO ()
c_set3d = const c_set3d_
foreign import ccall "THTensor.h THLongTensor_set4d"
c_set4d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLong -> IO ()
c_set4d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLong -> IO ()
c_set4d = const c_set4d_
foreign import ccall "THTensor.h THLongTensor_get1d"
c_get1d_ :: Ptr C'THLongTensor -> CLLong -> IO CLong
c_get1d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> IO CLong
c_get1d = const c_get1d_
foreign import ccall "THTensor.h THLongTensor_get2d"
c_get2d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> IO CLong
c_get2d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> IO CLong
c_get2d = const c_get2d_
foreign import ccall "THTensor.h THLongTensor_get3d"
c_get3d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> IO CLong
c_get3d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> IO CLong
c_get3d = const c_get3d_
foreign import ccall "THTensor.h THLongTensor_get4d"
c_get4d_ :: Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO CLong
c_get4d :: Ptr C'THState -> Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO CLong
c_get4d = const c_get4d_
foreign import ccall "THTensor.h THLongTensor_desc"
c_desc_ :: Ptr C'THLongTensor -> IO (Ptr C'THDescBuff)
c_desc :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THDescBuff)
c_desc = const c_desc_
foreign import ccall "THTensor.h THLongTensor_sizeDesc"
c_sizeDesc_ :: Ptr C'THLongTensor -> IO (Ptr C'THDescBuff)
c_sizeDesc :: Ptr C'THState -> Ptr C'THLongTensor -> IO (Ptr C'THDescBuff)
c_sizeDesc = const c_sizeDesc_
foreign import ccall "THTensor.h &THLongTensor_storage"
p_storage :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THLongStorage))
foreign import ccall "THTensor.h &THLongTensor_storageOffset"
p_storageOffset :: FunPtr (Ptr C'THLongTensor -> IO CPtrdiff)
foreign import ccall "THTensor.h &THLongTensor_nDimension"
p_nDimension :: FunPtr (Ptr C'THLongTensor -> IO CInt)
foreign import ccall "THTensor.h &THLongTensor_size"
p_size :: FunPtr (Ptr C'THLongTensor -> CInt -> IO CLLong)
foreign import ccall "THTensor.h &THLongTensor_stride"
p_stride :: FunPtr (Ptr C'THLongTensor -> CInt -> IO CLLong)
foreign import ccall "THTensor.h &THLongTensor_newSizeOf"
p_newSizeOf :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THLongStorage))
foreign import ccall "THTensor.h &THLongTensor_newStrideOf"
p_newStrideOf :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THLongStorage))
foreign import ccall "THTensor.h &THLongTensor_data"
p_data :: FunPtr (Ptr C'THLongTensor -> IO (Ptr CLong))
foreign import ccall "THTensor.h &THLongTensor_setFlag"
p_setFlag :: FunPtr (Ptr C'THLongTensor -> CChar -> IO ())
foreign import ccall "THTensor.h &THLongTensor_clearFlag"
p_clearFlag :: FunPtr (Ptr C'THLongTensor -> CChar -> IO ())
foreign import ccall "THTensor.h &THLongTensor_new"
p_new :: FunPtr (IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithTensor"
p_newWithTensor :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithStorage"
p_newWithStorage :: FunPtr (Ptr C'THLongStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithStorage1d"
p_newWithStorage1d :: FunPtr (Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithStorage2d"
p_newWithStorage2d :: FunPtr (Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithStorage3d"
p_newWithStorage3d :: FunPtr (Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithStorage4d"
p_newWithStorage4d :: FunPtr (Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithSize"
p_newWithSize :: FunPtr (Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithSize1d"
p_newWithSize1d :: FunPtr (CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithSize2d"
p_newWithSize2d :: FunPtr (CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithSize3d"
p_newWithSize3d :: FunPtr (CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newWithSize4d"
p_newWithSize4d :: FunPtr (CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newClone"
p_newClone :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newContiguous"
p_newContiguous :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newSelect"
p_newSelect :: FunPtr (Ptr C'THLongTensor -> CInt -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newNarrow"
p_newNarrow :: FunPtr (Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newTranspose"
p_newTranspose :: FunPtr (Ptr C'THLongTensor -> CInt -> CInt -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newUnfold"
p_newUnfold :: FunPtr (Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newView"
p_newView :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_newExpand"
p_newExpand :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO (Ptr C'THLongTensor))
foreign import ccall "THTensor.h &THLongTensor_expand"
p_expand :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THTensor.h &THLongTensor_expandNd"
p_expandNd :: FunPtr (Ptr (Ptr C'THLongTensor) -> Ptr (Ptr C'THLongTensor) -> CInt -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resize"
p_resize :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resizeAs"
p_resizeAs :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resizeNd"
p_resizeNd :: FunPtr (Ptr C'THLongTensor -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resize1d"
p_resize1d :: FunPtr (Ptr C'THLongTensor -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resize2d"
p_resize2d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resize3d"
p_resize3d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resize4d"
p_resize4d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_resize5d"
p_resize5d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_set"
p_set :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ())
foreign import ccall "THTensor.h &THLongTensor_setStorage"
p_setStorage :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THTensor.h &THLongTensor_setStorageNd"
p_setStorageNd :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_setStorage1d"
p_setStorage1d :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_setStorage2d"
p_setStorage2d :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_setStorage3d"
p_setStorage3d :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_setStorage4d"
p_setStorage4d :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_narrow"
p_narrow :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_select"
p_select :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_transpose"
p_transpose :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CInt -> IO ())
foreign import ccall "THTensor.h &THLongTensor_unfold"
p_unfold :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_squeeze"
p_squeeze :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ())
foreign import ccall "THTensor.h &THLongTensor_squeeze1d"
p_squeeze1d :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> IO ())
foreign import ccall "THTensor.h &THLongTensor_unsqueeze1d"
p_unsqueeze1d :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> CInt -> IO ())
foreign import ccall "THTensor.h &THLongTensor_isContiguous"
p_isContiguous :: FunPtr (Ptr C'THLongTensor -> IO CInt)
foreign import ccall "THTensor.h &THLongTensor_isSameSizeAs"
p_isSameSizeAs :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO CInt)
foreign import ccall "THTensor.h &THLongTensor_isSetTo"
p_isSetTo :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO CInt)
foreign import ccall "THTensor.h &THLongTensor_isSize"
p_isSize :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongStorage -> IO CInt)
foreign import ccall "THTensor.h &THLongTensor_nElement"
p_nElement :: FunPtr (Ptr C'THLongTensor -> IO CPtrdiff)
foreign import ccall "THTensor.h &THLongTensor_retain"
p_retain :: FunPtr (Ptr C'THLongTensor -> IO ())
foreign import ccall "THTensor.h &THLongTensor_free"
p_free :: FunPtr (Ptr C'THLongTensor -> IO ())
foreign import ccall "THTensor.h &THLongTensor_freeCopyTo"
p_freeCopyTo :: FunPtr (Ptr C'THLongTensor -> Ptr C'THLongTensor -> IO ())
foreign import ccall "THTensor.h &THLongTensor_set1d"
p_set1d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_set2d"
p_set2d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_set3d"
p_set3d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_set4d"
p_set4d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLong -> IO ())
foreign import ccall "THTensor.h &THLongTensor_get1d"
p_get1d :: FunPtr (Ptr C'THLongTensor -> CLLong -> IO CLong)
foreign import ccall "THTensor.h &THLongTensor_get2d"
p_get2d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> IO CLong)
foreign import ccall "THTensor.h &THLongTensor_get3d"
p_get3d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> IO CLong)
foreign import ccall "THTensor.h &THLongTensor_get4d"
p_get4d :: FunPtr (Ptr C'THLongTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO CLong)
foreign import ccall "THTensor.h &THLongTensor_desc"
p_desc :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THDescBuff))
foreign import ccall "THTensor.h &THLongTensor_sizeDesc"
p_sizeDesc :: FunPtr (Ptr C'THLongTensor -> IO (Ptr C'THDescBuff))