Stability | experimental |
---|---|
Maintainer | conal@conal.net |
Linear maps This version uses ABasis, which requires ghc-6.10 or later.
- type :-* u v = Basis u :->: v
- linear :: (VectorSpace u, VectorSpace v, HasBasis u, HasTrie (Basis u)) => (u -> v) -> u :-* v
- lapply :: (VectorSpace u, VectorSpace v, Scalar u ~ Scalar v, HasBasis u, HasTrie (Basis u)) => (u :-* v) -> u -> v
Documentation
linear :: (VectorSpace u, VectorSpace v, HasBasis u, HasTrie (Basis u)) => (u -> v) -> u :-* vSource
Function (assumed linear) as linear map.
lapply :: (VectorSpace u, VectorSpace v, Scalar u ~ Scalar v, HasBasis u, HasTrie (Basis u)) => (u :-* v) -> u -> vSource
Apply a linear map to a vector.