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:
authorFrederic Besse <fbesse@google.com>2016-02-16 17:33:48 +0300
committerFrederic Besse <fbesse@google.com>2016-02-16 17:33:48 +0300
commit1bde4df6514aee0d9ab5dfb5cea664cb1440619f (patch)
tree88b91b97d932b6013e9415d3dfcee3cc0c64f402 /TensorMath.lua
parent14ef272fff8206546a948b7161fc143115564994 (diff)
Added torch.equal function which performs a tensor equality check
Diffstat (limited to 'TensorMath.lua')
-rw-r--r--TensorMath.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/TensorMath.lua b/TensorMath.lua
index f76afe0..6f82abc 100644
--- a/TensorMath.lua
+++ b/TensorMath.lua
@@ -245,6 +245,12 @@ for _,Tensor in ipairs({"ByteTensor", "CharTensor",
{name=Tensor},
{name=accreal, creturned=true}})
+ wrap("equal",
+ cname("equal"),
+ {{name=Tensor},
+ {name=Tensor},
+ {name="boolean", creturned=true}})
+
wrap("add",
cname("add"),
{{name=Tensor, default=true, returned=true, method={default='nil'}},