{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Int.TensorRandom where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
foreign import ccall "THTensorRandom.h THIntTensor_random"
c_random_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> IO ()
c_random :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> IO ()
c_random = const c_random_
foreign import ccall "THTensorRandom.h THIntTensor_clampedRandom"
c_clampedRandom_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> CLLong -> CLLong -> IO ()
c_clampedRandom :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> CLLong -> CLLong -> IO ()
c_clampedRandom = const c_clampedRandom_
foreign import ccall "THTensorRandom.h THIntTensor_cappedRandom"
c_cappedRandom_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> CLLong -> IO ()
c_cappedRandom :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> CLLong -> IO ()
c_cappedRandom = const c_cappedRandom_
foreign import ccall "THTensorRandom.h THIntTensor_geometric"
c_geometric_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> CDouble -> IO ()
c_geometric :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> CDouble -> IO ()
c_geometric = const c_geometric_
foreign import ccall "THTensorRandom.h THIntTensor_bernoulli"
c_bernoulli_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> CDouble -> IO ()
c_bernoulli :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> CDouble -> IO ()
c_bernoulli = const c_bernoulli_
foreign import ccall "THTensorRandom.h THIntTensor_bernoulli_FloatTensor"
c_bernoulli_FloatTensor_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> Ptr C'THFloatTensor -> IO ()
c_bernoulli_FloatTensor :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> Ptr C'THFloatTensor -> IO ()
c_bernoulli_FloatTensor = const c_bernoulli_FloatTensor_
foreign import ccall "THTensorRandom.h THIntTensor_bernoulli_DoubleTensor"
c_bernoulli_DoubleTensor_ :: Ptr C'THIntTensor -> Ptr C'THGenerator -> Ptr C'THDoubleTensor -> IO ()
c_bernoulli_DoubleTensor :: Ptr C'THState -> Ptr C'THIntTensor -> Ptr C'THGenerator -> Ptr C'THDoubleTensor -> IO ()
c_bernoulli_DoubleTensor = const c_bernoulli_DoubleTensor_
foreign import ccall "THTensorRandom.h &THIntTensor_random"
p_random :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> IO ())
foreign import ccall "THTensorRandom.h &THIntTensor_clampedRandom"
p_clampedRandom :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> CLLong -> CLLong -> IO ())
foreign import ccall "THTensorRandom.h &THIntTensor_cappedRandom"
p_cappedRandom :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> CLLong -> IO ())
foreign import ccall "THTensorRandom.h &THIntTensor_geometric"
p_geometric :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> CDouble -> IO ())
foreign import ccall "THTensorRandom.h &THIntTensor_bernoulli"
p_bernoulli :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> CDouble -> IO ())
foreign import ccall "THTensorRandom.h &THIntTensor_bernoulli_FloatTensor"
p_bernoulli_FloatTensor :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> Ptr C'THFloatTensor -> IO ())
foreign import ccall "THTensorRandom.h &THIntTensor_bernoulli_DoubleTensor"
p_bernoulli_DoubleTensor :: FunPtr (Ptr C'THIntTensor -> Ptr C'THGenerator -> Ptr C'THDoubleTensor -> IO ())