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

Description

 
Synopsis

Documentation

dist Source #

Arguments

:: Tensor d

tensor x

-> Tensor d

tensor y

-> HsReal
p
-> HsAccReal 

Returns the p-norm of x - y.

var Source #

Arguments

:: Tensor d 
-> Word

dimension to operate over

-> KeepDim 
-> Bool 
-> Tensor d' 

Get the variance over a tensor in the specified dimension. The Bool parameter specifies whether the standard deviation should be used with n-1 or n. False normalizes by n-1, while True normalizes n.

varall :: Tensor d -> Int -> HsAccReal Source #

Returns the variance of all elements.

std Source #

Arguments

:: Tensor d 
-> Word

dimension to operate over

-> KeepDim 
-> Bool 
-> Tensor d' 

Performs the std operation over the specified dimension. The Bool parameter specifies whether the standard deviation should be used with n-1 or n. False normalizes by n-1, while True normalizes n.

stdall :: Tensor d -> Int -> HsAccReal Source #

Returns the standard deviation of all elements.

renorm :: Tensor d -> HsReal -> Int -> HsReal -> Tensor d' Source #

Static renorm

norm Source #

Arguments

:: Tensor d 
-> HsReal 
-> Word

dimension to operate over

-> Tensor d' 

Static norm

normall Source #

Arguments

:: Tensor d

tensor of values to norm over

-> HsReal
p
-> HsAccReal 

Returns the p-norm of all elements.

mean Source #

Arguments

:: Tensor d 
-> Word

dimension to operate over

-> Tensor d' 

Static 'Dynamic.mean

meanall :: Tensor d -> HsAccReal Source #

Returns the mean of all elements.