|
Data.Vector.Dense.Operations | Stability | experimental | Maintainer | Patrick Perry <patperry@stanford.edu> |
|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Copy and swap
|
|
|
copyVector dst src replaces the elements in dst with the values from src.
This may result in a loss of precision.
|
|
|
swapVectors x y replaces the elements in x with the values from y, and
replaces the elements in y with the values from x. This may result in
a loss of precision.
|
|
Vector norms and inner products
|
|
Pure
|
|
|
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.
|
|
|
Gets the sum of the absolute values of the vector entries.
|
|
|
Gets the 2-norm of a vector.
|
|
|
Gets the index and norm of the element with maximum magnitude. This is undefined
if any of the elements are NaN. It will throw an exception if the
dimension of the vector is 0.
|
|
|
Computes the dot product of two vectors.
|
|
Vector arithmetic
|
|
Pure
|
|
|
Add a value to every element in a vector.
|
|
|
Scale every element by the given value.
|
|
|
Divide every element by a value.
|
|
|
|
|
Sum of two vectors.
|
|
|
Difference of vectors.
|
|
|
Elementwise vector product.
|
|
|
Elementwise vector ratio.
|
|
Impure
|
|
|
Create a new vector by adding a value to every element in a vector.
|
|
|
Create a new vector by scaling every element by a value. scale'k x
is equal to newCopy' (scale k x).
|
|
|
Create a new vector by dividing every element by a value.
|
|
|
Computes the sum of two vectors.
|
|
|
Computes the difference of two vectors.
|
|
|
Computes the elementwise product of two vectors.
|
|
|
Computes the elementwise ratio of two vectors.
|
|
In-place arithmetic
|
|
|
Replace every element with its complex conjugate. See also conj.
|
|
|
Scale every element in the vector by the given value, and return a view
to the scaled vector. See also scale.
|
|
|
Add a value to every element in a vector.
|
|
|
Divide every element by a value.
|
|
|
y += x replaces y by y + x.
|
|
|
y -= x replaces y by y - x.
|
|
|
y *= x replaces y by x * y, the elementwise product.
|
|
|
y = x replaces y by y / x, the elementwise ratio.
|
|
Unsafe operations
|
|
|
Same as copyVector but does not check the dimensions of the arguments.
|
|
|
Same as swap but does not check the dimensions of the arguments.
|
|
BLAS calls
|
|
|
|
Produced by Haddock version 2.3.0 |