-
Notifications
You must be signed in to change notification settings - Fork 16
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
GrowExpansion() typo? #3
Comments
You mean in here?
update: I took a look at it. Turns out this is only used in the tests, and in the caller, elen is exactly e.Length: So the two versions are logically equivalent. However, my personal preference is to just use |
I suspect it is a bug.
This is long ago for me, but as I remember it, Also note the
It would be good to confirm with some test or scenario that breaks with the current code. However, for me this is not an active project. |
I do note that |
as i understand if input elen and e.Length happen to be equal then it wouldn't matter. But if, say, e was the output of a zero elim expansion then elen wouldn't be the same as e.Length |
i don't think any other methods use .Length |
i think elen is the equivalent of e.Count in a List<>. a lot of zero elim expansion operations seem to return an array that's bigger than the number of components in that expansion because the arrays are initialized before we know how many components are zero (and therefore eliminated) |
By
for (eindex = 0; eindex < e.Length; eindex++)
did you mean
for (eindex = 0; eindex < elen; eindex++)
?I know it's not used further. Doesn't affect anything else. I was just reading through the code to understand it better.
The text was updated successfully, but these errors were encountered: