gasp-1.4.0.0: A framework of algebraic classes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Algebra.Morphism.Pointwise

Synopsis

Documentation

newtype Pointwise x a Source #

Function type where all functions are run pointwise.

Constructors

Pointwise (x -> a) 

Instances

Instances details
Applicative (Pointwise x) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

pure :: a -> Pointwise x a #

(<*>) :: Pointwise x (a -> b) -> Pointwise x a -> Pointwise x b #

liftA2 :: (a -> b -> c) -> Pointwise x a -> Pointwise x b -> Pointwise x c #

(*>) :: Pointwise x a -> Pointwise x b -> Pointwise x b #

(<*) :: Pointwise x a -> Pointwise x b -> Pointwise x a #

Functor (Pointwise x) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

fmap :: (a -> b) -> Pointwise x a -> Pointwise x b #

(<$) :: a -> Pointwise x b -> Pointwise x a #

Additive a => AbelianAdditive (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Additive a => Additive (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

(+) :: Pointwise x a -> Pointwise x a -> Pointwise x a Source #

zero :: Pointwise x a Source #

times :: Natural -> Pointwise x a -> Pointwise x a Source #

Division a => Division (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

recip :: Pointwise x a -> Pointwise x a Source #

(/) :: Pointwise x a -> Pointwise x a -> Pointwise x a Source #

(^) :: Pointwise x a -> Integer -> Pointwise x a Source #

Field a => Field (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Group a => Group (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

(-) :: Pointwise x a -> Pointwise x a -> Pointwise x a Source #

subtract :: Pointwise x a -> Pointwise x a -> Pointwise x a Source #

negate :: Pointwise x a -> Pointwise x a Source #

mult :: Integer -> Pointwise x a -> Pointwise x a Source #

Multiplicative a => Multiplicative (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

(*) :: Pointwise x a -> Pointwise x a -> Pointwise x a Source #

one :: Pointwise x a Source #

(^+) :: Pointwise x a -> Natural -> Pointwise x a Source #

Ring a => Ring (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Roots a => Roots (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

sqrt :: Pointwise x a -> Pointwise x a Source #

root :: Integer -> Pointwise x a -> Pointwise x a Source #

(^/) :: Pointwise x a -> Rational -> Pointwise x a Source #

Transcendental a => Transcendental (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Multiplicative a => Scalable (Pointwise x a) (Pointwise x a) Source # 
Instance details

Defined in Algebra.Morphism.Pointwise

Methods

(*^) :: Pointwise x a -> Pointwise x a -> Pointwise x a Source #

fromPointwise :: Pointwise x a -> x -> a Source #