|
Data.VectorSpace | Stability | experimental | Maintainer | conal@conal.net, andygill@ku.edu |
|
|
|
Description |
Vector spaces
|
|
Synopsis |
|
|
|
Documentation |
|
class VectorSpace v s | v -> s where | Source |
|
Vector space v over a scalar field s
| | Methods | | The zero vector
| | | Scale a vector
| | | Add vectors
| | | Additive inverse
|
| | Instances | |
|
|
|
Convenience. Maybe add methods later.
class VectorSpace s s => Scalar s
Vector subtraction
|
|
|
Vector divided by scalar
|
|
|
Vector multiplied by scalar
|
|
|
Adds inner (dot) products
| | Methods | | | Instances | |
|
|
|
Linear interpolation between a (when t==0) and b (when t==1).
|
|
|
Square of the length of a vector. Sometimes useful for efficiency.
See also magnitude.
|
|
|
Length of a vector. See also magnitudeSq.
|
|
|
Vector in same direction as given one but with length of one. If
given the zero vector, then return it.
|
|
|
Linear transformations/maps. For now, represented as simple
functions. The VectorSpace instance for functions gives the usual
meaning for a vector space of linear transformations.
|
|
Produced by Haddock version 2.4.2 |