Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 9f6d7f0

Browse files
fix loop ordering
1 parent e4cb322 commit 9f6d7f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/differentiation/compute_jacobian_ad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ function generate_chunked_partials(x,colorvec,::Val{chunksize}) where chunksize
5959

6060
# partials = colorvec .== (1:maxcolor)'
6161
partials = BitMatrix(undef, length(colorvec), maxcolor)
62-
for j in 1:length(colorvec), i in 1:maxcolor
63-
partials[i,j] = colorvec[j] == i
62+
for i in 1:maxcolor, j in 1:length(colorvec)
63+
partials[j,i] = colorvec[j] == i
6464
end
6565

6666
padding_matrix = BitMatrix(undef, length(x), padding_size)

0 commit comments

Comments
 (0)