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

Indexing options #20

Merged

Conversation

industrial-sloth
Copy link
Contributor

Add parameters to indtosub and subtoind to select row-major (numpy "C style") and/or zero-based indexing, versus current default matlab/fortran-style column-major and one-based indexing. Also add .iml files (intellij project files) to .gitignore.



def indtosub(data, dims):
"""Convert linear indexing to subscript indexing"""
def indtosub(data, dims, order='F', one_based=True):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No underscore in argument

@freeman-lab
Copy link
Member

@industrial-sloth All looks good! Those two comments are nits, I'll just fix after merging.

freeman-lab added a commit that referenced this pull request Sep 6, 2014
@freeman-lab freeman-lab merged commit a245f12 into thunder-project:master Sep 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants