NumericPrelude-0.0: An experimental alternative hierarchy of numeric type classesContentsIndex
Algebra.NormedSpace.Euclidean
Portabilityrequires multi-parameter type classes
Stabilityprovisional
Maintainernumericprelude@henning-thielemann.de
Contents
Instances for atomic types
Instances for composed types
Description
Abstraction of normed vector spaces
Synopsis
class (C a, Real a, C a v) => C a v where
norm :: v -> a
normSqr :: v -> a
Documentation
class (C a, Real a, C a v) => C a v where

A vector space equipped with an Euclidean or a Hilbert norm.

Minimal definition: norm or normSqr

Methods
norm :: v -> a
Euclidean norm of a vector.
normSqr :: v -> a
Square of the Euclidean norm of a vector. This is sometimes easier to implement.
show/hide Instances
C Double Double
C Float Float
(C a v0, C a v1) => C a (v0, v1)
(C a v0, C a v1, C a v2) => C a (v0, v1, v2)
C a b => C a (T b)
C a b => C a (T b)
C a v => C a [v]
(Ord i, Eq a, Eq v, C a, C a v) => C a (Map i v)
Instances for atomic types
Instances for composed types
Produced by Haddock version 0.7