hasktorch-indef-0.0.1.0: Core Hasktorch abstractions wrapping FFI bindings

Copyright(c) Sam Stites 2017
LicenseBSD3
Maintainersam@stites.io
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Torch.Indef.Dynamic.Tensor.Index

Description

Index operations for a dyanmic tensor.

Synopsis

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.

_put :: Dynamic -> IndexDynamic -> Dynamic -> Int -> IO () Source #

TODO