Skip to content

Commit

Permalink
set xrows ldx when reading the B matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPernet committed May 10, 2019
1 parent 18e02fe commit f064ed6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test-fgesv.C
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ bool test_rect_fgesv (Field& F, FFLAS_SIDE side, string fileA, string fileB, siz
if (!fileB.empty()){
ReadMatrix (fileB, F, brows, bcols, B);
ldb = ldr = bcols;
if (side == FflasLeft) {ldx = xcols = bcols; xrows = n; nbeq = m;}
else {ldx = xcols = m; xrows = brows; nbeq = n;}
} else {
if (side == FflasLeft) {brows = m; bcols = k;ldx = xcols = k; xrows = n; nbeq = m;}
else {brows = k; bcols = n;ldx = xcols = m; xrows = k; nbeq = n;}
Expand Down

0 comments on commit f064ed6

Please sign in to comment.