From 455f4a8259224afd91b058d8fbf2d0f71789ae10 Mon Sep 17 00:00:00 2001 From: Daniel Sharp Date: Wed, 26 Apr 2023 10:52:39 -0400 Subject: [PATCH] Fix JuliaToEigenMat --- bindings/julia/src/JlArrayConversions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/julia/src/JlArrayConversions.cpp b/bindings/julia/src/JlArrayConversions.cpp index 9a412fc5..6ed80a02 100644 --- a/bindings/julia/src/JlArrayConversions.cpp +++ b/bindings/julia/src/JlArrayConversions.cpp @@ -39,8 +39,7 @@ StridedMatrix JuliaToKokkos(jlcxx::ArrayRef Eigen::Map,0,Eigen::OuterStride<>> JuliaToEigenMat(jlcxx::ArrayRef mat) { int* mptr = mat.data(); unsigned int rows = size(mat,0); - unsigned int cols = size(mat,1); - return Eigen::Map,0,Eigen::OuterStride<>>(mptr, rows, cols, Eigen::OuterStride<>(std::max(rows,cols))); + return Eigen::Map,0,Eigen::OuterStride<>>(mptr, rows, cols, Eigen::OuterStride<>(rows)); } /**