Skip to content

Commit e638fc3

Browse files
committed
Fix errors on 0.7
1 parent fbcd5d4 commit e638fc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tables.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
function computetables(exponents::Matrix{T}) where {T<:Integer}
33
m, n = size(exponents)
4-
lookuptable = exponents'
4+
lookuptable = permutedims(exponents, (2, 1))
55

66
for j=1:m
77
sort!(@view lookuptable[:, j])
@@ -29,7 +29,7 @@ function computetables(exponents::Matrix{T}) where {T<:Integer}
2929
differences[i, j] = lookuptable[j, i]
3030
end
3131

32-
lookuptable = reshape(lookuptable, (m, n))
32+
lookuptable = permutedims(lookuptable, (2, 1))
3333
for j=1:n, i=1:m
3434
for k = 1:maxk
3535
if differences[i, k] == exponents[i, j]

0 commit comments

Comments
 (0)