Skip to content

Commit

Permalink
swap W indexing to make more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelSlevinsky committed Nov 4, 2024
1 parent 4947845 commit 7d91fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GramMatrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function compute_skew_generators(W::GramMatrix{T}) where T
n = size(W, 1)
G = zeros(T, n, 2)
G[n, 1] = one(T)
G[:, 2] .= W[n-1, :]*X[n-1, n] + W[n, :]*X[n, n] - X'W[:, n]
G[:, 2] .= W[:, n-1]*X[n-1, n] + W[:, n]*X[n, n] - X'W[:, n]
return G
end

Expand Down

0 comments on commit 7d91fc3

Please sign in to comment.