Portability | requires multi-parameter type classes |
---|---|

Stability | provisional |

Maintainer | numericprelude@henning-thielemann.de |

Abstraction of normed vector spaces

# Documentation

class (C a, C a v) => Sqr a v whereSource

Square of the Euclidean norm of a vector. This is sometimes easier to implement.

Sqr Double Double | |

Sqr Float Float | |

Sqr Int Int | |

Sqr Integer Integer | |

Sqr a v => Sqr a [v] | |

Sqr a b => Sqr a (T b) | |

Sqr a b => Sqr a (T b) | |

(Sqr a v0, Sqr a v1) => Sqr a (v0, v1) | |

(Ord i, Eq a, Eq v, Sqr a v) => Sqr a (Map i v) | |

(Sqr a v0, Sqr a v1, Sqr a v2) => Sqr a (v0, v1, v2) | |

(C a, C a) => Sqr (T a) (T a) |

normSqrFoldable :: (Sqr a v, Foldable f) => f v -> aSource

normSqrFoldable1 :: (Sqr a v, Foldable f, Functor f) => f v -> aSource

class Sqr a v => C a v whereSource

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

Minimal definition:
`norm`