Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Nov 29, 2024
1 parent 0f514ba commit c0ba60a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/gretl_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -11518,11 +11518,13 @@ gretl_matrix_row_concat (const gretl_matrix *a, const gretl_matrix *b,
int cr, cc;
int i, j, k;

if (matrix_is_scalar(a) && b->cols != 1) {
if (matrix_is_scalar(a) && b->cols > 1) {
/* 2024-11-29: was b->cols != 1 above */
scalar_a = 1;
cr = b->rows + 1;
cc = b->cols;
} else if (matrix_is_scalar(b) && a->cols != 1) {
} else if (matrix_is_scalar(b) && a->cols > 1) {
/* 2024-11-29: was a->cols != 1 above */
scalar_b = 1;
cr = a->rows + 1;
cc = a->cols;
Expand Down

0 comments on commit c0ba60a

Please sign in to comment.