Skip to content

Commit

Permalink
Fix bug in generate_tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed Jul 22, 2015
1 parent 6a011b6 commit 97259e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hash_tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

function generate_tables(num_vars, order)

index_table = Vector{Vector{Int}}[generate_index_vectors(num_vars, i) for i in 0:order]
index_table = [generate_index_vectors(num_vars, i) for i in 0:order]

pos_table = map(make_inverse_dict, index_table)
size_table = map(length, index_table)
Expand All @@ -34,7 +34,7 @@ end
function generate_index_vectors(num_vars, degree)

if num_vars == 1
return [(degree,)]
return Vector{Int}[ [degree] ]
end

indices = Vector{Int}[]
Expand Down

0 comments on commit 97259e0

Please sign in to comment.