hmatrix-0.1.1.0: Linear algebra and numerical computationsSource codeContentsIndex
Numeric.LinearAlgebra.Interface
Portabilityportable
Stabilityprovisional
MaintainerAlberto Ruiz (aruiz at um dot es)
Description
(Very provisional) operators for frequent operations.
Synopsis
(<>) :: (Mul a b c, Element t) => a t -> b t -> c t
(<.>) :: Element t => Vector t -> Vector t -> t
(<\>) :: Field a => Matrix a -> Vector a -> Vector a
(.*) :: Linear c a => a -> c a -> c a
(*/) :: Linear c a => c a -> a -> c a
(<|>) :: (Element t, Joinable a b) => a t -> b t -> Matrix t
(<->) :: (Element t, Joinable a b) => a t -> b t -> Matrix t
Documentation
(<>) :: (Mul a b c, Element t) => a t -> b t -> c tSource
matrix product
(<.>) :: Element t => Vector t -> Vector t -> tSource
u <.> v = dot u v
(<\>) :: Field a => Matrix a -> Vector a -> Vector aSource
least squares solution of a linear system, similar to the \ operator of Matlab/Octave (based on linearSolveSVD).
(.*) :: Linear c a => a -> c a -> c aSource
x .* a = scale x a
(*/) :: Linear c a => c a -> a -> c aSource
a */ x = scale (recip x) a
(<|>) :: (Element t, Joinable a b) => a t -> b t -> Matrix tSource

Horizontal concatenation of matrices and vectors:

> (ident 3 <-> 3 * ident 3) <|> fromList [1..6.0]
(6><4)
 [ 1.0, 0.0, 0.0, 1.0
 , 0.0, 1.0, 0.0, 2.0
 , 0.0, 0.0, 1.0, 3.0
 , 3.0, 0.0, 0.0, 4.0
 , 0.0, 3.0, 0.0, 5.0
 , 0.0, 0.0, 3.0, 6.0 ]
(<->) :: (Element t, Joinable a b) => a t -> b t -> Matrix tSource
Vertical concatenation of matrices and vectors.
Produced by Haddock version 2.4.2