hasktorch-0.2.0.0: Functional differentiable programming in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.Scalar

Documentation

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

Instances

Instances details
Scalar Bool Source # 
Instance details

Defined in Torch.Scalar

Scalar Double Source # 
Instance details

Defined in Torch.Scalar

Scalar Float Source # 
Instance details

Defined in Torch.Scalar

Scalar Int Source # 
Instance details

Defined in Torch.Scalar

Orphan instances

Castable Bool (ForeignPtr Scalar) Source # 
Instance details

Methods

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

uncast :: ForeignPtr Scalar -> (Bool -> 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 #