Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- _random :: Dynamic -> IO ()
- _clampedRandom :: Dynamic -> Integer -> Integer -> IO ()
- _cappedRandom :: Dynamic -> Integer -> IO ()
- _bernoulli :: Dynamic -> HsAccReal -> IO ()
- _bernoulli_DoubleTensor :: Dynamic -> Dynamic -> IO ()
- _geometric :: Dynamic -> HsAccReal -> IO ()
- _uniform :: Dynamic -> Ord2Tuple HsAccReal -> IO ()
- _normal :: Dynamic -> HsAccReal -> Positive HsAccReal -> IO ()
- _normal_means :: Dynamic -> Dynamic -> Positive HsAccReal -> IO ()
- _normal_stddevs :: Dynamic -> HsAccReal -> Dynamic -> IO ()
- _normal_means_stddevs :: Dynamic -> Dynamic -> Dynamic -> IO ()
- _logNormal :: Dynamic -> HsAccReal -> Positive HsAccReal -> IO ()
- _exponential :: Dynamic -> HsAccReal -> IO ()
- _cauchy :: Dynamic -> HsAccReal -> HsAccReal -> IO ()
- _multinomial :: IndexDynamic -> Dynamic -> Int -> Int -> IO ()
- _multinomialAliasSetup :: Dynamic -> LongDynamic -> Dynamic -> IO ()
- _multinomialAliasDraw :: LongDynamic -> LongDynamic -> Dynamic -> IO ()
- _rand :: Dynamic -> LongStorage -> IO ()
- _randn :: Dynamic -> LongStorage -> IO ()
- data OpenUnit x
- openUnit :: (Ord x, Num x) => x -> Maybe (OpenUnit x)
- openUnitValue :: OpenUnit x -> x
- data ClosedUnit x
- closedUnit :: (Ord x, Num x) => x -> Maybe (ClosedUnit x)
- closedUnitValue :: ClosedUnit x -> x
- data Positive x
- positive :: (Ord x, Num x) => x -> Maybe (Positive x)
- positiveValue :: Positive x -> x
- data Ord2Tuple x
- ord2Tuple :: (Ord x, Num x) => (x, x) -> Maybe (Ord2Tuple x)
- ord2TupleValue :: Ord2Tuple x -> (x, x)
Documentation
_clampedRandom :: Dynamic -> Integer -> Integer -> IO () Source #
CUDA version of _clampedRandom
_cappedRandom :: Dynamic -> Integer -> IO () Source #
CUDA version of _cappedRandom
_bernoulli :: Dynamic -> HsAccReal -> IO () Source #
CUDA version of _bernoulli
_bernoulli_DoubleTensor :: Dynamic -> Dynamic -> IO () Source #
CUDA version of _bernoulli_DoubleTensor
_geometric :: Dynamic -> HsAccReal -> IO () Source #
CUDA version of _geometric
_normal_means :: Dynamic -> Dynamic -> Positive HsAccReal -> IO () Source #
CUDA version of _normal_means
_normal_stddevs :: Dynamic -> HsAccReal -> Dynamic -> IO () Source #
CUDA version of _normal_stddevs
_normal_means_stddevs :: Dynamic -> Dynamic -> Dynamic -> IO () Source #
CUDA version of _normal_means_stddevs
_logNormal :: Dynamic -> HsAccReal -> Positive HsAccReal -> IO () Source #
call C-level logNormal
| CUDA version of _logNormal
_exponential :: Dynamic -> HsAccReal -> IO () Source #
CUDA version of _exponential
_multinomial :: IndexDynamic -> Dynamic -> Int -> Int -> IO () Source #
CUDA version of _multinomial
_multinomialAliasSetup :: Dynamic -> LongDynamic -> Dynamic -> IO () Source #
CUDA version of _multinomialAliasSetup
_multinomialAliasDraw :: LongDynamic -> LongDynamic -> Dynamic -> IO () Source #
CUDA version of _multinomialAliasDraw
Datatype to represent the open unit interval: 0 < x < 1
. Any OpenUnit
inhabitant
must satisfy being in the interval.
FIXME: replace with numhask.
Instances
Eq x => Eq (OpenUnit x) | |
Ord x => Ord (OpenUnit x) | |
Show x => Show (OpenUnit x) | |
openUnit :: (Ord x, Num x) => x -> Maybe (OpenUnit x) #
smart constructor to place a number in the open unit interval.
openUnitValue :: OpenUnit x -> x #
Get a value from the open unit interval.
data ClosedUnit x #
Datatype to represent the closed unit interval: 0 =< x =< 1
. Any ClosedUnit
inhabitant must satisfy being in the interval.
FIXME: replace with numhask.
Instances
Eq x => Eq (ClosedUnit x) | |
Defined in Torch.Types.Numeric (==) :: ClosedUnit x -> ClosedUnit x -> Bool # (/=) :: ClosedUnit x -> ClosedUnit x -> Bool # | |
Ord x => Ord (ClosedUnit x) | |
Defined in Torch.Types.Numeric compare :: ClosedUnit x -> ClosedUnit x -> Ordering # (<) :: ClosedUnit x -> ClosedUnit x -> Bool # (<=) :: ClosedUnit x -> ClosedUnit x -> Bool # (>) :: ClosedUnit x -> ClosedUnit x -> Bool # (>=) :: ClosedUnit x -> ClosedUnit x -> Bool # max :: ClosedUnit x -> ClosedUnit x -> ClosedUnit x # min :: ClosedUnit x -> ClosedUnit x -> ClosedUnit x # | |
Show x => Show (ClosedUnit x) | |
Defined in Torch.Types.Numeric showsPrec :: Int -> ClosedUnit x -> ShowS # show :: ClosedUnit x -> String # showList :: [ClosedUnit x] -> ShowS # |
closedUnit :: (Ord x, Num x) => x -> Maybe (ClosedUnit x) #
smart constructor to place a number in the closed unit interval.
closedUnitValue :: ClosedUnit x -> x #
Get a value from the closed unit interval.
Datatype to represent a generic positive number: 0 =< x
.
FIXME: replace with numhask.
Instances
Eq x => Eq (Positive x) | |
Ord x => Ord (Positive x) | |
Show x => Show (Positive x) | |
positive :: (Ord x, Num x) => x -> Maybe (Positive x) #
smart constructor to place a number in a positive bound.
positiveValue :: Positive x -> x #
Get a value from the positive bound.
Datatype to represent an ordered pair of numbers, (a, b)
, where a <= b
.
FIXME: replace with numhask.
ord2Tuple :: (Ord x, Num x) => (x, x) -> Maybe (Ord2Tuple x) #
smart constructor to place two values in an ordered tuple.
ord2TupleValue :: Ord2Tuple x -> (x, x) #
Get the values of an ordered tuple.