HLearn-algebra-1.1.0.0: Algebraic foundation for homomorphic learning

Safe HaskellNone

HLearn.Algebra.Structures.Modules

Description

Modules are a generalization of vector spaces

Synopsis

Documentation

class Num (Ring m) => HasRing m Source

Associated Types

type Ring m Source

Instances

Num r => HasRing (FreeModule r a) 
HasRing model => HasRing (Bagging' n seed model) 
HasRing (container model) => HasRing (FreeHomTrainer' k container model) 

class (HasRing m, Abelian m, Group m) => Module m whereSource

Bug: The module classes have the constraint that r be of type Num. Technically, this should be a Ring. But creating a Ring class would be awkward because it would conflict with the Num class and require importing a different Prelude.

Methods

(.*) :: Ring m -> m -> mSource

(*.) :: m -> Ring m -> mSource

Instances

(Num r, Ord a) => Module (FreeModule r a) 
(Module model, SingI Nat n) => Module (Bagging' n seed model) 
Module (container model) => Module (FreeHomTrainer' k container model) 

class (Module m, Fractional (Ring m)) => VectorSpace m whereSource

Methods

(/.) :: m -> Ring m -> mSource

Instances