|
| BLAS.Tensor.Mutable | | Stability | experimental | | Maintainer | Patrick Perry <patperry@stanford.edu> |
|
|
|
| Description |
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| Class for modifiable mutable tensors.
| | | Methods | | | 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
|
| | Instances | | BLAS1 e => MTensor (DVector Mut n) Int e IO | | BLAS1 e => MTensor (DVector Mut n) Int e IO | | BLAS1 e => MTensor (DVector Mut n) Int e IO | | BLAS1 e => MTensor (DMatrix Mut ((,) m n)) ((,) Int Int) e IO | | BLAS1 e => MTensor (DMatrix Mut ((,) m n)) ((,) Int Int) e IO | | BLAS1 e => MTensor (DMatrix Mut ((,) m n)) ((,) Int Int) e IO | | BLAS1 e => MTensor (BMatrix Mut ((,) m n)) ((,) Int Int) e IO | | BLAS1 e => MTensor (BMatrix Mut ((,) m n)) ((,) Int Int) e IO | | BLAS1 e => MTensor (BMatrix Mut ((,) m n)) ((,) Int Int) e IO |
|
|
|
|
| Set the value of the element at the given index.
|
|
|
| Update the value of the element at the given index.
|
|
| Produced by Haddock version 2.3.0 |