{-# LANGUAGE ForeignFunctionInterface #-}
module Torch.FFI.TH.Short.Blas where
import Foreign
import Foreign.C.Types
import Data.Word
import Data.Int
import Torch.Types.TH
foreign import ccall "THBlas.h THShortBlas_swap"
c_swap_ :: CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_swap :: Ptr C'THState -> CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_swap = const c_swap_
foreign import ccall "THBlas.h THShortBlas_scal"
c_scal_ :: CLLong -> CShort -> Ptr CShort -> CLLong -> IO ()
c_scal :: Ptr C'THState -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ()
c_scal = const c_scal_
foreign import ccall "THBlas.h THShortBlas_copy"
c_copy_ :: CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_copy :: Ptr C'THState -> CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_copy = const c_copy_
foreign import ccall "THBlas.h THShortBlas_axpy"
c_axpy_ :: CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_axpy :: Ptr C'THState -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_axpy = const c_axpy_
foreign import ccall "THBlas.h THShortBlas_dot"
c_dot_ :: CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO CShort
c_dot :: Ptr C'THState -> CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO CShort
c_dot = const c_dot_
foreign import ccall "THBlas.h THShortBlas_gemv"
c_gemv_ :: CChar -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ()
c_gemv :: Ptr C'THState -> CChar -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ()
c_gemv = const c_gemv_
foreign import ccall "THBlas.h THShortBlas_ger"
c_ger_ :: CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_ger :: Ptr C'THState -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ()
c_ger = const c_ger_
foreign import ccall "THBlas.h THShortBlas_gemm"
c_gemm_ :: CChar -> CChar -> CLLong -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ()
c_gemm :: Ptr C'THState -> CChar -> CChar -> CLLong -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ()
c_gemm = const c_gemm_
foreign import ccall "THBlas.h &THShortBlas_swap"
p_swap :: FunPtr (CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ())
foreign import ccall "THBlas.h &THShortBlas_scal"
p_scal :: FunPtr (CLLong -> CShort -> Ptr CShort -> CLLong -> IO ())
foreign import ccall "THBlas.h &THShortBlas_copy"
p_copy :: FunPtr (CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ())
foreign import ccall "THBlas.h &THShortBlas_axpy"
p_axpy :: FunPtr (CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ())
foreign import ccall "THBlas.h &THShortBlas_dot"
p_dot :: FunPtr (CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO CShort)
foreign import ccall "THBlas.h &THShortBlas_gemv"
p_gemv :: FunPtr (CChar -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ())
foreign import ccall "THBlas.h &THShortBlas_ger"
p_ger :: FunPtr (CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> IO ())
foreign import ccall "THBlas.h &THShortBlas_gemm"
p_gemm :: FunPtr (CChar -> CChar -> CLLong -> CLLong -> CLLong -> CShort -> Ptr CShort -> CLLong -> Ptr CShort -> CLLong -> CShort -> Ptr CShort -> CLLong -> IO ())