| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Vector.V1
Description
1-dimensional vectors with vector arithmetic.
This isn't especially useful. Usually if you want to calculate with scalars, you can just use the Scalar type directly. However, this module provides a Vector1 newtype over Scalar that allows a scalar to be treated as a sort of vector, which is very occasionally useful.
Documentation
The type of 1D vectors.
Owing to its particularly simple structure, this type has more class instances than 'propper' vectors have. Still, for the most part you'll probably want to just use Scalar itself directly.
Instances
| BasicVector Vector1 Source # | |
Defined in Data.Vector.V1 | |
| Vector Vector1 Source # | |
Defined in Data.Vector.V1 | |
| Enum Vector1 Source # | |
| Num Vector1 Source # | |
| Fractional Vector1 Source # | |
| Show Vector1 Source # | |
| Eq Vector1 Source # | |
| Ord Vector1 Source # | |