Skip to content

Commit

Permalink
mir-matrix-reorder transpose fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaciel committed Mar 4, 2024
1 parent 98781e9 commit 9ffaddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/mir-matrix-reorder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void MIRMatrixReorder::execute(const eckit::option::CmdArgs& args) {

// compress triplets, create output matrix
std::sort(trips.begin(), trips.end());
eckit::linalg::SparseMatrix W(M.rows(), M.cols(), trips);
eckit::linalg::SparseMatrix W(transpose ? M.cols() : M.rows(), transpose ? M.rows() : M.cols(), trips);


// create output matrix
Expand Down

0 comments on commit 9ffaddf

Please sign in to comment.