Copyright | (c) Conal Elliott 2008 |
---|---|

License | BSD3 |

Maintainer | conal@conal.net |

Stability | experimental |

Safe Haskell | None |

Language | Haskell98 |

Basis of a vector space, as an associated type This module requires ghc-6.10 or later

- class VectorSpace v => HasBasis v where
- type Basis v :: *
- basisValue :: Basis v -> v
- decompose :: v -> [(Basis v, Scalar v)]
- decompose' :: v -> Basis v -> Scalar v

- linearCombo :: VectorSpace v => [(v, Scalar v)] -> v
- recompose :: HasBasis v => [(Basis v, Scalar v)] -> v

# Documentation

class VectorSpace v => HasBasis v where Source

linearCombo :: VectorSpace v => [(v, Scalar v)] -> v Source

Linear combination of vectors