From 39f2bbe937ccbf786af0a326e7aa065890ee331e Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Fri, 17 Jul 2015 21:03:13 +0200 Subject: documentation --- packages/base/src/Numeric/LinearAlgebra.hs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'packages/base/src/Numeric/LinearAlgebra.hs') 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 ( -- * Autoconformable dimensions -- | - -- In arithmetic operations single-element vectors and matrices - -- (created from numeric literals or using 'scalar') automatically + -- In most operations, single-element vectors and matrices + -- (created from numeric literals or using 'scalar'), and matrices + -- with just one row or column, automatically -- expand to match the dimensions of the other operand: -- -- >>> 5 + 2*ident 3 :: Matrix Double @@ -45,11 +46,12 @@ module Numeric.LinearAlgebra ( -- , 5.0, 7.0, 5.0 -- , 5.0, 5.0, 7.0 ] -- - -- >>> matrix 3 [1..9] + matrix 1 [10,20,30] - -- (3><3) - -- [ 11.0, 12.0, 13.0 - -- , 24.0, 25.0, 26.0 - -- , 37.0, 38.0, 39.0 ] + -- >>> (4><3) [1..] + row [10,20,30] + -- (4><3) + -- [ 11.0, 22.0, 33.0 + -- , 14.0, 25.0, 36.0 + -- , 17.0, 28.0, 39.0 + -- , 20.0, 31.0, 42.0 ] -- -- * Products -- cgit v1.2.3