Skip to content

Instantly share code, notes, and snippets.

@RyanGlScott
Last active November 22, 2016 16:09
Show Gist options
  • Save RyanGlScott/9c792adb97e49ee2007912304a47a4ab to your computer and use it in GitHub Desktop.
Save RyanGlScott/9c792adb97e49ee2007912304a47a4ab to your computer and use it in GitHub Desktop.
module Main (main) where
import Numeric.LinearAlgebra (Matrix, I, step, (><))
mat :: Matrix I
mat = (3><4) [1..]
main :: IO ()
main = print $ step mat
module Main (main) where
import Data.Vector.Storable (Vector, fromList)
import Foreign.C.Types (CInt)
import Numeric.LinearAlgebra (step)
mat :: Vector CInt
mat = fromList [1..12]
main :: IO ()
main = print $ step mat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment