hasktorch-gradually-typed-0.2.0.0: experimental project for hasktorch
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.GraduallyTyped.Scalar

Documentation

class Castable a (ForeignPtr Scalar) => Scalar a Source #

Instances

Instances details
Scalar Integer Source # 
Instance details

Defined in Torch.GraduallyTyped.Scalar

Scalar Double Source # 
Instance details

Defined in Torch.GraduallyTyped.Scalar

Scalar Float Source # 
Instance details

Defined in Torch.GraduallyTyped.Scalar

Scalar Int Source # 
Instance details

Defined in Torch.GraduallyTyped.Scalar

Orphan instances

Castable Integer (ForeignPtr Scalar) Source # 
Instance details

Methods

cast :: Integer -> (ForeignPtr Scalar -> IO r) -> IO r Source #

uncast :: ForeignPtr Scalar -> (Integer -> IO r) -> IO r Source #

Castable Double (ForeignPtr Scalar) Source # 
Instance details

Methods

cast :: Double -> (ForeignPtr Scalar -> IO r) -> IO r Source #

uncast :: ForeignPtr Scalar -> (Double -> IO r) -> IO r Source #

Castable Float (ForeignPtr Scalar) Source # 
Instance details

Methods

cast :: Float -> (ForeignPtr Scalar -> IO r) -> IO r Source #

uncast :: ForeignPtr Scalar -> (Float -> IO r) -> IO r Source #

Castable Int (ForeignPtr Scalar) Source # 
Instance details

Methods

cast :: Int -> (ForeignPtr Scalar -> IO r) -> IO r Source #

uncast :: ForeignPtr Scalar -> (Int -> IO r) -> IO r Source #