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

Description

 
Synopsis

Documentation

sign :: Tensor d -> Tensor d Source #

Static version of sign

clamp :: Tensor d -> HsReal -> HsReal -> Tensor d Source #

Static version of clamp

cadd Source #

Arguments

:: Tensor d

tensor1

-> HsReal

scale term to multiply againts tensor2

-> Tensor d

tensor2

-> Tensor d 

Multiply elements of tensor2 by the scalar value and add it to tensor1. The number of elements must match, but sizes do not matter.

Static version of cadd.

(^+^) :: Tensor d -> Tensor d -> Tensor d Source #

infix version of cadd on dimension 1

csub Source #

Arguments

:: Tensor d

tensor1

-> HsReal

scale term to multiply againts tensor2

-> Tensor d

tensor2

-> Tensor d 

Static version of csub

(^-^) :: Tensor d -> Tensor d -> Tensor d Source #

infix version of csub on dimension 1

cmul :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cmul

square :: Tensor d -> Tensor d Source #

square a tensor

(^*^) :: Tensor d -> Tensor d -> Tensor d Source #

infix version of cmul.

cdiv :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cdiv

(^/^) :: Tensor d -> Tensor d -> Tensor d Source #

Infix version of cdiv.

cpow :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cpow

clshift :: Tensor d -> Tensor d -> Tensor d Source #

Static version of clshift

crshift :: Tensor d -> Tensor d -> Tensor d Source #

Static version of crshift

cfmod :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cfmod

cremainder :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cremainder

cmax :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cmax

cmin :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cmin

cbitand :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cbitand

cbitor :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cbitor

cbitxor :: Tensor d -> Tensor d -> Tensor d Source #

Static version of cbitxor

addcmul :: Tensor d1 -> HsReal -> Tensor d2 -> Tensor d3 -> Tensor d4 Source #

Static version of addcmul

addcdiv :: Tensor d1 -> HsReal -> Tensor d2 -> Tensor d3 -> Tensor d4 Source #

Static version of addcdiv