Skip to content

Commit 0ce7818

Browse files
committed
corrected small straggler issue in rref function
1 parent 09d5e7a commit 0ce7818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ function _rref_col_swap!(A::CTMatrixTypes, row_range::AbstractUnitRange{Int}, co
626626
ind != i && swap_rows!(A, ind, i)
627627

628628
# eliminate
629-
for k = row_range.start:nr
629+
for k = first(row_range):nr
630630
if k != i
631631
# do a manual loop here to reduce allocations
632632
d = A[k, j]
@@ -674,7 +674,7 @@ function _rref_col_swap!(A::CTMatrixTypes, row_range::AbstractUnitRange{Int}, co
674674
ind != i && swap_rows!(A, ind, i)
675675

676676
# eliminate
677-
for k = row_range.start:nr
677+
for k = first(row_range):nr
678678
if k != i
679679
if isone(A[k, j])
680680
# do a manual loop here to reduce allocations

0 commit comments

Comments
 (0)