Skip to content

Commit 7e2adba

Browse files
committed
schur_buf copied by columns
1 parent 2e8d5db commit 7e2adba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

highs/ipm/hipo/factorhighs/DenseFactHybrid.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ Int denseFactFH(char format, Int n, Int k, Int nb, double* A, double* B,
220220
// schur_buf contains Schur complement in hybrid format (with full
221221
// diagonal blocks). Store it by columns in B (with full diagonal
222222
// blocks).
223-
for (Int buf_row = 0; buf_row < nrow; ++buf_row) {
224-
const Int N = ncol;
225-
callAndTime_daxpy(N, 1.0, &schur_buf[buf_row * ncol], 1,
226-
&B[B_offset + buf_row], nrow, data);
223+
for (Int buf_col = 0; buf_col < ncol; ++buf_col) {
224+
const Int N = nrow;
225+
callAndTime_daxpy(N, 1.0, &schur_buf[buf_col], ncol,
226+
&B[B_offset + buf_col * nrow], 1, data);
227227
}
228228
}
229229

0 commit comments

Comments
 (0)