Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Torch.Indef.Dynamic.Tensor.Math.Reduce
Description
Synopsis
- minall :: Dynamic -> HsReal
- maxall :: Dynamic -> HsReal
- medianall :: Dynamic -> HsReal
- sumall :: Dynamic -> HsAccReal
- prodall :: Dynamic -> HsAccReal
- _max :: (Dynamic, IndexDynamic) -> Dynamic -> Word -> Maybe KeepDim -> IO ()
- _min :: (Dynamic, IndexDynamic) -> Dynamic -> Word -> Maybe KeepDim -> IO ()
- _median :: (Dynamic, IndexDynamic) -> Dynamic -> Word -> Maybe KeepDim -> IO ()
- _sum :: Dynamic -> Dynamic -> Word -> Maybe KeepDim -> IO ()
- _prod :: Dynamic -> Dynamic -> Word -> Maybe KeepDim -> IO ()
- max :: Dynamic -> Word -> Maybe KeepDim -> (Dynamic, Maybe IndexDynamic)
- min :: Dynamic -> Word -> Maybe KeepDim -> (Dynamic, Maybe IndexDynamic)
- median :: Dynamic -> Word -> Maybe KeepDim -> (Dynamic, Maybe IndexDynamic)
Documentation
Arguments
:: (Dynamic, IndexDynamic) | |
-> Dynamic | |
-> Word | dimension to operate over |
-> Maybe KeepDim | |
-> IO () |
get the maximal value in the specified dimension and a corresponding index tensor of the maximum value's index.
Inplace and C-Style mutation
Arguments
:: (Dynamic, IndexDynamic) | |
-> Dynamic | |
-> Word | dimension to operate over |
-> Maybe KeepDim | |
-> IO () |
get the minimal value in the specified dimension and a corresponding index tensor of the minimum value's index.
Inplace and C-Style mutation
Arguments
:: (Dynamic, IndexDynamic) | |
-> Dynamic | |
-> Word | dimension to operate over |
-> Maybe KeepDim | |
-> IO () |
get the median value in the specified dimension and a corresponding index tensor of the median value's index.
Inplace and C-Style mutation
sum the tensor in the specified dimension.
Inplace and C-Style mutation
take the product of the tensor in the specified dimension.
Inplace and C-Style mutation
Arguments
:: Dynamic | |
-> Word | dimension to operate over |
-> Maybe KeepDim | |
-> (Dynamic, Maybe IndexDynamic) |
get the maximum value in the specified dimension and return an optional corresponding index tensor of the maximum value's index.