hmatrix-0.5.1.1: Linear algebra and numerical computations

Portabilityuses ffi
Stabilityprovisional
MaintainerAlberto Ruiz (aruiz at um dot es)

Numeric.LinearAlgebra.Linear

Description

Basic optimized operations on vectors and matrices.

Synopsis

Documentation

class Container c e => Linear c e whereSource

A generic interface for vectors and matrices to a few element-by-element functions in Numeric.GSL.Vector.

Methods

scale :: e -> c e -> c eSource

addConstant :: e -> c e -> c eSource

add :: c e -> c e -> c eSource

sub :: c e -> c e -> c eSource

mul :: c e -> c e -> c eSource

element by element multiplication

divide :: c e -> c e -> c eSource

element by element division

scaleRecip :: e -> c e -> c eSource

scale the element by element reciprocal of the object: scaleRecip 2 (fromList [5,i]) == 2 |> [0.4 :+ 0.0,0.0 :+ (-2.0)]

equal :: c e -> c e -> BoolSource