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
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-10-24 17:35:27 +0300
committerGitHub <noreply@github.com>2016-10-24 17:35:27 +0300
commit1037772e952e910ece55820683852cf369022a96 (patch)
tree954fe800fad1f0de00bd823707181c49dbb5a061
parent1e5a315d03c91286d859512574d3b0b25e12d512 (diff)
parent28d5fe23e5fe68b7beb6a0f49ae92ae5914778df (diff)
Merge pull request #812 from howard0su/master
Fix the reference so that trepl can find the right document
-rwxr-xr-xdoc/maths.md41
1 files changed, 23 insertions, 18 deletions
diff --git a/doc/maths.md b/doc/maths.md
index dd427ea..252b52d 100755
--- a/doc/maths.md
+++ b/doc/maths.md
@@ -362,6 +362,13 @@ For more than 4 dimensions, you can use a storage: `y = torch.zeros(torch.LongSt
`x:atan()` replaces all elements in-place with the arctangent of the elements of `x`.
+<a name="torch.atan2"></a>
+### [res] torch.atan2([res,] x, y) ###
+<a name="torch.atan2"></a>
+
+`y = torch.atan2(x, y)` returns a new `Tensor` with the arctangent of the elements of `x` and `y`.
+
+`x:atan2()` replaces all elements in-place with the arctangent of the elements of `x` and `y`.
<a name="torch.ceil"></a>
### [res] torch.ceil([res,] x) ###
@@ -427,20 +434,17 @@ For more than 4 dimensions, you can use a storage: `y = torch.zeros(torch.LongSt
This function is more accurate than [`log`](#torch.log) for small values of `x`.
-<a name="x:neg"></a>
+<a name="torch.neg"></a>
### x:neg() ###
-<a name="x:neg"></a>
`x:neg()` replaces all elements in-place with the sign-reversed values of the elements of `x`.
-
-<a name="x:cinv"></a>
+<a name="torch.cinv"></a>
### x:cinv() ###
-<a name="x:cinv"></a>
+<a name="torch.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>
@@ -632,18 +636,17 @@ The number of elements must match, but sizes do not matter.
`torch.add(z, x, value, y)` puts the result of `x + value * y` in `z`.
-<a name="x:csub"></a>
+<a name="torch.csub"></a>
### tensor:csub(value) ###
-<a name="x:csub"></a>
+<a name="torch.csub"></a>
Subtracts the given value from all elements in the `Tensor`, in place.
+<a name="torch.csub"></a>
+### tensor:csub(tensor2) ###
+<a name="torch.csub"></a>
-<a name="x:csub"></a>
-### tensor1:csub(tensor2) ###
-<a name="x:csub"></a>
-
-Subtracts `tensor2` from `tensor1`, in place.
+Subtracts `tensor2` from `tensor`, in place.
The number of elements must match, but sizes do not matter.
```lua
@@ -2704,36 +2707,38 @@ They return a `ByteTensor` in which each element is `0` or `1` indicating if the
Implements `<` operator comparing each element in `a` with `b` (if `b` is a number) or each element in `a` with corresponding element in `b`.
-<a name="torch.lt"></a>
+<a name="torch.le"></a>
### torch.le(a, b) ###
Implements `<=` operator comparing each element in `a` with `b` (if `b` is a number) or each element in `a` with corresponding element in `b`.
-<a name="torch.lt"></a>
+<a name="torch.gt"></a>
### torch.gt(a, b) ###
Implements `>` operator comparing each element in `a` with `b` (if `b` is a number) or each element in `a` with corresponding element in `b`.
-<a name="torch.lt"></a>
+<a name="torch.ge"></a>
### torch.ge(a, b) ###
Implements `>=` operator comparing each element in `a` with `b` (if `b` is a number) or each element in `a` with corresponding element in `b`.
-<a name="torch.lt"></a>
+<a name="torch.eq"></a>
### torch.eq(a, b) ###
Implements `==` operator comparing each element in `a` with `b` (if `b` is a number) or each element in `a` with corresponding element in `b`.
-<a name="torch.lt"></a>
+<a name="torch.ne"></a>
### torch.ne(a, b) ###
Implements `~=` operator comparing each element in `a` with `b` (if `b` is a number) or each element in `a` with corresponding element in `b`.
+<a name="torch.all"></a>
+<a name="torch.any"></a>
### torch.all(a) ###
### torch.any(a) ###