jucor/torch — pull request #1 by jucor (2012-12-12 14:36:47+00:00)
Title: Allow for equal bounds in range, generating 1 element ``` [julien@stmartin build (RangeEqualBounds *)]$ torch Try the IDE: torch -ide Type help() for more info Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU Lua 5.1  Copyright (C) 1994-2008 Lua.or

t7> return torch.range(1,1,-1)
1
[torch.DoubleTensor of dimension 1]

t7> torch.test()
Running 34 tests
__________________________________ ==> Done

Completed 79 asserts in 34 tests with 0 errors

-----
```