summaryrefslogtreecommitdiff
path: root/packages/base/src/Numeric/LinearAlgebra/Util.hs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/base/src/Numeric/LinearAlgebra/Util.hs')
-rw-r--r--packages/base/src/Numeric/LinearAlgebra/Util.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra/Util.hs b/packages/base/src/Numeric/LinearAlgebra/Util.hs
index 47b1090..aee21b8 100644
--- a/packages/base/src/Numeric/LinearAlgebra/Util.hs
+++ b/packages/base/src/Numeric/LinearAlgebra/Util.hs
@@ -37,6 +37,7 @@ module Numeric.LinearAlgebra.Util(
37 mnorm_1, mnorm_2, mnorm_0, mnorm_Inf, 37 mnorm_1, mnorm_2, mnorm_0, mnorm_Inf,
38 unitary, 38 unitary,
39 mt, 39 mt,
40 (~!~),
40 pairwiseD2, 41 pairwiseD2,
41 rowOuters, 42 rowOuters,
42 null1, 43 null1,
@@ -65,6 +66,7 @@ import Numeric.Matrix()
65import Numeric.Vector() 66import Numeric.Vector()
66import Numeric.LinearAlgebra.Random 67import Numeric.LinearAlgebra.Random
67import Numeric.LinearAlgebra.Util.Convolution 68import Numeric.LinearAlgebra.Util.Convolution
69import Control.Monad(when)
68 70
69type ℝ = Double 71type ℝ = Double
70type ℕ = Int 72type ℕ = Int
@@ -385,3 +387,8 @@ vtrans p m | r == 0 = fromBlocks . map (map asColumn . takesV (replicate q p)) .
385 where 387 where
386 (q,r) = divMod (rows m) p 388 (q,r) = divMod (rows m) p
387 389
390--------------------------------------------------------------------------------
391
392infixl 0 ~!~
393c ~!~ msg = when c (error msg)
394