~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to test/perf2/perf2.jl

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-01-16 12:29:42 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130116122942-x86e42akjq31repw
Tags: 0.0.0+20130107.gitd9656f41-1
* New upstream snashot
* No longer try to rebuild helpdb.jl.
   + debian/rules: remove helpdb.jl from build-arch rule
   + debian/control: move back python-sphinx to Build-Depends-Indep
* debian/copyright: reflect upstream changes
* Add Build-Conflicts on libatlas3-base (makes linalg tests fail)
* debian/rules: replace obsolete USE_DEBIAN makeflag by a list of
  USE_SYSTEM_* flags
* debian/rules: on non-x86 systems, use libm instead of openlibm
* dpkg-buildflags.patch: remove patch, applied upstream
* Refreshed other patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
require("$JULIA_HOME/../../examples/list.jl")
20
20
 
21
 
function listn1n2(n1::Int64,n2::Int64)
22
 
    l1 = Nil{Int64}()
 
21
function listn1n2(n1::Int,n2::Int)
 
22
    l1 = Nil{Int}()
23
23
    for i=n2:-1:n1
24
 
        l1 = Cons{Int64}(i,l1)
 
24
        l1 = Cons{Int}(i,l1)
25
25
    end
26
26
    l1
27
27
end
109
109
 
110
110
@timeit parse() "splitline"
111
111
 
112
 
file_remove("random.csv")
 
112
rm("random.csv")
113
113
 
114
114
load("json")
115
115