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

Make Matrix iterable (support for...of statement) #1184

Closed
erictamhk opened this issue Jul 24, 2018 · 2 comments · Fixed by #2155
Closed

Make Matrix iterable (support for...of statement) #1184

erictamhk opened this issue Jul 24, 2018 · 2 comments · Fixed by #2155

Comments

@erictamhk
Copy link

is the Matrix a iterable object?

@josdejong
Copy link
Owner

That's not the case, but it would be interesting to make Matrix iterable. Thanks for the suggestion Eric!

@josdejong josdejong changed the title does Matrix support for...of statement Make Matrix iterable (support for...of statement) Jul 24, 2018
cshaa added a commit to cshaa/mathjs that referenced this issue Apr 1, 2021
josdejong added a commit that referenced this issue May 9, 2021
* made dense and sparse matrices iterable, fixed #1184

* added matrixFromFunction, fixes #2153

* added tests for matrixFromFunction

* added matrixFromRows

* added matrixFromColumns

* added rows() and columns() for dense matrix

* improved sparse documentation a tiny bit

* fix linting issues

* added matrixFromRow/Column to seealso of row and column

* removed unnecessary duplication from matrixFromRows/Columns

* added babel runtime

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
@josdejong
Copy link
Owner

Published in v9.4.0

joshhansen pushed a commit to LearnSomethingTeam/mathjs that referenced this issue Sep 16, 2021
* made dense and sparse matrices iterable, fixed josdejong#1184

* added matrixFromFunction, fixes josdejong#2153

* added tests for matrixFromFunction

* added matrixFromRows

* added matrixFromColumns

* added rows() and columns() for dense matrix

* improved sparse documentation a tiny bit

* fix linting issues

* added matrixFromRow/Column to seealso of row and column

* removed unnecessary duplication from matrixFromRows/Columns

* added babel runtime

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants