Unverified Commit 479e9a50 authored by Matthew Woehlke's avatar Matthew Woehlke Committed by GitHub
Browse files

Fix arrays with zero-size dimensions (#4038)

When converting an array to an Eigen matrix, ignore the strides if any
dimension size is 0. If the array is empty, the strides aren't relevant,
and especially numpy ≥ 1.23 explicitly sets the strides to 0 in this
case. (See numpy commit dd5ab7b11520.)

Update tests to verify that this works, and continues to work.
parent 374a5b00
Supports Markdown
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