|
Get the number of elements stored in the tensor.
|
|
unsafeReadElem :: Elem e => x n e -> i -> m e | Source |
|
Get the value at the specified index, without doing any
range-checking.
|
|
getIndices :: x n e -> m [i] | Source |
|
Returns a lazy list of the indices in the tensor.
Because of the laziness, this function should be used with care.
See also getIndices'.
|
|
getIndices' :: x n e -> m [i] | Source |
|
Returns a list of the indices in the tensor. See also
getIndices.
|
|
|
Returns a lazy list of the elements in the tensor.
Because of the laziness, this function should be used with care.
See also getElems'.
|
|
|
Returns a list of the elements in the tensor. See also
getElems.
|
|
|
Returns a lazy list of the elements-index pairs in the tensor.
Because of the laziness, this function should be used with care.
See also getAssocs'.
|
|
|
Returns a list of the index-elements pairs in the tensor. See also
getAssocs.
|