Commit afa86b81 authored by Emilia Juda's avatar Emilia Juda
Browse files

fixed the stride of the numpy matrix

parent d29fab95
......@@ -57,7 +57,7 @@ struct NekMatrixToPython
np::from_data(
mat->GetRawPtr(), np::dtype::get_builtin<T>(),
py::make_tuple(nRows, nCols),
py::make_tuple(sizeof(T), nCols * sizeof(T)),
py::make_tuple(sizeof(T), nRows * sizeof(T)),
capsule).ptr());
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment