[Torch5-devel] new functions
Status: Pre-Alpha
Brought to you by:
andresy
|
From: Ronan C. <ro...@co...> - 2007-11-20 22:42:10
|
hey
i added:
- apply() in Tensor. x:apply(func) applies func to all element of
x, and returns x. a bit like lab.apply() but no memory creation.
- lab.range(xmin, xmax [, step]) returns a Tensor with values
between xmin (included) and xmax (possibly included, depending on the
step). steps between each value is 1 (default) or step (if given).
- lab.randperm(n) as in matlab, returns a Tensor containing a
permutations of the integers 1..n. Similar to random.shuffledIndices()
(but shuffledIndices() returns a Storage)
ronan.
|