{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.THC.Byte.TensorIndex where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
import Torch.Types.THC
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexCopy"
c_indexCopy :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexAdd"
c_indexAdd :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexFill"
c_indexFill :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> CUChar -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexSelect"
c_indexSelect :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_take"
c_take :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> Ptr C'THCudaLongTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_put"
c_put :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> CInt -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexCopy_long"
c_indexCopy_long :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexAdd_long"
c_indexAdd_long :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexFill_long"
c_indexFill_long :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> CUChar -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_indexSelect_long"
c_indexSelect_long :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaByteTensor_calculateAdvancedIndexingOffsets"
c_calculateAdvancedIndexingOffsets :: Ptr C'THCState -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> CPtrdiff -> Ptr (Ptr C'THCudaLongTensor) -> IO ()
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexCopy"
p_indexCopy :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexAdd"
p_indexAdd :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexFill"
p_indexFill :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> CUChar -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexSelect"
p_indexSelect :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THCudaLongTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_take"
p_take :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> Ptr C'THCudaLongTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_put"
p_put :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> CInt -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexCopy_long"
p_indexCopy_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexAdd_long"
p_indexAdd_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexFill_long"
p_indexFill_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> CUChar -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_indexSelect_long"
p_indexSelect_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CInt -> Ptr C'THLongTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaByteTensor_calculateAdvancedIndexingOffsets"
p_calculateAdvancedIndexingOffsets :: FunPtr (Ptr C'THCState -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> CPtrdiff -> Ptr (Ptr C'THCudaLongTensor) -> IO ())