summaryrefslogtreecommitdiff
path: root/packages/base/src/Numeric/LinearAlgebra/Util.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2014-06-10 13:08:17 +0200
committerAlberto Ruiz <aruiz@um.es>2014-06-10 13:08:17 +0200
commita928a3a1713704cf3d5148bedc7ff8acb1347599 (patch)
tree8843ac9f0f323ef8666b0fee9044d5a506348cdc /packages/base/src/Numeric/LinearAlgebra/Util.hs
parentb165193b98f143445fc20be64ce19bc0a570b1bf (diff)
module and function names
Diffstat (limited to 'packages/base/src/Numeric/LinearAlgebra/Util.hs')
-rw-r--r--packages/base/src/Numeric/LinearAlgebra/Util.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra/Util.hs b/packages/base/src/Numeric/LinearAlgebra/Util.hs
index 4824af4..0ac4634 100644
--- a/packages/base/src/Numeric/LinearAlgebra/Util.hs
+++ b/packages/base/src/Numeric/LinearAlgebra/Util.hs
@@ -19,7 +19,7 @@ Stability : provisional
19module Numeric.LinearAlgebra.Util( 19module Numeric.LinearAlgebra.Util(
20 20
21 -- * Convenience functions 21 -- * Convenience functions
22 vect, mat, 22 vector, matrix,
23 disp, 23 disp,
24 zeros, ones, 24 zeros, ones,
25 diagl, 25 diagl,
@@ -79,27 +79,27 @@ iC = 0:+1
79 79
80{- | create a real vector 80{- | create a real vector
81 81
82>>> vect [1..5] 82>>> vector [1..5]
83fromList [1.0,2.0,3.0,4.0,5.0] 83fromList [1.0,2.0,3.0,4.0,5.0]
84 84
85-} 85-}
86vect :: [ℝ] -> Vector ℝ 86vector :: [ℝ] -> Vector ℝ
87vect = fromList 87vector = fromList
88 88
89{- | create a real matrix 89{- | create a real matrix
90 90
91>>> mat 5 [1..15] 91>>> matrix 5 [1..15]
92(3><5) 92(3><5)
93 [ 1.0, 2.0, 3.0, 4.0, 5.0 93 [ 1.0, 2.0, 3.0, 4.0, 5.0
94 , 6.0, 7.0, 8.0, 9.0, 10.0 94 , 6.0, 7.0, 8.0, 9.0, 10.0
95 , 11.0, 12.0, 13.0, 14.0, 15.0 ] 95 , 11.0, 12.0, 13.0, 14.0, 15.0 ]
96 96
97-} 97-}
98mat 98matrix
99 :: Int -- ^ columns 99 :: Int -- ^ columns
100 -> [ℝ] -- ^ elements 100 -> [ℝ] -- ^ elements
101 -> Matrix ℝ 101 -> Matrix ℝ
102mat c = reshape c . fromList 102matrix c = reshape c . fromList
103 103
104 104
105{- | print a real matrix with given number of digits after the decimal point 105{- | print a real matrix with given number of digits after the decimal point