Skip to content
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

Add method to find region from row,col #23

Open
mlwyatt opened this issue May 1, 2017 · 1 comment
Open

Add method to find region from row,col #23

mlwyatt opened this issue May 1, 2017 · 1 comment

Comments

@mlwyatt
Copy link
Owner

mlwyatt commented May 1, 2017

region = size*((r-1)/size)+((c-1)/size) # 0-index
region = size*((r-1)/size)+((c-1)/size)+1 # 1-index

(verify)

@mlwyatt
Copy link
Owner Author

mlwyatt commented May 1, 2017

use 0 based index for region and for cells for better readability
region = size * (r/size)+(c/size)

mlwyatt added a commit that referenced this issue Jun 14, 2017
@mlwyatt mlwyatt assigned mlwyatt and unassigned mlwyatt Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant