From b4873dbd201e0e887fb9cb5b5fe55774fa6fbe78 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Sun, 12 Jul 2015 14:10:51 +0200 Subject: documentation --- packages/base/src/Numeric/LinearAlgebra/Data.hs | 21 +++++++++++++++------ packages/base/src/Numeric/LinearAlgebra/HMatrix.hs | 6 +++++- packages/base/src/Numeric/LinearAlgebra/Static.hs | 4 ++-- 3 files changed, 22 insertions(+), 9 deletions(-) (limited to 'packages/base/src/Numeric/LinearAlgebra') diff --git a/packages/base/src/Numeric/LinearAlgebra/Data.hs b/packages/base/src/Numeric/LinearAlgebra/Data.hs index d2843c2..a389aac 100644 --- a/packages/base/src/Numeric/LinearAlgebra/Data.hs +++ b/packages/base/src/Numeric/LinearAlgebra/Data.hs @@ -8,21 +8,29 @@ License : BSD3 Maintainer : Alberto Ruiz Stability : provisional -Basic data processing. +This module provides functions for creation and manipulation of vectors and matrices, IO, and other utilities. -} -------------------------------------------------------------------------------- module Numeric.LinearAlgebra.Data( + -- * Elements + R,C,I,Z,type(./.), + -- * Vector - -- | 1D arrays are storable vectors from the vector package. There is no distinction - -- between row and column vectors. + {- | 1D arrays are storable vectors directly reexported from the vector package. + -} fromList, toList, (|>), vector, range, idxs, -- * Matrix + {- | The main data type of hmatrix is a 2D dense array defined on top of + a storable vector. The internal representation is suitable for direct + interface with standard numeric libraries. + -} + (><), matrix, tr, tr', -- * Dimensions @@ -56,8 +64,9 @@ module Numeric.LinearAlgebra.Data( -- * Matrix extraction Extractor(..), (??), - takeRows, dropRows, takeColumns, dropColumns, - subMatrix, (?), (¿), fliprl, flipud, + (?), (¿), fliprl, flipud, + + subMatrix, takeRows, dropRows, takeColumns, dropColumns, remap, @@ -92,7 +101,7 @@ module Numeric.LinearAlgebra.Data( separable, fromArray2D, module Data.Complex, - R,C,I,Z,Mod, type(./.), + Mod, Vector, Matrix, GMatrix, nRows, nCols ) where diff --git a/packages/base/src/Numeric/LinearAlgebra/HMatrix.hs b/packages/base/src/Numeric/LinearAlgebra/HMatrix.hs index 8adaaaf..bac1c0c 100644 --- a/packages/base/src/Numeric/LinearAlgebra/HMatrix.hs +++ b/packages/base/src/Numeric/LinearAlgebra/HMatrix.hs @@ -13,7 +13,7 @@ compatibility with previous version, to be removed module Numeric.LinearAlgebra.HMatrix ( module Numeric.LinearAlgebra, - (¦),(——),ℝ,ℂ,(<·>) + (¦),(——),ℝ,ℂ,(<·>),app,mul ) where import Numeric.LinearAlgebra @@ -23,3 +23,7 @@ infixr 8 <·> (<·>) :: Numeric t => Vector t -> Vector t -> t (<·>) = dot +app m v = m #> v + +mul a b = a <> b + diff --git a/packages/base/src/Numeric/LinearAlgebra/Static.hs b/packages/base/src/Numeric/LinearAlgebra/Static.hs index d0a790d..0dab0e6 100644 --- a/packages/base/src/Numeric/LinearAlgebra/Static.hs +++ b/packages/base/src/Numeric/LinearAlgebra/Static.hs @@ -22,7 +22,7 @@ Stability : experimental Experimental interface with statically checked dimensions. -This module is under active development and the interface is subject to changes. +See code examples at http://dis.um.es/~alberto/hmatrix/static.html. -} @@ -65,7 +65,7 @@ import Numeric.LinearAlgebra hiding ( row,col,vector,matrix,linspace,toRows,toColumns, (<\>),fromList,takeDiag,svd,eig,eigSH,eigSH', eigenvalues,eigenvaluesSH,eigenvaluesSH',build, - qr,size,app,mul,dot,chol,range,R,C) + qr,size,dot,chol,range,R,C) import qualified Numeric.LinearAlgebra as LA import Data.Proxy(Proxy) import Internal.Static -- cgit v1.2.3