Skip to content

Commit 0014201

Browse files
committed
fix #1
1 parent 3478717 commit 0014201

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
julia 0.2-

src/Hadamard.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function ifwht{T<:fftwNumber}(X::Array{T}, region)
142142
return [ Y[1 + ((i >> 1) $ i)] for i = 0:length(Y)-1 ]
143143
else
144144
sz = [size(Y)...]
145-
tmp = Array(T, max(sz[region])) # storage for out-of-place permutations
145+
tmp = Array(T, maximum(sz[region])) # storage for out-of-place perm.
146146
for d in region
147147
# somewhat ugly loops to do 1d permutations along dimension d
148148
na = prod(sz[d+1:end])

test/hadamard.jl renamed to test/test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ H32 = [ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
8383
@assert ifwht(ieye(32),2)' == H32
8484

8585
X = reshape(sin([1:1024*32]), 1024,32);
86-
norminf(A) = max(abs(A))
86+
norminf(A) = maximum(abs(A))
8787

8888
for f in (:fwht, :fwht_natural, :fwht_dyadic)
8989
fi = symbol(string("i", f))

0 commit comments

Comments
 (0)