Numeric.LinearAlgebra.Interface
 Portability portable Stability provisional Maintainer Alberto Ruiz (aruiz at um dot es)
Description
(Very provisional) operators for frequent operations.
Synopsis
 (<>) :: (Mul a b c, Field t) => a t -> b t -> c t (<.>) :: Field 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, Field t) => a t -> b t -> c t Source
matrix product
 (<.>) :: Field t => Vector t -> Vector t -> t Source
`u <.> v = dot u v`
 (<\>) :: Field a => Matrix a -> Vector a -> Vector a Source
least squares solution of a linear system, similar to the \ operator of Matlab/Octave (based on linearSolveSVD).
 (.*) :: Linear c a => a -> c a -> c a Source
`x .* a = scale x a`
 (*/) :: Linear c a => c a -> a -> c a Source
`a */ x = scale (recip x) a`
 (<|>) :: (Element t, Joinable a b) => a t -> b t -> Matrix t Source

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 t Source
Vertical concatenation of matrices and vectors.