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

Deprecate rows/cols in favour of getRows/getColumns #190

Open
wants to merge 8 commits into
base: SNAPSHOT
Choose a base branch
from

Conversation

JozsefKutas
Copy link

This replaces rows/cols with getRows/getColumns to be consistent with the rest of the SimpleMatrix API. All other methods (except getNumCols) use columns rather than cols. All other getters/setters (except diag/zero) include a verb in the name to convery the action (get/extract/set/insertInto).

I understand there's a tradeoff between API consistency and avoiding breaking the existing API, so this PR is just a suggestion.

This also fixes the unit test for cols which was previously just a duplicate of the unit test for rows.

This PR follows from #188 - the two overlap, so it didn't seem to make sense to separate them. I can separate this if there are problems with #188.

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.

1 participant