| Copyright | (c) Erich Gut |
|---|---|
| License | BSD3 |
| Maintainer | zerich.gut@gmail.com |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
OAlg.Structure.Vectorial.Definition
Description
Synopsis
- class (Semiring (Scalar v), Commutative (Scalar v), Additive v) => Vectorial v where
- data Vec k
- class (ForgetfulFbr (s k), ForgetfulAdd (s k), Transformable (s k) (Vec k)) => ForgetfulVec k s
- class Vectorial v => Euclidean v where
Vectorial
class (Semiring (Scalar v), Commutative (Scalar v), Additive v) => Vectorial v where Source #
Additive structures with a total defined scalar multiplication from the left
by a commutative semi ring. The entities of v are called vector.
Properties Let v b a Vectorial structure, then holds:
- For all
sinandScalarvvinvholds:sis!vvalidand.root(s!v)==rootv - For all
vinvholds:0.!v==zero(rootv) - For all
sinandScalarvrinholdsRootvs.!zeror==zeror - For all
r,sinandScalarvvinvholds:(r.+s)!v==r!v+s!v - For all
sinandScalarvv,winvwithholds:rootv==rootws.!(v+w)==s!v+s!w - For all
vinvholds:1.!v==v - For all
r,sinandScalarvvinvholds:(r.*s)!v==r!(s!v)
Instances
type representing the class of k- structures.Vectorial
Instances
| ForgetfulVec k Vec Source # | |
Defined in OAlg.Structure.Vectorial.Definition | |
| ForgetfulAdd (Vec k) Source # | |
Defined in OAlg.Structure.Vectorial.Definition | |
| ForgetfulTyp (Vec k) Source # | |
Defined in OAlg.Structure.Vectorial.Definition | |
| ForgetfulFbr (Vec k) Source # | |
Defined in OAlg.Structure.Vectorial.Definition | |
| Transformable (Vec k) Ent Source # | |
| Transformable (Vec k) Add Source # | |
| Transformable (Vec k) Typ Source # | |
| Transformable (Vec k) Fbr Source # | |
| (Semiring r, Commutative r) => EmbeddableMorphism (HomSymbol r) (Vec r) Source # | |
Defined in OAlg.Entity.Matrix.Vector | |
| Transformable (Alg k) (Vec k) Source # | |
| type Hom (Vec k) h Source # | |
Defined in OAlg.Hom.Vectorial | |
| type Structure (Vec k) x Source # | |
Defined in OAlg.Structure.Vectorial.Definition | |
class (ForgetfulFbr (s k), ForgetfulAdd (s k), Transformable (s k) (Vec k)) => ForgetfulVec k s Source #
transformable to k- structure.Vectorial
Instances
| ForgetfulVec k Alg Source # | |
Defined in OAlg.Structure.Algebraic.Definition | |
| ForgetfulVec k Vec Source # | |
Defined in OAlg.Structure.Vectorial.Definition | |
Euclidean
class Vectorial v => Euclidean v where Source #
Vectorial structures with a partially defined scalar product.
Properties
- For all
v,wholds: ifthenrootv==rootwvis<!>wvalid, otherwise aUndefinedScalarproduct-exception will be thrown. - For all
uholds:u.<!>zero(rootu)==rZero - For all
u,vandwwithandrootu==rootwholds:rootw==rootvu.<!>(v+w)==u<!>v+u<!>w - For all
wholds:.zero(rootw)<!>w==rZero - For all
u,vandwwithandrootw==rootuholds:rootu==rootv(u.+v)<!>w==u<!>w+v' !' w
Instances
| Euclidean N Source # | |
| Euclidean Q Source # | |
| Euclidean Z Source # | |
| (Semiring r, Commutative r) => Euclidean (Vector r) Source # | |
| Entity p => Euclidean (Orientation p) Source # | |
Defined in OAlg.Structure.Vectorial.Definition Methods (<!>) :: Orientation p -> Orientation p -> Scalar (Orientation p) Source # | |
| (Semiring r, Commutative r, Entity a, Ord a) => Euclidean (SumSymbol r a) Source # | |