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.Math.Reduce

Description

 
Synopsis

Documentation

minall :: Dynamic -> HsReal Source #

get the minima of a tensor's elements

maxall :: Dynamic -> HsReal Source #

get the maxima of a tensor's elements

medianall :: Dynamic -> HsReal Source #

get the median value of a tensor's elements

sumall :: Dynamic -> HsAccReal Source #

get the sum of a tensor's elements

prodall :: Dynamic -> HsAccReal Source #

get the product of a tensor's elements

_max Source #

Arguments

:: (Dynamic, IndexDynamic) 
-> Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> IO () 

get the maximal value in the specified dimension and a corresponding index tensor of the maximum value's index.

Inplace and C-Style mutation

_min Source #

Arguments

:: (Dynamic, IndexDynamic) 
-> Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> IO () 

get the minimal value in the specified dimension and a corresponding index tensor of the minimum value's index.

Inplace and C-Style mutation

_median Source #

Arguments

:: (Dynamic, IndexDynamic) 
-> Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> IO () 

get the median value in the specified dimension and a corresponding index tensor of the median value's index.

Inplace and C-Style mutation

_sum Source #

Arguments

:: Dynamic 
-> Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> IO () 

sum the tensor in the specified dimension.

Inplace and C-Style mutation

_prod Source #

Arguments

:: Dynamic 
-> Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> IO () 

take the product of the tensor in the specified dimension.

Inplace and C-Style mutation

max Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> (Dynamic, Maybe IndexDynamic) 

get the maximum value in the specified dimension and return an optional corresponding index tensor of the maximum value's index.

min Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> (Dynamic, Maybe IndexDynamic) 

get the minimum value in the specified dimension and return an optional corresponding index tensor of the minimum value's index.

median Source #

Arguments

:: Dynamic 
-> Word

dimension to operate over

-> Maybe KeepDim 
-> (Dynamic, Maybe IndexDynamic) 

get the median value in the specified dimension and return an optional corresponding index tensor of the median value's index.