Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugh Perkins <hughperkins@gmail.com>2016-01-21 00:16:45 +0300
committerHugh Perkins <hughperkins@gmail.com>2016-01-21 00:16:45 +0300
commit61686f259f8c853a8e2b188a0306ed590efcb2ab (patch)
tree234bcc6c3b77c7663ac2be359c7b13aa4493e0c2 /doc
parentc19402aff8b888c18fad12819957fa723fb293a8 (diff)
add :cinv(), which does 1/x, addresses https://github.com/torch/torch7/issues/168
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/maths.md7
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>