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

matlab like array indexing #118

Merged
merged 4 commits into from
Mar 25, 2014
Merged

matlab like array indexing #118

merged 4 commits into from
Mar 25, 2014

Conversation

mschuene
Copy link
Collaborator

First version of the matlab style array indexing function proposed here: https://groups.google.com/forum/#!topic/numerical-clojure/zFjIl8zgX6M , to discuss the syntax.
Currently only supports getting elements, not setting them. Maybe another method for this would be the best way of adding it.
Supports all of http://www.mathworks.de/company/newsletters/articles/matrix-indexing-in-matlab.html except the setting of the selected indices.

@mikera
Copy link
Owner

mikera commented Mar 23, 2014

Hi Maik,

I like where this is going, but not sure if we've quite bottomed out the API yet. We should do this before we merge into the public API.

Can you either:

  • put it in the clojure.core.matrix.experimental namespace
  • have a separate "selectors" branch separate from develop.

@mschuene
Copy link
Collaborator Author

Hi, I created a new branch selector in my fork and moved the selector functions to a new namespace clojure.core.matrix.select. It seems github doesn't let me do a pull request which would create a new branch. Can you merge it in if you think it is okay?

@mikera
Copy link
Owner

mikera commented Mar 24, 2014

That sounds fine to me... but did you push to GitHub? I'm still seeing the old commits....

@mschuene
Copy link
Collaborator Author

ups, i pushed it now

mikera added a commit that referenced this pull request Mar 25, 2014
matlab like array indexing
@mikera mikera merged commit 848b123 into mikera:develop Mar 25, 2014
@mikera
Copy link
Owner

mikera commented Mar 25, 2014

Look good, thanks!

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