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.Pairwise

Description

 
Synopsis

Documentation

equal :: Dynamic -> Dynamic -> Bool Source #

Call Torch's C-level equal function.

add :: Dynamic -> HsReal -> Dynamic Source #

add a scalar to a tensor.

add_ :: Dynamic -> HsReal -> IO () Source #

add a scalar to a tensor, inplace.

add_scaled_ Source #

Arguments

:: Dynamic

tensor to scale

-> HsReal

value to add

-> HsReal

amount to scale the value by

-> IO () 

add a scalar, which has been scaled, to a tensor, inplace.

sub :: Dynamic -> HsReal -> Dynamic Source #

subtract a scalar from a tensor.

sub_ :: Dynamic -> HsReal -> IO () Source #

subtract a scalar from a tensor, inplace.

sub_scaled_ Source #

Arguments

:: Dynamic

tensor to scale

-> HsReal

value to add

-> HsReal

amount to scale the value by

-> IO () 

subtract a scalar, which has been scaled, from a tensor, inplace.

mul :: Dynamic -> HsReal -> Dynamic Source #

multiply a tensor by a scalar value, pure.

mul_ :: Dynamic -> HsReal -> IO () Source #

multiply a tensor by a scalar value, inplace.

div :: Dynamic -> HsReal -> Dynamic Source #

divide a tensor by a scalar value, pure.

div_ :: Dynamic -> HsReal -> IO () Source #

divide a tensor by a scalar value, inplace.

lshift_ :: Dynamic -> HsReal -> IO () Source #

Left shift all elements in the tensor by the given value, inplace.

rshift_ :: Dynamic -> HsReal -> IO () Source #

Right shift all elements in the tensor by the given value, inplace.

fmod_ :: Dynamic -> HsReal -> IO () Source #

Compute the remainder of division ( rounded towards zero) of all elements in the tensor by a given value, inplace.

remainder_ :: Dynamic -> HsReal -> IO () Source #

Computes remainder of division (rounded to nearest) of all elements in the tensor by value, inplace

bitand_ :: Dynamic -> HsReal -> IO () Source #

Performs the bitwise operation inplace on all elements in the tensor.

bitor_ :: Dynamic -> HsReal -> IO () Source #

Performs the bitwise operation inplace on all elements in the tensor.

bitxor_ :: Dynamic -> HsReal -> IO () Source #

Performs the bitwise operation inplace on all elements in the tensor.