• Matthew Woehlke's avatar
    Fix arrays with zero-size dimensions (#4038) · 479e9a50
    Matthew Woehlke authored
    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.
    479e9a50
test_eigen.cpp 17.8 KB