summaryrefslogtreecommitdiff
path: root/packages/base/src
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2015-07-17 21:03:13 +0200
committerAlberto Ruiz <aruiz@um.es>2015-07-17 21:03:13 +0200
commit39f2bbe937ccbf786af0a326e7aa065890ee331e (patch)
tree99a10d7b4fcdddad3c5835a0f23e55301411ee1c /packages/base/src
parent475ab94e1e2210d7f2e49cf42a1dfc7959bbebd3 (diff)
documentation
Diffstat (limited to 'packages/base/src')
-rw-r--r--packages/base/src/Numeric/LinearAlgebra.hs16
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/base/src/Numeric/LinearAlgebra.hs b/packages/base/src/Numeric/LinearAlgebra.hs
index a1c0158..ea54932 100644
--- a/packages/base/src/Numeric/LinearAlgebra.hs
+++ b/packages/base/src/Numeric/LinearAlgebra.hs
@@ -35,8 +35,9 @@ module Numeric.LinearAlgebra (
35 35
36 -- * Autoconformable dimensions 36 -- * Autoconformable dimensions
37 -- | 37 -- |
38 -- In arithmetic operations single-element vectors and matrices 38 -- In most operations, single-element vectors and matrices
39 -- (created from numeric literals or using 'scalar') automatically 39 -- (created from numeric literals or using 'scalar'), and matrices
40 -- with just one row or column, automatically
40 -- expand to match the dimensions of the other operand: 41 -- expand to match the dimensions of the other operand:
41 -- 42 --
42 -- >>> 5 + 2*ident 3 :: Matrix Double 43 -- >>> 5 + 2*ident 3 :: Matrix Double
@@ -45,11 +46,12 @@ module Numeric.LinearAlgebra (
45 -- , 5.0, 7.0, 5.0 46 -- , 5.0, 7.0, 5.0
46 -- , 5.0, 5.0, 7.0 ] 47 -- , 5.0, 5.0, 7.0 ]
47 -- 48 --
48 -- >>> matrix 3 [1..9] + matrix 1 [10,20,30] 49 -- >>> (4><3) [1..] + row [10,20,30]
49 -- (3><3) 50 -- (4><3)
50 -- [ 11.0, 12.0, 13.0 51 -- [ 11.0, 22.0, 33.0
51 -- , 24.0, 25.0, 26.0 52 -- , 14.0, 25.0, 36.0
52 -- , 37.0, 38.0, 39.0 ] 53 -- , 17.0, 28.0, 39.0
54 -- , 20.0, 31.0, 42.0 ]
53 -- 55 --
54 56
55 -- * Products 57 -- * Products