module Numeric.LAPACK.ComfortArray.Miscellaneous where
import qualified Numeric.LAPACK.FFI.Miscellaneous as FFI
import qualified Numeric.Netlib.ComfortArray.Utility as Call
import Foreign.C.Types (CInt, CChar)
import Control.Monad.Trans.Cont (evalContT)
import Control.Monad.IO.Class (liftIO)
chla_transtype ::
Int ->
IO CChar
chla_transtype trans = do
evalContT $ do
transPtr <- Call.cint trans
liftIO $ FFI.chla_transtype transPtr
ieeeck ::
Int ->
Float ->
Float ->
IO CInt
ieeeck ispec zero one = do
evalContT $ do
ispecPtr <- Call.cint ispec
zeroPtr <- Call.float zero
onePtr <- Call.float one
liftIO $ FFI.ieeeck ispecPtr zeroPtr onePtr
ladiag ::
Char ->
IO CInt
ladiag diag = do
evalContT $ do
diagPtr <- Call.char diag
liftIO $ FFI.ladiag diagPtr
laprec ::
Char ->
IO CInt
laprec prec = do
evalContT $ do
precPtr <- Call.char prec
liftIO $ FFI.laprec precPtr
latrans ::
Char ->
IO CInt
latrans trans = do
evalContT $ do
transPtr <- Call.char trans
liftIO $ FFI.latrans transPtr
lauplo ::
Char ->
IO CInt
lauplo uplo = do
evalContT $ do
uploPtr <- Call.char uplo
liftIO $ FFI.lauplo uploPtr