Torch.Indef.Dynamic.Tensor.Math.Pairwise

Description

Synopsis

# Documentation

Call Torch's C-level equal function.

add a scalar to a tensor.

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

add a scalar to a tensor, inplace.

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.

subtract a scalar from a tensor.

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

subtract a scalar from a tensor, inplace.

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.

multiply a tensor by a scalar value, pure.

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

multiply a tensor by a scalar value, inplace.

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.