-
Notifications
You must be signed in to change notification settings - Fork 18
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
Do we need to deal w/ 0-based and 1-based matrices? #4
Comments
Just as a thought exercise, imagine a zone system where zones all have In our 3x3 example, mat["curly"]["larry"] would return the value at Now, this is where things start to break down. Imagine an index where the mat[0,0] == out of bounds. Ouch. So, on the one hand, not being prescriptive about zone names seems good. On Other thoughts? On Wed, Jul 31, 2013 at 12:04 PM, Billy Charlton
|
Oops, that last example is wrong. Should have written mat[0][0]. Y'all knew On Wed, Jul 31, 2013 at 12:22 PM, Peter Schmiedeskamp <peter@thoughtspot.net
|
The new Mapping API handles the case where you have an equivalency list which maps row/column offsets to an index value (e.g. zone number). I've also hacked ViTables to show the mapping as the row/column header, if one and only one mapping exists. So maybe this covers the most basic cases. |
Cube, Transcad, and Emme all use zone numbers that are 1-based, which is a huge pain in the ass.
How do we want to deal with this? A flag? Ignore it and leave it to the user?
The text was updated successfully, but these errors were encountered: