From a928a3a1713704cf3d5148bedc7ff8acb1347599 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Tue, 10 Jun 2014 13:08:17 +0200 Subject: module and function names --- packages/base/src/Numeric/LinearAlgebra/Util.hs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/base/src/Numeric/LinearAlgebra/Util.hs') 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 module Numeric.LinearAlgebra.Util( -- * Convenience functions - vect, mat, + vector, matrix, disp, zeros, ones, diagl, @@ -79,27 +79,27 @@ iC = 0:+1 {- | create a real vector ->>> vect [1..5] +>>> vector [1..5] fromList [1.0,2.0,3.0,4.0,5.0] -} -vect :: [ℝ] -> Vector ℝ -vect = fromList +vector :: [ℝ] -> Vector ℝ +vector = fromList {- | create a real matrix ->>> mat 5 [1..15] +>>> matrix 5 [1..15] (3><5) [ 1.0, 2.0, 3.0, 4.0, 5.0 , 6.0, 7.0, 8.0, 9.0, 10.0 , 11.0, 12.0, 13.0, 14.0, 15.0 ] -} -mat +matrix :: Int -- ^ columns -> [ℝ] -- ^ elements -> Matrix ℝ -mat c = reshape c . fromList +matrix c = reshape c . fromList {- | print a real matrix with given number of digits after the decimal point -- cgit v1.2.3