{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Int.Blas where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
foreign import ccall "THBlas.h THIntBlas_swap"
c_swap_ :: CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_swap :: Ptr C'THState -> CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_swap = const c_swap_
foreign import ccall "THBlas.h THIntBlas_scal"
c_scal_ :: CLLong -> CInt -> Ptr CInt -> CLLong -> IO ()
c_scal :: Ptr C'THState -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ()
c_scal = const c_scal_
foreign import ccall "THBlas.h THIntBlas_copy"
c_copy_ :: CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_copy :: Ptr C'THState -> CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_copy = const c_copy_
foreign import ccall "THBlas.h THIntBlas_axpy"
c_axpy_ :: CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_axpy :: Ptr C'THState -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_axpy = const c_axpy_
foreign import ccall "THBlas.h THIntBlas_dot"
c_dot_ :: CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO CInt
c_dot :: Ptr C'THState -> CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO CInt
c_dot = const c_dot_
foreign import ccall "THBlas.h THIntBlas_gemv"
c_gemv_ :: CChar -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ()
c_gemv :: Ptr C'THState -> CChar -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ()
c_gemv = const c_gemv_
foreign import ccall "THBlas.h THIntBlas_ger"
c_ger_ :: CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_ger :: Ptr C'THState -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ()
c_ger = const c_ger_
foreign import ccall "THBlas.h THIntBlas_gemm"
c_gemm_ :: CChar -> CChar -> CLLong -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ()
c_gemm :: Ptr C'THState -> CChar -> CChar -> CLLong -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ()
c_gemm = const c_gemm_
foreign import ccall "THBlas.h &THIntBlas_swap"
p_swap :: FunPtr (CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ())
foreign import ccall "THBlas.h &THIntBlas_scal"
p_scal :: FunPtr (CLLong -> CInt -> Ptr CInt -> CLLong -> IO ())
foreign import ccall "THBlas.h &THIntBlas_copy"
p_copy :: FunPtr (CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ())
foreign import ccall "THBlas.h &THIntBlas_axpy"
p_axpy :: FunPtr (CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ())
foreign import ccall "THBlas.h &THIntBlas_dot"
p_dot :: FunPtr (CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO CInt)
foreign import ccall "THBlas.h &THIntBlas_gemv"
p_gemv :: FunPtr (CChar -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ())
foreign import ccall "THBlas.h &THIntBlas_ger"
p_ger :: FunPtr (CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> IO ())
foreign import ccall "THBlas.h &THIntBlas_gemm"
p_gemm :: FunPtr (CChar -> CChar -> CLLong -> CLLong -> CLLong -> CInt -> Ptr CInt -> CLLong -> Ptr CInt -> CLLong -> CInt -> Ptr CInt -> CLLong -> IO ())