{-# LANGUAGE ForeignFunctionInterface #-} module Torch.FFI.THC.Short.TensorMathPairwise where import Foreign import Foreign.C.Types import Data.Word import Data.Int import Torch.Types.TH import Torch.Types.THC -- | c_add : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_add" c_add :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_sub : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_sub" c_sub :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_add_scaled : state self src value alpha -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_add_scaled" c_add_scaled :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> CShort -> IO () -- | c_sub_scaled : state self src value alpha -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_sub_scaled" c_sub_scaled :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> CShort -> IO () -- | c_mul : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_mul" c_mul :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_div : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_div" c_div :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_lshift : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_lshift" c_lshift :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_rshift : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_rshift" c_rshift :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_fmod : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_fmod" c_fmod :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_remainder : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_remainder" c_remainder :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_bitand : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_bitand" c_bitand :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_bitor : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_bitor" c_bitor :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_bitxor : state self src value -> void foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_bitxor" c_bitxor :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO () -- | c_equal : state self src -> int foreign import ccall "THCTensorMathPairwise.h THCudaShortTensor_equal" c_equal :: Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> IO CInt -- | p_add : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_add" p_add :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_sub : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_sub" p_sub :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_add_scaled : Pointer to function : state self src value alpha -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_add_scaled" p_add_scaled :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> CShort -> IO ()) -- | p_sub_scaled : Pointer to function : state self src value alpha -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_sub_scaled" p_sub_scaled :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> CShort -> IO ()) -- | p_mul : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_mul" p_mul :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_div : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_div" p_div :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_lshift : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_lshift" p_lshift :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_rshift : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_rshift" p_rshift :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_fmod : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_fmod" p_fmod :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_remainder : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_remainder" p_remainder :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_bitand : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_bitand" p_bitand :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_bitor : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_bitor" p_bitor :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_bitxor : Pointer to function : state self src value -> void foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_bitxor" p_bitxor :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> CShort -> IO ()) -- | p_equal : Pointer to function : state self src -> int foreign import ccall "THCTensorMathPairwise.h &THCudaShortTensor_equal" p_equal :: FunPtr (Ptr C'THCState -> Ptr C'THCudaShortTensor -> Ptr C'THCudaShortTensor -> IO CInt)