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.Static.Tensor.Index

Description

 
Synopsis

Documentation

_indexCopy :: Tensor d -> Int -> IndexTensor '[n] -> Tensor d' -> IO () Source #

Static call to _indexCopy

_indexAdd :: Tensor d -> Int -> IndexTensor '[n] -> Tensor d' -> IO () Source #

Static call to _indexAdd

_indexFill :: Tensor d -> Int -> IndexTensor '[n] -> HsReal -> IO () Source #

Static call to _indexFill

_indexSelect :: Tensor d -> Tensor d' -> Int -> IndexTensor '[n] -> IO () Source #

Static call to _indexSelect

_take :: Tensor d -> Tensor d' -> IndexTensor '[n] -> IO () Source #

Static call to _take

_put :: Tensor d -> IndexTensor '[n] -> Tensor d' -> Int -> IO () Source #

Static call to _put

getRow :: forall t n m. (All KnownDim '[n, m], KnownNat m) => Tensor '[n, m] -> Word -> Maybe (Tensor '[1, m]) Source #

Retrieve a single row from a matrix

FIXME: Use Idx and remove the throwString function

getColumn :: forall t n m. (All KnownDim '[n, m], KnownNat n) => Tensor '[n, m] -> Word -> Maybe (Tensor '[n, 1]) Source #

Retrieve a single column from a matrix

FIXME: Use Idx and remove the throwString function