hmatrix-0.14.0.0: Linear algebra and numerical computation

Stabilityprovisional
MaintainerAlberto Ruiz (aruiz at um dot es)
Safe HaskellSafe-Infered

Numeric.LinearAlgebra.Util

Description

 

Synopsis

Documentation

disp :: Int -> Matrix Double -> IO ()Source

show a matrix with given number of digits after the decimal point

zerosSource

Arguments

:: Int

rows

-> Int

columns

-> Matrix Double 

a real matrix of zeros

onesSource

Arguments

:: Int

rows

-> Int

columns

-> Matrix Double 

a real matrix of ones

diagl :: [Double] -> Matrix DoubleSource

create a real diagonal matrix from a list

row :: [Double] -> Matrix DoubleSource

create a single row real matrix from a list

col :: [Double] -> Matrix DoubleSource

create a single column real matrix from a list

(&) :: Vector Double -> Vector Double -> Vector DoubleSource

concatenation of real vectors

(!) :: Matrix Double -> Matrix Double -> Matrix DoubleSource

horizontal concatenation of real matrices

(#) :: Matrix Double -> Matrix Double -> Matrix DoubleSource

vertical concatenation of real matrices

rand :: Int -> Int -> IO (Matrix Double)Source

pseudorandom matrix with uniform elements between 0 and 1

randn :: Int -> Int -> IO (Matrix Double)Source

pseudorandom matrix with normal elements

cross :: Vector Double -> Vector Double -> Vector DoubleSource

cross product of dimension 3 real vectors

norm :: Vector Double -> DoubleSource

2-norm of real vectors