-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
Inspecting the Size of a JuMPArray #1294
Comments
I was following https://docs.julialang.org/en/latest/devdocs/offset-arrays/, but the guidance may have changed for 0.6/0.7. |
I see, the logic outlined in offset arrays makes sense to me, but I had not been exposed to them yet so I was lost for the function naming pattern. A more helpful error message would surely mitigate the issue. Possibly the root of my confusion is |
The use of |
An improved error message sounds good to me. |
Both OffsetArrays and AxisArrays now define |
Initially I tried to inspect the size of a JuMPArray as follows,
After inspecting the source, I determined this would do what I need,
It might be helpful to have some default behavior for the standard Julia array functions like
length
andsize
.The text was updated successfully, but these errors were encountered: