|
| Data.Vector.Dense | | Stability | experimental | | Maintainer | Patrick Perry <patperry@stanford.edu> |
|
|
|
|
|
| Description |
|
|
| Synopsis |
|
|
|
|
| The Vector type
|
|
| Vector shape
|
|
|
| Cast the shape type of the vector.
|
|
| module BLAS.Tensor.Base |
|
| Conjugating vectors
|
|
| module BLAS.Conj |
|
| Creating new vectors
|
|
|
| Create a vector with the given dimension and elements. The elements
given in the association list must all have unique indices, otherwise
the result is undefined.
|
|
|
| Create a vector of the given dimension with elements initialized
to the values from the list. listVector n es is equivalent to
vector n (zip [0..(n-1)] es), except that the result is undefined
if length es is less than n.
|
|
|
| Same as vector, but does not range-check the indices.
|
|
| Reading vector elements
|
|
| module BLAS.Tensor.Immutable |
|
| Special vectors
|
|
|
| zeroVector n creates a vector of dimension n with all values
set to zero.
|
|
|
| constantVector n e creates a vector of dimension n with all values
set to e.
|
|
|
| basisVector n i creates a vector of dimension n with zeros
everywhere but position i, where there is a one.
|
|
| Vector views
|
|
|
| subvector x o n creates a subvector view of x starting at index o
and having length n.
|
|
|
| subvectorWithStride s x o n creates a subvector view of x starting
at index o, having length n and stride s.
|
|
| Vector properties
|
|
|
| Compute the sum of absolute values of entries in the vector.
|
|
|
| Compute the 2-norm of a vector.
|
|
|
| Get the index and norm of the element with absulte value. Not valid
if any of the vector entries are NaN. Raises an exception if the
vector has length 0.
|
|
|
| Compute the dot product of two vectors.
|
|
| Low-level vector properties
|
|
| Converting between mutable and immutable vectors
|
|
| Produced by Haddock version 2.3.0 |