Skip to content

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.

3 participants