HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulevector-space-0.19Haskell2010

Data.VectorSpace

Vector spaces

This version uses associated types instead of fundeps and requires ghc-6.10 or later

Synopsis
  • Packagevector-space-0.19
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVectorSpace.hs
classclass AdditiveGroup v => VectorSpace v where

Vector space v.

Associated types

Methods

  • (*^) :: Scalar v -> v -> vinfixr 7

    Scale a vector

Instances27VectorSpace, …
classclass (VectorSpace v, AdditiveGroup (Scalar v)) => InnerSpace v where

Adds inner (dot) products.

Methods

  • (<.>) :: v -> v -> Scalar vinfixr 7

    Inner/dot product

Instances25InnerSpace, …