{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.THC.Byte.TensorMath where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
import Torch.Types.THC
foreign import ccall "THCTensorMath.h THCudaByteTensor_fill"
c_fill :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CUChar -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_zero"
c_zero :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_zeros"
c_zeros :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THLongStorage -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_zerosLike"
c_zerosLike :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_ones"
c_ones :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THLongStorage -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_onesLike"
c_onesLike :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_reshape"
c_reshape :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> Ptr C'THLongStorage -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_numel"
c_numel :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> IO CPtrdiff
foreign import ccall "THCTensorMath.h THCudaByteTensor_cat"
c_cat :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CInt -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_catArray"
c_catArray :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr (Ptr C'THCudaByteTensor) -> CInt -> CInt -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_nonzero"
c_nonzero :: Ptr C'THCState -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_tril"
c_tril :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CLLong -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_triu"
c_triu :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CLLong -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_diag"
c_diag :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CLLong -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_eye"
c_eye :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CLLong -> CLLong -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_trace"
c_trace :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> IO CLong
foreign import ccall "THCTensorMath.h THCudaByteTensor_range"
c_range :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CLong -> CLong -> CLong -> IO ()
foreign import ccall "THCTensorMath.h THCudaByteTensor_arange"
c_arange :: Ptr C'THCState -> Ptr C'THCudaByteTensor -> CLong -> CLong -> CLong -> IO ()
foreign import ccall "THCTensorMath.h &THCudaByteTensor_fill"
p_fill :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CUChar -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_zero"
p_zero :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_zeros"
p_zeros :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_zerosLike"
p_zerosLike :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_ones"
p_ones :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_onesLike"
p_onesLike :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_reshape"
p_reshape :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> Ptr C'THLongStorage -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_numel"
p_numel :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> IO CPtrdiff)
foreign import ccall "THCTensorMath.h &THCudaByteTensor_cat"
p_cat :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CInt -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_catArray"
p_catArray :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr (Ptr C'THCudaByteTensor) -> CInt -> CInt -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_nonzero"
p_nonzero :: FunPtr (Ptr C'THCState -> Ptr C'THCudaLongTensor -> Ptr C'THCudaByteTensor -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_tril"
p_tril :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CLLong -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_triu"
p_triu :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CLLong -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_diag"
p_diag :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> Ptr C'THCudaByteTensor -> CLLong -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_eye"
p_eye :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CLLong -> CLLong -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_trace"
p_trace :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> IO CLong)
foreign import ccall "THCTensorMath.h &THCudaByteTensor_range"
p_range :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CLong -> CLong -> CLong -> IO ())
foreign import ccall "THCTensorMath.h &THCudaByteTensor_arange"
p_arange :: FunPtr (Ptr C'THCState -> Ptr C'THCudaByteTensor -> CLong -> CLong -> CLong -> IO ())