Last active
November 22, 2016 16:09
-
-
Save RyanGlScott/9c792adb97e49ee2007912304a47a4ab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main (main) where | |
| import Numeric.LinearAlgebra (Matrix, I, step, (><)) | |
| mat :: Matrix I | |
| mat = (3><4) [1..] | |
| main :: IO () | |
| main = print $ step mat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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