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>2014-06-13 20:44:31 +0400
committerSoumith Chintala <soumith@gmail.com>2014-06-13 20:44:31 +0400
commit17901405b75abb46be14a69f7f5d5d5ed4d020b6 (patch)
treee31f0c0cd067f45bf1c4c8f9c4b3e1785419a455 /TensorMath.lua
parent731452d69ee7ce4c66092f343beaeff3d9275ef8 (diff)
parentab4dddb54f2bf328cf83346e7b21d1316c0a7c46 (diff)
Merge pull request #42 from nicholas-leonard/master
torch.renorm
Diffstat (limited to 'TensorMath.lua')
-rw-r--r--TensorMath.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/TensorMath.lua b/TensorMath.lua
index 2edac20..e2863cd 100644
--- a/TensorMath.lua
+++ b/TensorMath.lua
@@ -794,6 +794,14 @@ static void THTensor_random1__(THTensor *self, THGenerator *gen, long b)
{name=Tensor},
{name=real},
{name="index"}})
+
+ wrap("renorm",
+ cname("renorm"),
+ {{name=Tensor, default=true, returned=true, method={default='nil'}},
+ {name=Tensor, method={default=1}},
+ {name=real},
+ {name="index"},
+ {name=real}})
wrap("dist",
cname("dist"),