-
Notifications
You must be signed in to change notification settings - Fork 5
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
bug with min and max function #6
Comments
Hmm, yes that doesn't sound right. What error do you get? We have generally only fixed issues that allow's xmgr to build on newer systems, but it would be nice to correct that behavior. |
I'm not sure if this is the code in question, but here the first argument must be an array of values, while the second argument is an integer defining the number of elements. xmgr-resurrection/src/setutils.c Lines 247 to 264 in 9ec1245
Inspecting |
Hi The ideal behaviour would be:
The vmin function, minimum of first n elements seems a bit odd to me. |
Hi
I see a weird bug with the min and max functions.
y=min(x,1) is fine
but
y=min(1,x) produces an error.
It seems that any expressions with x need to be in the first argument.
If this is really an error and hard to fix, a note in documentation might help.
As an aside, xmgrace works in both cases, but uses the function 'minof'
The text was updated successfully, but these errors were encountered: