Safe Haskell | None |
---|---|
Language | Haskell98 |
Abstraction of normed vector spaces
Documentation
class (C a, C a v) => Sqr a v where Source #
Square of the Euclidean norm of a vector. This is sometimes easier to implement.
Sqr Double Double Source # | |
Sqr Float Float Source # | |
Sqr Int Int Source # | |
Sqr Integer Integer Source # | |
(Sqr a v, RealFloat v) => Sqr a (Complex v) Source # | |
Sqr a v => Sqr a [v] Source # | |
Sqr a b => Sqr a (T b) Source # | |
Sqr a b => Sqr a (T b) Source # | |
(Sqr a v0, Sqr a v1) => Sqr a (v0, v1) Source # | |
(Sqr a v0, Sqr a v1, Sqr a v2) => Sqr a (v0, v1, v2) Source # | |
(C a, C a) => Sqr (T a) (T a) Source # | |
Sqr a v => Sqr (T a) (T v) Source # | |
normSqrFoldable :: (Sqr a v, Foldable f) => f v -> a Source #
class Sqr a v => C a v where Source #
A vector space equipped with an Euclidean or a Hilbert norm.
Minimal definition:
norm
C Double Double Source # | |
C Float Float Source # | |
C Int Int Source # | |
C Integer Integer Source # | |
(C a, Sqr a v, RealFloat v) => C a (Complex v) Source # | |
(C a, Sqr a v) => C a [v] Source # | |
(C a, Sqr a b) => C a (T b) Source # | |
(C a, Sqr a b) => C a (T b) Source # | |
(C a, Sqr a v0, Sqr a v1) => C a (v0, v1) Source # | |
(C a, Sqr a v0, Sqr a v1, Sqr a v2) => C a (v0, v1, v2) Source # | |
C a v => C (T a) (T v) Source # | |