Skip to content

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

Open
JozsefKutas wants to merge 8 commits intolessthanoptimal:SNAPSHOTfrom
JozsefKutas:rename-rows-cols
Open

Deprecate rows/cols in favour of getRows/getColumns#190
JozsefKutas wants to merge 8 commits intolessthanoptimal:SNAPSHOTfrom
JozsefKutas:rename-rows-cols

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