This PR modifies the Python interface extension to_numpy for RowVectorBase. This change is needed since RowVectorView does not have contiguous data, yet we use getContiguousScalarData() to copy the row vector contents into the target Python array.
Testing I've completed
Updated test_simbody.py. The modified test failed before the fix, and passed after the fix.
Fixes issue #3439
Brief summary of changes
This PR modifies the Python interface extension
to_numpy
forRowVectorBase
. This change is needed sinceRowVectorView
does not have contiguous data, yet we usegetContiguousScalarData()
to copy the row vector contents into the target Python array.Testing I've completed
Updated
test_simbody.py
. The modified test failed before the fix, and passed after the fix.Looking for feedback on...
CHANGELOG.md (choose one)
This change is