sharedspectre-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

SharedSpectre

Description

Exported Functions for Spectre Interaction

Synopsis

Documentation

version :: IO CString Source #

Get Spectre Version

simulate :: Ptr CString -> CInt -> CString -> IO (StablePtr NutMeg) Source #

Run a Simulation

numOfPlots :: StablePtr NutMeg -> IO CInt Source #

Number of Plots in the nutmeg object

nameOfPlot :: StablePtr NutMeg -> CInt -> IO CString Source #

Name of Nut Plot at given index

plotByName :: StablePtr NutMeg -> CString -> IO (StablePtr NutPlot) Source #

Get Plot by given name

plotByIndex :: StablePtr NutMeg -> CInt -> IO (StablePtr NutPlot) Source #

Get Plot at given Index

numOfVars :: StablePtr NutPlot -> IO CInt Source #

Number of Variables in the nutplot

nameOfVar :: StablePtr NutPlot -> CInt -> IO CString Source #

Name of the variable at given index

numOfPoints :: StablePtr NutPlot -> IO CInt Source #

Number of points in Waves

waveByName :: StablePtr NutPlot -> CString -> IO (StablePtr NutWave) Source #

Nut Plot Wave by Variable Name

waveByIndex :: StablePtr NutPlot -> CInt -> IO (StablePtr NutWave) Source #

Nut Plot Wave by Variable Index

isComplex :: StablePtr NutPlot -> IO CInt Source #

Is Complex? 1 = True, 0 = False

realData :: StablePtr NutWave -> Ptr CDouble -> IO () Source #

Real Part of a Vector

imagData :: StablePtr NutWave -> Ptr CDouble -> IO () Source #

Imaginary Part of vector or empty list if only real

startSession :: Ptr CString -> CInt -> CString -> IO (StablePtr Session) Source #

Launch an interactive session

stopSession :: StablePtr Session -> IO () Source #

Quit Spectre Interactive Session