Copyright | (c) Sam Stites 2017 |
---|---|
License | BSD3 |
Maintainer | sam@stites.io |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Functions to copy (and cast) tensors into different types. This is a pure module.
Synopsis
- copy :: Tensor d -> Tensor d
- copyByte :: Tensor d -> ByteTensor d
- copyChar :: Tensor d -> CharTensor d
- copyShort :: Tensor d -> ShortTensor d
- copyInt :: Tensor d -> IntTensor d
- copyLong :: Tensor d -> LongTensor d
- copyFloat :: Tensor d -> FloatTensor d
- copyDouble :: Tensor d -> DoubleTensor d
Documentation
copyByte :: Tensor d -> ByteTensor d Source #
copy a tensor to a byte tensor. *Use at your own discresion*
copyChar :: Tensor d -> CharTensor d Source #
copy a tensor to a char tensor. *Use at your own discresion*
copyShort :: Tensor d -> ShortTensor d Source #
copy a tensor to a short tensor. *Use at your own discresion*
copyInt :: Tensor d -> IntTensor d Source #
copy a tensor to a int tensor. *Use at your own discresion*
copyLong :: Tensor d -> LongTensor d Source #
copy a tensor to a long tensor. *Use at your own discresion*
copyFloat :: Tensor d -> FloatTensor d Source #
copy a tensor to a float tensor. *Use at your own discresion*
copyDouble :: Tensor d -> DoubleTensor d Source #
copy a tensor to a double tensor. *Use at your own discresion*