vector-space-0.10.4: 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

Additive group v.

Minimal complete definition

Methods

zeroV :: v #

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

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

negateV :: v -> v #

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

Group subtraction

Instances

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

Sum over several vectors

newtype Sum a #

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

Constructors

 Sum FieldsgetSum :: a

Instances

 # Methodsfmap :: (a -> b) -> Sum a -> Sum b #(<\$) :: a -> Sum b -> Sum a # # Methodspure :: a -> Sum a #(<*>) :: Sum (a -> b) -> Sum a -> Sum b #(*>) :: Sum a -> Sum b -> Sum b #(<*) :: Sum a -> Sum b -> Sum a # Bounded a => Bounded (Sum a) # MethodsminBound :: Sum a #maxBound :: Sum a # Eq a => Eq (Sum a) # Methods(==) :: Sum a -> Sum a -> Bool #(/=) :: Sum a -> Sum a -> Bool # Ord a => Ord (Sum a) # Methodscompare :: Sum a -> Sum a -> Ordering #(<) :: Sum a -> Sum a -> Bool #(<=) :: Sum a -> Sum a -> Bool #(>) :: Sum a -> Sum a -> Bool #(>=) :: Sum a -> Sum a -> Bool #max :: Sum a -> Sum a -> Sum a #min :: Sum a -> Sum a -> Sum a # Read a => Read (Sum a) # MethodsreadsPrec :: Int -> ReadS (Sum a) #readList :: ReadS [Sum a] #readPrec :: ReadPrec (Sum a) # Show a => Show (Sum a) # MethodsshowsPrec :: Int -> Sum a -> ShowS #show :: Sum a -> String #showList :: [Sum a] -> ShowS # AdditiveGroup a => Monoid (Sum a) # Methodsmempty :: Sum a #mappend :: Sum a -> Sum a -> Sum a #mconcat :: [Sum a] -> Sum a # # MethodszeroV :: Sum a #(^+^) :: Sum a -> Sum a -> Sum a #negateV :: Sum a -> Sum a #(^-^) :: Sum a -> Sum a -> Sum a #

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

Application a unary function inside a Sum

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

Application a binary function inside a Sum