-
Notifications
You must be signed in to change notification settings - Fork 164
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
Modelica.Math.BooleanVectors.allTrue gives wrong result when size(b,1)=0 #682
Comments
Comment by otter on 9 Dec 2012 15:28 UTC To summarize, a change of the semantics of this function requires a conversion script and therefore the ticket milestone is changed to "MSL with conversion script". |
Changelog removed by otter on 9 Dec 2012 15:28 UTC |
Modified by otter on 18 Jul 2013 11:54 UTC |
Comment by dietmarw on 1 Aug 2015 21:36 UTC |
Comment by dietmarw on 1 Aug 2015 21:39 UTC |
Regarding the function in conversion scripts:
|
Make Modelica.Math.BooleanVectors.allTrue equivalent to obsolete (and to be removed) function Modelica.StateGraph.Temporary.allTrue.
Reported by jriel on 12 Jan 2012 20:09 UTC
When size(b,1) of allTrue is 0, meaning there are no inputs, the output should be true, not false.
That is, the function allTrue(), with no inputs, should return true. One way to see this is that
allTrue(x1,x2,...,xn) = allTrue(allTrue(x1,...,xm), allTrue(xm+1,..,xn)). So
allTrue(x) = allTrue(allTrue(x),allTrue()) which returns x only if allTrue() = true.
Migrated-From: https://trac.modelica.org/Modelica/ticket/682
The text was updated successfully, but these errors were encountered: