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:
authorRonan Collobert <ronan@collobert.com>2012-02-03 14:04:01 +0400
committerRonan Collobert <ronan@collobert.com>2012-02-03 14:04:01 +0400
commitba1788242623cea0e1588dc0853f8c994d47a553 (patch)
treebe6b4319edc42d0b3fc5e521de24528e1c59d6cf /Tensor.lua
parentfc16a68f485380906c8889747037f5a9c68fcfbf (diff)
{min,max,sum,mean,var,std}all now without 'all' in lua
Diffstat (limited to 'Tensor.lua')
-rw-r--r--Tensor.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tensor.lua b/Tensor.lua
index 43465e3..a440042 100644
--- a/Tensor.lua
+++ b/Tensor.lua
@@ -20,11 +20,11 @@ local function Storage__printformat(self)
end
-- end
local tensor = torch.DoubleTensor(torch.DoubleStorage(self:size()):copy(self), 1, self:size()):abs()
- local expMin = tensor:minall()
+ local expMin = tensor:min()
if expMin ~= 0 then
expMin = math.floor(math.log10(expMin)) + 1
end
- local expMax = tensor:maxall()
+ local expMax = tensor:max()
if expMax ~= 0 then
expMax = math.floor(math.log10(expMax)) + 1
end