|
| Get the maximum number of elements that can be stored in the tensor.
|
|
|
| Sets all stored elements to zero.
|
|
|
| Sets all stored elements to the given value.
|
|
|
| True if the value at a given index can be changed
|
|
| unsafeWriteElem :: Elem e => x n e -> i -> e -> m () | Source |
|
| Set the value of the element at the given index, without doing any
range checking.
|
|
| unsafeModifyElem :: Elem e => x n e -> i -> (e -> e) -> m () | Source |
|
| Modify the value of the element at the given index, without doing
any range checking.
|
|
| modifyWith :: Elem e => (e -> e) -> x n e -> m () | Source |
|
| Replace each element by a function applied to it
|
|
| unsafeSwapElems :: Elem e => x n e -> i -> i -> m () | Source |
|
| Same as swapElem but arguments are not range-checked.
|
|
|
| Replace every element with its complex conjugate.
|
|
|
| Scale every element in the vector by the given value.
|
|
|
| Add a value to every element in a vector.
|