{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Char.Tensor where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
foreign import ccall "THTensor.h THCharTensor_storage"
c_storage_ :: Ptr C'THCharTensor -> IO (Ptr C'THCharStorage)
c_storage :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THCharStorage)
c_storage = const c_storage_
foreign import ccall "THTensor.h THCharTensor_storageOffset"
c_storageOffset_ :: Ptr C'THCharTensor -> IO CPtrdiff
c_storageOffset :: Ptr C'THState -> Ptr C'THCharTensor -> IO CPtrdiff
c_storageOffset = const c_storageOffset_
foreign import ccall "THTensor.h THCharTensor_nDimension"
c_nDimension_ :: Ptr C'THCharTensor -> IO CInt
c_nDimension :: Ptr C'THState -> Ptr C'THCharTensor -> IO CInt
c_nDimension = const c_nDimension_
foreign import ccall "THTensor.h THCharTensor_size"
c_size_ :: Ptr C'THCharTensor -> CInt -> IO CLLong
c_size :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> IO CLLong
c_size = const c_size_
foreign import ccall "THTensor.h THCharTensor_stride"
c_stride_ :: Ptr C'THCharTensor -> CInt -> IO CLLong
c_stride :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> IO CLLong
c_stride = const c_stride_
foreign import ccall "THTensor.h THCharTensor_newSizeOf"
c_newSizeOf_ :: Ptr C'THCharTensor -> IO (Ptr C'THLongStorage)
c_newSizeOf :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THLongStorage)
c_newSizeOf = const c_newSizeOf_
foreign import ccall "THTensor.h THCharTensor_newStrideOf"
c_newStrideOf_ :: Ptr C'THCharTensor -> IO (Ptr C'THLongStorage)
c_newStrideOf :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THLongStorage)
c_newStrideOf = const c_newStrideOf_
foreign import ccall "THTensor.h THCharTensor_data"
c_data_ :: Ptr C'THCharTensor -> IO (Ptr CChar)
c_data :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr CChar)
c_data = const c_data_
foreign import ccall "THTensor.h THCharTensor_setFlag"
c_setFlag_ :: Ptr C'THCharTensor -> CChar -> IO ()
c_setFlag :: Ptr C'THState -> Ptr C'THCharTensor -> CChar -> IO ()
c_setFlag = const c_setFlag_
foreign import ccall "THTensor.h THCharTensor_clearFlag"
c_clearFlag_ :: Ptr C'THCharTensor -> CChar -> IO ()
c_clearFlag :: Ptr C'THState -> Ptr C'THCharTensor -> CChar -> IO ()
c_clearFlag = const c_clearFlag_
foreign import ccall "THTensor.h THCharTensor_new"
c_new_ :: IO (Ptr C'THCharTensor)
c_new :: Ptr C'THState -> IO (Ptr C'THCharTensor)
c_new = const c_new_
foreign import ccall "THTensor.h THCharTensor_newWithTensor"
c_newWithTensor_ :: Ptr C'THCharTensor -> IO (Ptr C'THCharTensor)
c_newWithTensor :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THCharTensor)
c_newWithTensor = const c_newWithTensor_
foreign import ccall "THTensor.h THCharTensor_newWithStorage"
c_newWithStorage_ :: Ptr C'THCharStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newWithStorage :: Ptr C'THState -> Ptr C'THCharStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newWithStorage = const c_newWithStorage_
foreign import ccall "THTensor.h THCharTensor_newWithStorage1d"
c_newWithStorage1d_ :: Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage1d :: Ptr C'THState -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage1d = const c_newWithStorage1d_
foreign import ccall "THTensor.h THCharTensor_newWithStorage2d"
c_newWithStorage2d_ :: Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage2d :: Ptr C'THState -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage2d = const c_newWithStorage2d_
foreign import ccall "THTensor.h THCharTensor_newWithStorage3d"
c_newWithStorage3d_ :: Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage3d :: Ptr C'THState -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage3d = const c_newWithStorage3d_
foreign import ccall "THTensor.h THCharTensor_newWithStorage4d"
c_newWithStorage4d_ :: Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage4d :: Ptr C'THState -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithStorage4d = const c_newWithStorage4d_
foreign import ccall "THTensor.h THCharTensor_newWithSize"
c_newWithSize_ :: Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newWithSize :: Ptr C'THState -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newWithSize = const c_newWithSize_
foreign import ccall "THTensor.h THCharTensor_newWithSize1d"
c_newWithSize1d_ :: CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize1d :: Ptr C'THState -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize1d = const c_newWithSize1d_
foreign import ccall "THTensor.h THCharTensor_newWithSize2d"
c_newWithSize2d_ :: CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize2d :: Ptr C'THState -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize2d = const c_newWithSize2d_
foreign import ccall "THTensor.h THCharTensor_newWithSize3d"
c_newWithSize3d_ :: CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize3d :: Ptr C'THState -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize3d = const c_newWithSize3d_
foreign import ccall "THTensor.h THCharTensor_newWithSize4d"
c_newWithSize4d_ :: CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize4d :: Ptr C'THState -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newWithSize4d = const c_newWithSize4d_
foreign import ccall "THTensor.h THCharTensor_newClone"
c_newClone_ :: Ptr C'THCharTensor -> IO (Ptr C'THCharTensor)
c_newClone :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THCharTensor)
c_newClone = const c_newClone_
foreign import ccall "THTensor.h THCharTensor_newContiguous"
c_newContiguous_ :: Ptr C'THCharTensor -> IO (Ptr C'THCharTensor)
c_newContiguous :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THCharTensor)
c_newContiguous = const c_newContiguous_
foreign import ccall "THTensor.h THCharTensor_newSelect"
c_newSelect_ :: Ptr C'THCharTensor -> CInt -> CLLong -> IO (Ptr C'THCharTensor)
c_newSelect :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> CLLong -> IO (Ptr C'THCharTensor)
c_newSelect = const c_newSelect_
foreign import ccall "THTensor.h THCharTensor_newNarrow"
c_newNarrow_ :: Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newNarrow :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newNarrow = const c_newNarrow_
foreign import ccall "THTensor.h THCharTensor_newTranspose"
c_newTranspose_ :: Ptr C'THCharTensor -> CInt -> CInt -> IO (Ptr C'THCharTensor)
c_newTranspose :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> CInt -> IO (Ptr C'THCharTensor)
c_newTranspose = const c_newTranspose_
foreign import ccall "THTensor.h THCharTensor_newUnfold"
c_newUnfold_ :: Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newUnfold :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THCharTensor)
c_newUnfold = const c_newUnfold_
foreign import ccall "THTensor.h THCharTensor_newView"
c_newView_ :: Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newView :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newView = const c_newView_
foreign import ccall "THTensor.h THCharTensor_newExpand"
c_newExpand_ :: Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newExpand :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor)
c_newExpand = const c_newExpand_
foreign import ccall "THTensor.h THCharTensor_expand"
c_expand_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO ()
c_expand :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO ()
c_expand = const c_expand_
foreign import ccall "THTensor.h THCharTensor_expandNd"
c_expandNd_ :: Ptr (Ptr C'THCharTensor) -> Ptr (Ptr C'THCharTensor) -> CInt -> IO ()
c_expandNd :: Ptr C'THState -> Ptr (Ptr C'THCharTensor) -> Ptr (Ptr C'THCharTensor) -> CInt -> IO ()
c_expandNd = const c_expandNd_
foreign import ccall "THTensor.h THCharTensor_resize"
c_resize_ :: Ptr C'THCharTensor -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_resize :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_resize = const c_resize_
foreign import ccall "THTensor.h THCharTensor_resizeAs"
c_resizeAs_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_resizeAs :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_resizeAs = const c_resizeAs_
foreign import ccall "THTensor.h THCharTensor_resizeNd"
c_resizeNd_ :: Ptr C'THCharTensor -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_resizeNd :: Ptr C'THState -> Ptr C'THCharTensor -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_resizeNd = const c_resizeNd_
foreign import ccall "THTensor.h THCharTensor_resize1d"
c_resize1d_ :: Ptr C'THCharTensor -> CLLong -> IO ()
c_resize1d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> IO ()
c_resize1d = const c_resize1d_
foreign import ccall "THTensor.h THCharTensor_resize2d"
c_resize2d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> IO ()
c_resize2d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> IO ()
c_resize2d = const c_resize2d_
foreign import ccall "THTensor.h THCharTensor_resize3d"
c_resize3d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> IO ()
c_resize3d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> IO ()
c_resize3d = const c_resize3d_
foreign import ccall "THTensor.h THCharTensor_resize4d"
c_resize4d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize4d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize4d = const c_resize4d_
foreign import ccall "THTensor.h THCharTensor_resize5d"
c_resize5d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize5d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_resize5d = const c_resize5d_
foreign import ccall "THTensor.h THCharTensor_set"
c_set_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_set :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_set = const c_set_
foreign import ccall "THTensor.h THCharTensor_setStorage"
c_setStorage_ :: Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_setStorage :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ()
c_setStorage = const c_setStorage_
foreign import ccall "THTensor.h THCharTensor_setStorageNd"
c_setStorageNd_ :: Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_setStorageNd :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ()
c_setStorageNd = const c_setStorageNd_
foreign import ccall "THTensor.h THCharTensor_setStorage1d"
c_setStorage1d_ :: Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> IO ()
c_setStorage1d :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> IO ()
c_setStorage1d = const c_setStorage1d_
foreign import ccall "THTensor.h THCharTensor_setStorage2d"
c_setStorage2d_ :: Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage2d :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage2d = const c_setStorage2d_
foreign import ccall "THTensor.h THCharTensor_setStorage3d"
c_setStorage3d_ :: Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage3d :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage3d = const c_setStorage3d_
foreign import ccall "THTensor.h THCharTensor_setStorage4d"
c_setStorage4d_ :: Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage4d :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ()
c_setStorage4d = const c_setStorage4d_
foreign import ccall "THTensor.h THCharTensor_narrow"
c_narrow_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO ()
c_narrow :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO ()
c_narrow = const c_narrow_
foreign import ccall "THTensor.h THCharTensor_select"
c_select_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> IO ()
c_select :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> IO ()
c_select = const c_select_
foreign import ccall "THTensor.h THCharTensor_transpose"
c_transpose_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CInt -> IO ()
c_transpose :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CInt -> IO ()
c_transpose = const c_transpose_
foreign import ccall "THTensor.h THCharTensor_unfold"
c_unfold_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO ()
c_unfold :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO ()
c_unfold = const c_unfold_
foreign import ccall "THTensor.h THCharTensor_squeeze"
c_squeeze_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_squeeze :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_squeeze = const c_squeeze_
foreign import ccall "THTensor.h THCharTensor_squeeze1d"
c_squeeze1d_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> IO ()
c_squeeze1d :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> IO ()
c_squeeze1d = const c_squeeze1d_
foreign import ccall "THTensor.h THCharTensor_unsqueeze1d"
c_unsqueeze1d_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> IO ()
c_unsqueeze1d :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> IO ()
c_unsqueeze1d = const c_unsqueeze1d_
foreign import ccall "THTensor.h THCharTensor_isContiguous"
c_isContiguous_ :: Ptr C'THCharTensor -> IO CInt
c_isContiguous :: Ptr C'THState -> Ptr C'THCharTensor -> IO CInt
c_isContiguous = const c_isContiguous_
foreign import ccall "THTensor.h THCharTensor_isSameSizeAs"
c_isSameSizeAs_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO CInt
c_isSameSizeAs :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO CInt
c_isSameSizeAs = const c_isSameSizeAs_
foreign import ccall "THTensor.h THCharTensor_isSetTo"
c_isSetTo_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO CInt
c_isSetTo :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO CInt
c_isSetTo = const c_isSetTo_
foreign import ccall "THTensor.h THCharTensor_isSize"
c_isSize_ :: Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO CInt
c_isSize :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO CInt
c_isSize = const c_isSize_
foreign import ccall "THTensor.h THCharTensor_nElement"
c_nElement_ :: Ptr C'THCharTensor -> IO CPtrdiff
c_nElement :: Ptr C'THState -> Ptr C'THCharTensor -> IO CPtrdiff
c_nElement = const c_nElement_
foreign import ccall "THTensor.h THCharTensor_retain"
c_retain_ :: Ptr C'THCharTensor -> IO ()
c_retain :: Ptr C'THState -> Ptr C'THCharTensor -> IO ()
c_retain = const c_retain_
foreign import ccall "THTensor.h THCharTensor_free"
c_free_ :: Ptr C'THCharTensor -> IO ()
c_free :: Ptr C'THState -> Ptr C'THCharTensor -> IO ()
c_free = const c_free_
foreign import ccall "THTensor.h THCharTensor_freeCopyTo"
c_freeCopyTo_ :: Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_freeCopyTo :: Ptr C'THState -> Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ()
c_freeCopyTo = const c_freeCopyTo_
foreign import ccall "THTensor.h THCharTensor_set1d"
c_set1d_ :: Ptr C'THCharTensor -> CLLong -> CChar -> IO ()
c_set1d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CChar -> IO ()
c_set1d = const c_set1d_
foreign import ccall "THTensor.h THCharTensor_set2d"
c_set2d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CChar -> IO ()
c_set2d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CChar -> IO ()
c_set2d = const c_set2d_
foreign import ccall "THTensor.h THCharTensor_set3d"
c_set3d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CChar -> IO ()
c_set3d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CChar -> IO ()
c_set3d = const c_set3d_
foreign import ccall "THTensor.h THCharTensor_set4d"
c_set4d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CChar -> IO ()
c_set4d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CChar -> IO ()
c_set4d = const c_set4d_
foreign import ccall "THTensor.h THCharTensor_get1d"
c_get1d_ :: Ptr C'THCharTensor -> CLLong -> IO CChar
c_get1d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> IO CChar
c_get1d = const c_get1d_
foreign import ccall "THTensor.h THCharTensor_get2d"
c_get2d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> IO CChar
c_get2d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> IO CChar
c_get2d = const c_get2d_
foreign import ccall "THTensor.h THCharTensor_get3d"
c_get3d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> IO CChar
c_get3d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> IO CChar
c_get3d = const c_get3d_
foreign import ccall "THTensor.h THCharTensor_get4d"
c_get4d_ :: Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO CChar
c_get4d :: Ptr C'THState -> Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO CChar
c_get4d = const c_get4d_
foreign import ccall "THTensor.h THCharTensor_desc"
c_desc_ :: Ptr C'THCharTensor -> IO (Ptr C'THDescBuff)
c_desc :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THDescBuff)
c_desc = const c_desc_
foreign import ccall "THTensor.h THCharTensor_sizeDesc"
c_sizeDesc_ :: Ptr C'THCharTensor -> IO (Ptr C'THDescBuff)
c_sizeDesc :: Ptr C'THState -> Ptr C'THCharTensor -> IO (Ptr C'THDescBuff)
c_sizeDesc = const c_sizeDesc_
foreign import ccall "THTensor.h &THCharTensor_storage"
p_storage :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THCharStorage))
foreign import ccall "THTensor.h &THCharTensor_storageOffset"
p_storageOffset :: FunPtr (Ptr C'THCharTensor -> IO CPtrdiff)
foreign import ccall "THTensor.h &THCharTensor_nDimension"
p_nDimension :: FunPtr (Ptr C'THCharTensor -> IO CInt)
foreign import ccall "THTensor.h &THCharTensor_size"
p_size :: FunPtr (Ptr C'THCharTensor -> CInt -> IO CLLong)
foreign import ccall "THTensor.h &THCharTensor_stride"
p_stride :: FunPtr (Ptr C'THCharTensor -> CInt -> IO CLLong)
foreign import ccall "THTensor.h &THCharTensor_newSizeOf"
p_newSizeOf :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THLongStorage))
foreign import ccall "THTensor.h &THCharTensor_newStrideOf"
p_newStrideOf :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THLongStorage))
foreign import ccall "THTensor.h &THCharTensor_data"
p_data :: FunPtr (Ptr C'THCharTensor -> IO (Ptr CChar))
foreign import ccall "THTensor.h &THCharTensor_setFlag"
p_setFlag :: FunPtr (Ptr C'THCharTensor -> CChar -> IO ())
foreign import ccall "THTensor.h &THCharTensor_clearFlag"
p_clearFlag :: FunPtr (Ptr C'THCharTensor -> CChar -> IO ())
foreign import ccall "THTensor.h &THCharTensor_new"
p_new :: FunPtr (IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithTensor"
p_newWithTensor :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithStorage"
p_newWithStorage :: FunPtr (Ptr C'THCharStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithStorage1d"
p_newWithStorage1d :: FunPtr (Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithStorage2d"
p_newWithStorage2d :: FunPtr (Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithStorage3d"
p_newWithStorage3d :: FunPtr (Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithStorage4d"
p_newWithStorage4d :: FunPtr (Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithSize"
p_newWithSize :: FunPtr (Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithSize1d"
p_newWithSize1d :: FunPtr (CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithSize2d"
p_newWithSize2d :: FunPtr (CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithSize3d"
p_newWithSize3d :: FunPtr (CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newWithSize4d"
p_newWithSize4d :: FunPtr (CLLong -> CLLong -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newClone"
p_newClone :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newContiguous"
p_newContiguous :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newSelect"
p_newSelect :: FunPtr (Ptr C'THCharTensor -> CInt -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newNarrow"
p_newNarrow :: FunPtr (Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newTranspose"
p_newTranspose :: FunPtr (Ptr C'THCharTensor -> CInt -> CInt -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newUnfold"
p_newUnfold :: FunPtr (Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newView"
p_newView :: FunPtr (Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_newExpand"
p_newExpand :: FunPtr (Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO (Ptr C'THCharTensor))
foreign import ccall "THTensor.h &THCharTensor_expand"
p_expand :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THTensor.h &THCharTensor_expandNd"
p_expandNd :: FunPtr (Ptr (Ptr C'THCharTensor) -> Ptr (Ptr C'THCharTensor) -> CInt -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resize"
p_resize :: FunPtr (Ptr C'THCharTensor -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resizeAs"
p_resizeAs :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resizeNd"
p_resizeNd :: FunPtr (Ptr C'THCharTensor -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resize1d"
p_resize1d :: FunPtr (Ptr C'THCharTensor -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resize2d"
p_resize2d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resize3d"
p_resize3d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resize4d"
p_resize4d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_resize5d"
p_resize5d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_set"
p_set :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ())
foreign import ccall "THTensor.h &THCharTensor_setStorage"
p_setStorage :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> Ptr C'THLongStorage -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THTensor.h &THCharTensor_setStorageNd"
p_setStorageNd :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CInt -> Ptr CLLong -> Ptr CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_setStorage1d"
p_setStorage1d :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_setStorage2d"
p_setStorage2d :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_setStorage3d"
p_setStorage3d :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_setStorage4d"
p_setStorage4d :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharStorage -> CPtrdiff -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_narrow"
p_narrow :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_select"
p_select :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_transpose"
p_transpose :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CInt -> IO ())
foreign import ccall "THTensor.h &THCharTensor_unfold"
p_unfold :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensor.h &THCharTensor_squeeze"
p_squeeze :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ())
foreign import ccall "THTensor.h &THCharTensor_squeeze1d"
p_squeeze1d :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> IO ())
foreign import ccall "THTensor.h &THCharTensor_unsqueeze1d"
p_unsqueeze1d :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> CInt -> IO ())
foreign import ccall "THTensor.h &THCharTensor_isContiguous"
p_isContiguous :: FunPtr (Ptr C'THCharTensor -> IO CInt)
foreign import ccall "THTensor.h &THCharTensor_isSameSizeAs"
p_isSameSizeAs :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO CInt)
foreign import ccall "THTensor.h &THCharTensor_isSetTo"
p_isSetTo :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO CInt)
foreign import ccall "THTensor.h &THCharTensor_isSize"
p_isSize :: FunPtr (Ptr C'THCharTensor -> Ptr C'THLongStorage -> IO CInt)
foreign import ccall "THTensor.h &THCharTensor_nElement"
p_nElement :: FunPtr (Ptr C'THCharTensor -> IO CPtrdiff)
foreign import ccall "THTensor.h &THCharTensor_retain"
p_retain :: FunPtr (Ptr C'THCharTensor -> IO ())
foreign import ccall "THTensor.h &THCharTensor_free"
p_free :: FunPtr (Ptr C'THCharTensor -> IO ())
foreign import ccall "THTensor.h &THCharTensor_freeCopyTo"
p_freeCopyTo :: FunPtr (Ptr C'THCharTensor -> Ptr C'THCharTensor -> IO ())
foreign import ccall "THTensor.h &THCharTensor_set1d"
p_set1d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CChar -> IO ())
foreign import ccall "THTensor.h &THCharTensor_set2d"
p_set2d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CChar -> IO ())
foreign import ccall "THTensor.h &THCharTensor_set3d"
p_set3d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CChar -> IO ())
foreign import ccall "THTensor.h &THCharTensor_set4d"
p_set4d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> CChar -> IO ())
foreign import ccall "THTensor.h &THCharTensor_get1d"
p_get1d :: FunPtr (Ptr C'THCharTensor -> CLLong -> IO CChar)
foreign import ccall "THTensor.h &THCharTensor_get2d"
p_get2d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> IO CChar)
foreign import ccall "THTensor.h &THCharTensor_get3d"
p_get3d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> IO CChar)
foreign import ccall "THTensor.h &THCharTensor_get4d"
p_get4d :: FunPtr (Ptr C'THCharTensor -> CLLong -> CLLong -> CLLong -> CLLong -> IO CChar)
foreign import ccall "THTensor.h &THCharTensor_desc"
p_desc :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THDescBuff))
foreign import ccall "THTensor.h &THCharTensor_sizeDesc"
p_sizeDesc :: FunPtr (Ptr C'THCharTensor -> IO (Ptr C'THDescBuff))