Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Operations using a mask tensor to filter which elements will be used.
Synopsis
- maskedFill_ :: Dynamic -> MaskDynamic -> HsReal -> IO ()
- _maskedCopy :: Dynamic -> MaskDynamic -> Dynamic -> IO ()
- _maskedSelect :: Dynamic -> Dynamic -> MaskDynamic -> IO ()
Documentation
:: Dynamic | source tensor to mutate, inplace |
-> MaskDynamic | mask to fill |
-> HsReal | value to fill |
-> IO () |
fill a dynamic tensor with a value, filtered by a boolean mask tensor
:: Dynamic | return tensor to mutate, inplace |
-> MaskDynamic | mask to copy with |
-> Dynamic | source tensor to copy from |
-> IO () |
copy a dynamic tensor with a value, filtered by a boolean mask tensor
C-Style: In the classic Torch C-style, the first argument is treated as the return type and is mutated in-place.
:: Dynamic | return tensor to mutate, inplace |
-> Dynamic | source tensor to select from |
-> MaskDynamic | mask to select with |
-> IO () |
select a dynamic tensor with a value, filtered by a boolean mask tensor
C-Style: In the classic Torch C-style, the first argument is treated as the return type and is mutated in-place.