Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/framework/pybind_casts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ template <typename T> struct type_caster<matrix<T>>{
if(py_matrix.ndim() != 2){
throw std::invalid_argument(std::string("Python: invalid matrix (empty array)."));
}
size_t ncols = py_matrix.shape(0);
size_t nrows = py_matrix.shape(1);
size_t nrows = py_matrix.shape(0);
size_t ncols = py_matrix.shape(1);
// Matrix looks ok, now we parse it
auto raw_mat = py_matrix.template unchecked<2>();
if(c_order){
Expand Down