vector-space-0.16: Vector & affine spaces, linear maps, and derivatives

Copyright (c) Conal Elliott and Andy J Gill 2008 BSD3 conal@conal.net, andygill@ku.edu experimental Safe Haskell98

Description

Synopsis

Documentation

class AdditiveGroup v where Source #

Additive group v.

Minimal complete definition

Nothing

Methods

zeroV :: v Source #

The zero element: identity for '(^+^)'

zeroV :: (Generic v, AdditiveGroup (VRep v)) => v Source #

The zero element: identity for '(^+^)'

(^+^) :: v -> v -> v infixl 6 Source #

(^+^) :: (Generic v, AdditiveGroup (VRep v)) => v -> v -> v infixl 6 Source #

negateV :: v -> v Source #

negateV :: (Generic v, AdditiveGroup (VRep v)) => v -> v Source #

(^-^) :: v -> v -> v infixl 6 Source #

Group subtraction

Instances

sumV :: (Foldable f, AdditiveGroup v) => f v -> v Source #

Sum over several vectors

newtype Sum a Source #

Monoid under group addition. Alternative to the Sum in Data.Monoid, which uses Num instead of AdditiveGroup.

Constructors

 Sum FieldsgetSum :: a
Instances

inSum :: (a -> b) -> Sum a -> Sum b Source #

Application a unary function inside a Sum

inSum2 :: (a -> b -> c) -> Sum a -> Sum b -> Sum c Source #

Application a binary function inside a Sum