Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Octave 5.2.0 / Bugfix in usage of dim_vector #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lunglehrt
Copy link

Hello,
I made some small fixes to compile the package on Fedora 33 with GCC 10.2.1 and GNU Octave 5.2.0 and replaced some function calls that were deprecated in GNU Octave 4.4.
Furthermore, I found an error in the usage of the Octave dim_vector class which caused a lot of tests to fail. For me, all tests now pass.
Please have a look at the changes yourself.
Best regards,
Lukas

From the documentation of dim_vector.numel() in GNU Octave 5.2.0:
Return the number of elements that a matrix with this dimension vector
would have, NOT the number of dimensions (elements in the dimension
vector).

The correct call is dim_vector.ndims().

Consequently, the template alloc_hsize(...) was removed and replaced by
separate versions for Matrix and dim_vector data types.

Now all tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant