|
Get the numer of elements stored in the tensor.
|
|
(//) :: x e -> [(i, e)] -> x e | Source |
|
Get a new tensor by replacing the elements at the given indices.
|
|
unsafeAt :: x e -> i -> e | Source |
|
Get the value at the given index, without doing any bounds-checking.
|
|
unsafeReplace :: x e -> [(i, e)] -> x 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.
|
|
assocs :: x e -> [(i, e)] | Source |
|
Get the list of (index, element) pairs stored in the tensor.
|
|
|
Apply a function elementwise to a tensor.
|
|
|
Apply a function to pairs of elements of tensors that are the
same shape.
|