Skip to content

Commit 95fcb8f

Browse files
committed
Fix test for split into no-loops.
1 parent 3fa5185 commit 95fcb8f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/miscellaneous.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ function splitintonoloop(U = randn(2,2), E1 = randn(2))
664664
t = 1
665665
a = 1.0
666666
_s = 0.0
667-
k,n = size(U)
667+
n, k = size(U)
668668
@avx for j = 1:k
669669
for i = 1:n
670670
u = tanh(a * U[i,j])
@@ -680,7 +680,7 @@ function splitintonoloop_reference(U = randn(2,2), E1 = randn(2))
680680
t = 1
681681
a = 1.0
682682
_s = 0.0
683-
k,n = size(U)
683+
n, k = size(U)
684684
for j = 1:k
685685
for i = 1:n
686686
u = tanh(a * U[i,j])
@@ -898,9 +898,9 @@ end
898898
R .+= randn.(T); Rc = copy(R);
899899
@test maxavx!(R, Q, true) == max.(vec(maximum(Q, dims=(2,3))), Rc)
900900

901-
U1 = randn(5,7), E1 = randn(7);
902-
U2, E2 = splitintonoloop_reference(copy(U1), copy(E1))
903-
splitintonoloop(U1, E1)
901+
U1 = randn(5,7); E1 = randn(7);
902+
U2, E2 = splitintonoloop_reference(copy(U1), copy(E1));
903+
splitintonoloop(U1, E1);
904904
@test U1 U2
905905
@test E1 E2
906906
end

0 commit comments

Comments
 (0)