diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-10-04 18:48:49 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-10-04 18:48:49 +0000 |
commit | 3017c66ca1a77b55032f75acd529347648dfc59b (patch) | |
tree | 029e6051886205079b99f03b2c00ab22f38a5fb2 /README | |
parent | ebb640befd87b956e97d5b2c854572dc1f9c11dd (diff) |
parallel multiply
Diffstat (limited to 'README')
-rw-r--r-- | README | 28 |
1 files changed, 20 insertions, 8 deletions
@@ -10,10 +10,10 @@ INSTALLATION | |||
10 | (More detailed information is included in the "tutorial", | 10 | (More detailed information is included in the "tutorial", |
11 | available in the web page of the project.) | 11 | available in the web page of the project.) |
12 | 12 | ||
13 | $ runhaskell Setup.hs configure --prefix=$HOME | 13 | $ runhaskell Setup.lhs configure --prefix=$HOME |
14 | $ runhaskell Setup.hs build | 14 | $ runhaskell Setup.lhs build |
15 | $ runhaskell Setup.hs haddock | 15 | $ runhaskell Setup.lhs haddock |
16 | $ runhaskell Setup.hs install --user | 16 | $ runhaskell Setup.lhs install --user |
17 | 17 | ||
18 | USING ATLAS | 18 | USING ATLAS |
19 | 19 | ||
@@ -27,11 +27,23 @@ $ runhaskell examples/tests.hs | |||
27 | EXAMPLES | 27 | EXAMPLES |
28 | 28 | ||
29 | $ ghci | 29 | $ ghci |
30 | Prelude> :m + GSL | 30 | Prelude> :m + Numeric.GSL |
31 | Prelude GSL> let quad = integrateQNG 1E-10 | 31 | Prelude Numeric.GSL> let quad = integrateQNG 1E-10 |
32 | Prelude GSL> quad (^2) 0 1 | 32 | Prelude Numeric.GSL> quad (^2) 0 1 |
33 | (0.3333333333333333,3.700743415417188e-15) | 33 | (0.3333333333333333,3.700743415417188e-15) |
34 | Prelude GSL> :q | 34 | |
35 | Prelude Numeric.GSL> :m + Numeric.LinearAlgebra | ||
36 | Prelude Numeric.LinearAlgebra> let m = (2><3)[1,2,3,4,5,6::Double] | ||
37 | Prelude Numeric.LinearAlgebra> let (u,d,v) = full svd m | ||
38 | Prelude Numeric.LinearAlgebra> d | ||
39 | (2><3) | ||
40 | [ 9.508032000695724, 0.0, 0.0 | ||
41 | , 0.0, 0.7728696356734838, 0.0 ] | ||
42 | Prelude Numeric.LinearAlgebra> u <> d <> trans v | ||
43 | (2><3) | ||
44 | [ 1.0000000000000004, 2.0, 3.0 | ||
45 | , 3.9999999999999996, 5.000000000000001, 6.0 ] | ||
46 | Prelude Numeric.GSL> :q | ||
35 | Leaving GHCi. | 47 | Leaving GHCi. |
36 | 48 | ||
37 | -------------------------------------------------------------------------------------- | 49 | -------------------------------------------------------------------------------------- |