diff options
author | Alberto Ruiz <aruiz@um.es> | 2012-03-19 12:24:53 +0100 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2012-03-19 12:24:53 +0100 |
commit | 355eae1c5dcd83be84ae6d3379480b98a675dc08 (patch) | |
tree | 25b49789d04304e00a7e34e9e95e586eba5d747d /lib/Numeric/LinearAlgebra/Util.hs | |
parent | b0424cacf0453d8294fb37ab1325be256fd7be3e (diff) |
orth
Diffstat (limited to 'lib/Numeric/LinearAlgebra/Util.hs')
-rw-r--r-- | lib/Numeric/LinearAlgebra/Util.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Numeric/LinearAlgebra/Util.hs b/lib/Numeric/LinearAlgebra/Util.hs index 416b23f..79b8774 100644 --- a/lib/Numeric/LinearAlgebra/Util.hs +++ b/lib/Numeric/LinearAlgebra/Util.hs | |||
@@ -18,7 +18,8 @@ module Numeric.LinearAlgebra.Util( | |||
18 | col, | 18 | col, |
19 | (&),(!), (#), | 19 | (&),(!), (#), |
20 | rand, randn, | 20 | rand, randn, |
21 | cross | 21 | cross, |
22 | norm | ||
22 | ) where | 23 | ) where |
23 | 24 | ||
24 | import Numeric.LinearAlgebra | 25 | import Numeric.LinearAlgebra |
@@ -96,3 +97,8 @@ cross x y | dim x == 3 && dim y == 3 = fromList [z1,z2,z3] | |||
96 | z2 = x3*y1-x1*y3 | 97 | z2 = x3*y1-x1*y3 |
97 | z3 = x1*y2-x2*y1 | 98 | z3 = x1*y2-x2*y1 |
98 | 99 | ||
100 | norm :: Vector Double -> Double | ||
101 | -- ^ 2-norm of real vectors | ||
102 | norm = pnorm PNorm2 | ||
103 | |||
104 | |||