scravy / bed-and-breakfast Goto Github PK
View Code? Open in Web Editor NEWMatrix operations in 100% pure Haskell
License: MIT License
Matrix operations in 100% pure Haskell
License: MIT License
... tried to solve myself, but data families + Typeable feels tricky
Please?
BD:~/test$ cabal repl
GHCi, version 8.0.1.20161117: http://www.haskell.org/ghc/ :? for help
Prelude> import qualified Numeric.Matrix as M
Prelude M> let a = M.fromList [[1,1]] :: M.Matrix Double
Prelude M> a
1.0 1.0
Prelude M> a * M.transpose a
1.0
Some operations on OSX 10.8.3 (GHC 7.6.3, 64 bit Haskell Platform) result in segfault. Executing each of following expressions in GHCi will crash the interpreter:
det (fromList [[1]])
det (fromList [[1.0]])
inv (fromList [[1::Double]])
This issue doesn't occur on version 0.3.2 - everything works fine there.
Numerous operations do not work on OSX 10.8.3 (GHC 7.6.3, 64 bit Haskell Platform). Sample GHCi session:
Prelude Numeric.Matrix> fromList [[1,2],[3,4]]
1 2
3 4
Prelude Numeric.Matrix> fromList [[1,2],[3,4]] `plus` fromList [[1,2],[3,4]]
*** Exception: Prelude.undefined
Prelude Numeric.Matrix> zero 5::Matrix Double
*** Exception: Prelude.undefined
Prelude Numeric.Matrix> fromList [[1,2],[3,4]] `times` fromList [[1,2],[3,4]]
*** Exception: Prelude.undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.