numhask-0.8.1.0: A numeric class hierarchy.
Safe HaskellNone
LanguageHaskell2010

NumHask.Algebra.Module

Description

Algebra for Modules

Synopsis

Documentation

class Additive a => AdditiveAction m a | m -> a where Source #

Additive Action

Methods

(.+) :: a -> m -> m infixl 6 Source #

(+.) :: m -> a -> m infixl 6 Source #

class Subtractive a => SubtractiveAction m a | m -> a where Source #

Subtractive Action

Methods

(.-) :: a -> m -> m infixl 6 Source #

(-.) :: m -> a -> m infixl 6 Source #

class Multiplicative a => MultiplicativeAction m a | m -> a where Source #

Multiplicative Action

Methods

(.*) :: a -> m -> m infixl 7 Source #

(*.) :: m -> a -> m infixl 7 Source #

class Divisive a => DivisiveAction m a | m -> a where Source #

Divisive Action

Methods

(./) :: a -> m -> m infixl 7 Source #

(/.) :: m -> a -> m infixl 7 Source #

class (Distributive a, MultiplicativeAction m a) => Module m a Source #

A Module

a .* one == a
(a + b) .* c == (a .* c) + (b .* c)
c *. (a + b) == (c *. a) + (c *. b)
a .* zero == zero
a .* b == b *. a