{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.THC.Int.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 THCudaIntTensor_indexCopy"
c_indexCopy :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexAdd"
c_indexAdd :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexFill"
c_indexFill :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> CInt -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexSelect"
c_indexSelect :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_take"
c_take :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaIntTensor -> Ptr C'THCudaLongTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_put"
c_put :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> CInt -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexCopy_long"
c_indexCopy_long :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaIntTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexAdd_long"
c_indexAdd_long :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaIntTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexFill_long"
c_indexFill_long :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> CInt -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_indexSelect_long"
c_indexSelect_long :: Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> IO ()
foreign import ccall "THCTensorIndex.h THCudaIntTensor_calculateAdvancedIndexingOffsets"
c_calculateAdvancedIndexingOffsets :: Ptr C'THCState -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> CPtrdiff -> Ptr (Ptr C'THCudaLongTensor) -> IO ()
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexCopy"
p_indexCopy :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexAdd"
p_indexAdd :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexFill"
p_indexFill :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> CInt -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexSelect"
p_indexSelect :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THCudaLongTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_take"
p_take :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaIntTensor -> Ptr C'THCudaLongTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_put"
p_put :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> CInt -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexCopy_long"
p_indexCopy_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaIntTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexAdd_long"
p_indexAdd_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> Ptr C'THCudaIntTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexFill_long"
p_indexFill_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> CInt -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_indexSelect_long"
p_indexSelect_long :: FunPtr (Ptr C'THCState -> Ptr C'THCudaIntTensor -> Ptr C'THCudaIntTensor -> CInt -> Ptr C'THLongTensor -> IO ())
foreign import ccall "THCTensorIndex.h &THCudaIntTensor_calculateAdvancedIndexingOffsets"
p_calculateAdvancedIndexingOffsets :: FunPtr (Ptr C'THCState -> Ptr C'THCudaLongTensor -> Ptr C'THCudaIntTensor -> CPtrdiff -> Ptr (Ptr C'THCudaLongTensor) -> IO ())