|
Get the numer of elements stored in the tensor.
|
|
|
Get a new tensor by replacing the elements at the given indices.
|
|
|
Get the value at the given index, without doing any bounds-checking.
|
|
unsafeReplace :: BLAS1 e => x n e -> [(i, e)] -> x n e | Source |
|
Same as '()' but doesn't do any bounds-checking.
|
|
|
Get the indices of the elements stored in the tensor.
|
|
|
Get the elements stored in the tensor.
|
|
|
Get the list of (index, element) pairs stored in the tensor.
|
|
|
Apply a function elementwise to a tensor.
|
|
|
Scale every element by the given value.
|
|
|
Add a constant to every element.
|