|
Get the maximum number of elements that can be stored in the tensor.
|
|
|
Sets all stored elements to zero.
|
|
setConstant :: e -> x e -> m () | Source |
|
Sets all stored elements to the given value.
|
|
|
True if the value at a given index can be changed
|
|
unsafeWriteElem :: x e -> i -> e -> m () | Source |
|
Set the value of the element at the given index, without doing any
range checking.
|
|
unsafeModifyElem :: x e -> i -> (e -> e) -> m () | Source |
|
Modify the value of the element at the given index, without doing
any range checking.
|
|
modifyWith :: (e -> e) -> x e -> m () | Source |
|
Replace each element by a function applied to it
|