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

Restrict scalar indexing to Numbers #54

Merged
merged 1 commit into from
Aug 6, 2015
Merged

Conversation

timholy
Copy link
Member

@timholy timholy commented Aug 6, 2015

This lets us exploit Julia's new indexing utilities.

For the linspace thing to work, it will require a to-be-submitted julia PR, to which I'll link shortly.

This allows Interpolations to exploit Julia's abstract indexing
rules, which will give us things like
    itp[linspace(1,10,1001), linspace(1,15,201)]
for free.
@timholy
Copy link
Member Author

timholy commented Aug 6, 2015

JuliaLang/julia#12486

@tomasaschan
Copy link
Contributor

LGTM! Thanks for taking the time! :)

When the Julia PR merges, we might want to add a couple of sanity tests for this, too.

Referencing #48 here too, for completeness.

timholy added a commit that referenced this pull request Aug 6, 2015
Restrict scalar indexing to Numbers
@timholy timholy merged commit f8bedc3 into master Aug 6, 2015
@timholy timholy deleted the teh/index_with_numbers branch August 6, 2015 12:47
@timholy
Copy link
Member Author

timholy commented Aug 6, 2015

we might want to add a couple of sanity tests for this, too.

Ah, right; I should have waited to hit merge. I'll file an issue to remind myself.

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