Skip to content

Commit 0bfc248

Browse files
committed
Merge pull request #2 from jiahao/master
merge from master
2 parents 5f80da2 + 2fd68c5 commit 0bfc248

File tree

11 files changed

+29
-332
lines changed

11 files changed

+29
-332
lines changed

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
language: cpp
22
compiler:
3-
- clang
3+
- clang
44
notifications:
5-
email: false
5+
email: false
66
env:
7-
matrix:
87
- JULIAVERSION="juliareleases"
98
- JULIAVERSION="julianightlies"
109
before_install:
11-
- sudo add-apt-repository ppa:staticfloat/julia-deps -y
12-
- sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
13-
- sudo apt-get update -qq -y
14-
- sudo apt-get install libpcre3-dev julia -y
10+
- sudo add-apt-repository ppa:staticfloat/julia-deps -y
11+
- sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
12+
- sudo apt-get update -qq -y
13+
- sudo apt-get install libpcre3-dev julia -y
14+
- git config --global user.name "Travis User"
15+
- git config --global user.email "travis@example.net"
16+
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
1517
script:
16-
- julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("RandomMatrices"))`); Pkg.pin("RandomMatrices"); Pkg.resolve()'
17-
- if [ $JULIAVERSION = "julianightlies" ]; then julia --code-coverage test/runtests.jl; fi
18-
- if [ $JULIAVERSION = "juliareleases" ]; then julia test/runtests.jl; fi
18+
- julia -e 'Pkg.init(); Pkg.clone(pwd())'
19+
- julia -e 'Pkg.test("RandomMatrices", coverage=true)'
1920
after_success:
20-
- if [ $JULIAVERSION = "julianightlies" ]; then julia -e 'cd(Pkg.dir("RandomMatrices")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'; fi
21+
- julia -e 'cd(Pkg.dir("RandomMatrices")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

LICENSE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The RandomMatrices Julia module is licensed under the MIT License:
22

3-
> Copyright (c) 2013: Jiahao Chen, Alan Edelman and Jameson Nash
3+
> Copyright (c) 2013-2014: Jiahao Chen, Alan Edelman, Jameson Nash, Sheehan
4+
> Olver and other contributors
45
>
56
> Permission is hereby granted, free of charge, to any person obtaining
67
> a copy of this software and associated documentation files (the

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ samples and their associated distributions are provided.
1111
The names of the various ensembles can vary widely across disciplines. Where possible,
1212
synonyms are listed.
1313

14-
## License
15-
Copyright (c) 2013 [Jiahao Chen](https://github.com/jiahao) <jiahao@mit.edu>
16-
17-
Distributed under the [MIT License](http://opensource.org/licenses/MIT).
18-
1914
[![Build Status](https://travis-ci.org/jiahao/RandomMatrices.jl.png?branch=master)](https://travis-ci.org/jiahao/RandomMatrices.jl)
20-
[![RandomMatrices](http://pkg.julialang.org/badges/RandomMatrices_0.2.svg)](http://pkg.julialang.org/?pkg=RandomMatrices&ver=0.2)
21-
[![RandomMatrices](http://pkg.julialang.org/badges/RandomMatrices_0.3.svg)](http://pkg.julialang.org/?pkg=RandomMatrices&ver=0.3)
15+
[![RandomMatrices](http://pkg.julialang.org/badges/RandomMatrices_release.svg)](http://pkg.julialang.org/?pkg=RandomMatrices&ver=release)
16+
[![RandomMatrices](http://pkg.julialang.org/badges/RandomMatrices_nightly.svg)](http://pkg.julialang.org/?pkg=RandomMatrices&ver=nightly)
2217
[![Coverage Status](https://img.shields.io/coveralls/jiahao/RandomMatrices.jl.svg)](https://img.shields.io/coveralls/jiahao/RandomMatrices.jl.svg)
2318

19+
Additional functionality is provided when these optional packages are installed:
20+
- Symbolic manipulation of Haar matrices with [GSL.jl](https://github.com/jiahao/GSL.jl)
21+
- Invariant ensembles with [ApproxFun.jl](https://github.com/dlfivefifty/ApproxFun.jl)
22+
2423
# Gaussian matrix ensembles
2524

2625
Much of classical random matrix theory has focused on matrices with matrix elements comprised of

REQUIRE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
julia 0.3-
2-
Catalan
1+
julia 0.3
2+
Combinatorics
33
Distributions
44
ODE

src/.FormalPowerSeries.jl.swp

-28 KB
Binary file not shown.

src/Haar.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Catalan
2-
31
export permutations_in_Sn, compose, cycle_structure, data, part, #Functions working with partitions and permutations
42
partition, Haar, expectation, WeingartenUnitary
53

@@ -144,7 +142,7 @@ function expectation(X::Expr)
144142
##################################
145143
# Step 2. Enumerate permutations #
146144
##################################
147-
AllTerms = {}
145+
AllTerms = Any[]
148146
for sigma in @task permutations_in_Sn(n)
149147
for tau in @task permutations_in_Sn(n)
150148
sigma_inv=permutation_inverse(sigma)
@@ -188,7 +186,7 @@ function expectation(X::Expr)
188186
println("START PARSING")
189187
println("The term is =", ReindexedSymbols[end])
190188
Symb, left_idx, right_idx = pop!(ReindexedSymbols)
191-
Expression={{{Symb}, left_idx, right_idx}}
189+
Expression=[Any[Symbol[Symb], left_idx, right_idx]]
192190
while length(ReindexedSymbols) > 0
193191
pop_idx = expr_idx = do_transpose = is_left = nothing
194192
for expr_iter in enumerate(Expression)
@@ -229,7 +227,7 @@ function expectation(X::Expr)
229227
if pop_idx == nothing #Found nothing, start new expression blob
230228
println("New word: The term is ", ReindexedSymbols[1])
231229
Symb, left_idx, right_idx = delete!(ReindexedSymbols, 1)
232-
push!(Expression, {{Symb}, left_idx, right_idx})
230+
push!(Expression, [Symbol[Symb], left_idx, right_idx])
233231
else #Found something
234232
println("The term is =", ReindexedSymbols[pop_idx])
235233
Symb, col_idx, row_idx = delete!(ReindexedSymbols, pop_idx)
@@ -246,7 +244,7 @@ function expectation(X::Expr)
246244
println("DONE PARSING TREE")
247245

248246
# Evaluate closed cycles
249-
NewExpression={}
247+
NewExpression=Any[]
250248
for ExprChunk in Expression
251249
ExprBlob, start_idx, end_idx = ExprChunk
252250
print(ExprChunk, " => ")

0 commit comments

Comments
 (0)