Skip to content

Commit 6821069

Browse files
committed
Fix swap_cols! for Matrix{T}
1 parent c7227f1 commit 6821069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/julia/Matrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ end
112112
function swap_cols!(a::Matrix{T}, i::Int, j::Int) where T <: NCRingElement
113113
if i != j
114114
for k = 1:nrows(a)
115-
a[k, i], a[k, j] = a[k, i], a[k, j]
115+
a[k, i], a[k, j] = a[k, j], a[k, i]
116116
end
117117
end
118118
return a

0 commit comments

Comments
 (0)