Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Index operations for a dyanmic tensor.
Synopsis
- _indexCopy :: Dynamic -> Int -> IndexDynamic -> Dynamic -> IO ()
- _indexAdd :: Dynamic -> Int -> IndexDynamic -> Dynamic -> IO ()
- _indexFill :: Dynamic -> Int -> IndexDynamic -> HsReal -> IO ()
- _indexSelect :: Dynamic -> Dynamic -> Int -> IndexDynamic -> IO ()
- _take :: Dynamic -> Dynamic -> IndexDynamic -> IO ()
- _put :: Dynamic -> IndexDynamic -> Dynamic -> Int -> IO ()
Documentation
_indexCopy :: Dynamic -> Int -> IndexDynamic -> Dynamic -> IO () Source #
Copies the elements of tensor into the original tensor by selecting the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
_indexAdd :: Dynamic -> Int -> IndexDynamic -> Dynamic -> IO () Source #
Accumulate the elements of tensor into the original tensor by adding to the indices in the order given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
_indexFill :: Dynamic -> Int -> IndexDynamic -> HsReal -> IO () Source #
Fills the elements of the original Tensor with value val by selecting the indices in the order given in index.
_indexSelect :: Dynamic -> Dynamic -> Int -> IndexDynamic -> IO () Source #
Selects the elements of the original Tensor by the index.