diff options
author | Hugh Perkins <hughperkins@gmail.com> | 2016-01-21 00:16:45 +0300 |
---|---|---|
committer | Hugh Perkins <hughperkins@gmail.com> | 2016-01-21 00:16:45 +0300 |
commit | 61686f259f8c853a8e2b188a0306ed590efcb2ab (patch) | |
tree | 234bcc6c3b77c7663ac2be359c7b13aa4493e0c2 /doc | |
parent | c19402aff8b888c18fad12819957fa723fb293a8 (diff) |
add :cinv(), which does 1/x, addresses https://github.com/torch/torch7/issues/168
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/maths.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/maths.md b/doc/maths.md index 185ddf9..95a6e6f 100755 --- a/doc/maths.md +++ b/doc/maths.md @@ -431,6 +431,13 @@ This function is more accurate than [`log`](#torch.log) for small values of `x`. `x:neg()` replaces all elements in-place with the sign-reversed values of the elements of `x`. +<a name="x:cinv"></a> +### x:cinv() ### +<a name="x:cinv"></a> + +`x:cinv()` replaces all elements in-place with `1.0 / x`. + + <a name="torch.pow"></a> ### [res] torch.pow([res,] x, n) ### <a name="torch.pow"></a> |