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

Rename genrows/gencolumns to rows/columns #872

Merged
merged 3 commits into from
Dec 24, 2020
Merged

Conversation

bluss
Copy link
Member

@bluss bluss commented Dec 23, 2020

Remove these old functions which were deprecated:

  • rows, cols (for row and column count; the new names are nrows and ncols)

Now we can use the rows/cols method names for something better!
Rename the following without behaviour change:

  • genrows/_mut -> rows/_mut
  • gencolumns/_mut -> columns/_mut

The old names are deprecated. New names should be easier to understand. Note that the rows/columns names make most sense with two-dim arrays, with others it has a "generalized" meaning (see docs) - using lanes instead might be better for clarity sometimes.

Fixes #698

Use replacements .nrows() and .ncols() respectively
@bluss bluss added this to the 0.15.0 milestone Dec 23, 2020
Rename these to give them clearer names. Rows is for rows (and
generalized rows, which is a bit strange). Columns is for columns (and
generalized ones).

Generalized just means that we take the concept of rows/columns and
somehow extend it to n-dimension arrays.

The old names .genrows/gencolums/_mut are deprecated
@bluss bluss merged commit a9dc5f6 into master Dec 24, 2020
@bluss bluss deleted the rename-rows-columns branch December 24, 2020 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename genrows()?
1 participant