dunai-0.4.0.0: Generalised reactive framework supporting classic, arrowized and monadic FRP.

Safe HaskellSafe
LanguageHaskell2010

Data.VectorSpace.Fractional

Contents

Description

VectorSpace instances for Num/Fractional types.

This module includes instances for:

Orphan instances

Num a => InnerProductSpace a #

Inner-product instance for any number.

Instance details

Methods

dot :: a -> a -> Groundfield a #

Fractional a => VectorSpace a #

Vector-space instance for any fractional, where vectorial division is normal number division.

Instance details

Methods

(^/) :: a -> Groundfield a -> a #

Num a => RModule a #

R-module instance for any number, where '^+^ is + and multiplication is normal multiplication.

Instance details

Associated Types

type Groundring a :: * #

Methods

zeroVector :: a #

(*^) :: Groundring a -> a -> a #

(^*) :: a -> Groundring a -> a #

negateVector :: a -> a #

(^+^) :: a -> a -> a #

(^-^) :: a -> a -> a #