hasktorch-types-th-0.0.1.0: C-types for Torch

Safe HaskellNone
LanguageHaskell2010

Torch.Types.TH

Contents

Synopsis

Documentation

type C'THState = () Source #

newtype State Source #

Constructors

State 
Instances
Eq State Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: State -> State -> Bool #

(/=) :: State -> State -> Bool #

Show State Source # 
Instance details

Defined in Torch.Types.TH

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

torchstate :: ForeignPtr C'THState Source #

torchstate is just a foreign pointer wrapping around a null pointer with a noop finalizer. This is to keep the API unified with THC.

data Allocator Source #

Instances
Eq Allocator Source # 
Instance details

Defined in Torch.Types.TH

Show Allocator Source # 
Instance details

Defined in Torch.Types.TH

type CGenerator Source #

Arguments

 = C'THGenerator

Backpack type alias for TH's CPU generator

newtype Generator Source #

Representation of a CPU-bound random number generator

Constructors

Generator 
Instances
Eq Generator Source # 
Instance details

Defined in Torch.Types.TH

Show Generator Source # 
Instance details

Defined in Torch.Types.TH

newtype Seed Source #

Representation of a CPU-bound random seed

Constructors

Seed 

Fields

Instances
Bounded Seed Source # 
Instance details

Defined in Torch.Types.TH

Enum Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

succ :: Seed -> Seed #

pred :: Seed -> Seed #

toEnum :: Int -> Seed #

fromEnum :: Seed -> Int #

enumFrom :: Seed -> [Seed] #

enumFromThen :: Seed -> Seed -> [Seed] #

enumFromTo :: Seed -> Seed -> [Seed] #

enumFromThenTo :: Seed -> Seed -> Seed -> [Seed] #

Eq Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: Seed -> Seed -> Bool #

(/=) :: Seed -> Seed -> Bool #

Integral Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

quot :: Seed -> Seed -> Seed #

rem :: Seed -> Seed -> Seed #

div :: Seed -> Seed -> Seed #

mod :: Seed -> Seed -> Seed #

quotRem :: Seed -> Seed -> (Seed, Seed) #

divMod :: Seed -> Seed -> (Seed, Seed) #

toInteger :: Seed -> Integer #

Num Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

(+) :: Seed -> Seed -> Seed #

(-) :: Seed -> Seed -> Seed #

(*) :: Seed -> Seed -> Seed #

negate :: Seed -> Seed #

abs :: Seed -> Seed #

signum :: Seed -> Seed #

fromInteger :: Integer -> Seed #

Ord Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

compare :: Seed -> Seed -> Ordering #

(<) :: Seed -> Seed -> Bool #

(<=) :: Seed -> Seed -> Bool #

(>) :: Seed -> Seed -> Bool #

(>=) :: Seed -> Seed -> Bool #

max :: Seed -> Seed -> Seed #

min :: Seed -> Seed -> Seed #

Read Seed Source # 
Instance details

Defined in Torch.Types.TH

Real Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

toRational :: Seed -> Rational #

Show Seed Source # 
Instance details

Defined in Torch.Types.TH

Methods

showsPrec :: Int -> Seed -> ShowS #

show :: Seed -> String #

showList :: [Seed] -> ShowS #

Unsigned types

type CByteTensor = C'THByteTensor Source #

A C-level representation of the Byte Tensor type. These need to be wrapped in Ptr

newtype ByteDynamic Source #

A memory-managed representation of TH's Byte Tensor type. These carry a reference to the CState

Instances
Eq ByteDynamic Source # 
Instance details

Defined in Torch.Types.TH

newtype ByteTensor (ds :: [Nat]) Source #

A newtype wrapper around ByteDynamic which imbues a ByteDynamic with static tensor dimensions.

Constructors

ByteTensor 
Instances
Eq (ByteTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: ByteTensor ds -> ByteTensor ds -> Bool #

(/=) :: ByteTensor ds -> ByteTensor ds -> Bool #

byteAsStatic :: ByteDynamic -> ByteTensor ds Source #

smart constructor for ByteTensor.

newtype CharTensor (ds :: [Nat]) Source #

Constructors

CharTensor 
Instances
Eq (CharTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: CharTensor ds -> CharTensor ds -> Bool #

(/=) :: CharTensor ds -> CharTensor ds -> Bool #

Signed types

newtype LongTensor (ds :: [Nat]) Source #

Constructors

LongTensor 
Instances
Eq (LongTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: LongTensor ds -> LongTensor ds -> Bool #

(/=) :: LongTensor ds -> LongTensor ds -> Bool #

newtype ShortTensor (ds :: [Nat]) Source #

Constructors

ShortTensor 
Instances
Eq (ShortTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: ShortTensor ds -> ShortTensor ds -> Bool #

(/=) :: ShortTensor ds -> ShortTensor ds -> Bool #

newtype IntDynamic Source #

Instances
Eq IntDynamic Source # 
Instance details

Defined in Torch.Types.TH

newtype IntTensor (ds :: [Nat]) Source #

Constructors

IntTensor 
Instances
Eq (IntTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: IntTensor ds -> IntTensor ds -> Bool #

(/=) :: IntTensor ds -> IntTensor ds -> Bool #

newtype IntStorage Source #

Instances
Eq IntStorage Source # 
Instance details

Defined in Torch.Types.TH

Floating types

newtype FloatTensor (ds :: [Nat]) Source #

Constructors

FloatTensor 
Instances
Eq (FloatTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: FloatTensor ds -> FloatTensor ds -> Bool #

(/=) :: FloatTensor ds -> FloatTensor ds -> Bool #

newtype DoubleTensor (ds :: [Nat]) Source #

Instances
Eq (DoubleTensor ds) Source # 
Instance details

Defined in Torch.Types.TH

Methods

(==) :: DoubleTensor ds -> DoubleTensor ds -> Bool #

(/=) :: DoubleTensor ds -> DoubleTensor ds -> Bool #

type C'THFile = () Source #

type C'THHalf = Ptr () Source #