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

Clarified matrix column order example in performance-tips.md #33650

Merged
merged 3 commits into from
Apr 28, 2020

Conversation

BioTurboNick
Copy link
Contributor

Makes clear to newcomers that accessing an array with : is specifying a loop.

(Nuked my old fork trying to fix an issue, so restoring PR #29894 based on my new fork, with changes.)

@BioTurboNick BioTurboNick changed the title Restored clarification of : as a loop Clarified matrix column order example in performance-tips.md Oct 23, 2019
@dkarrasch dkarrasch added the docs This change adds or pertains to documentation label Oct 24, 2019
@@ -778,6 +778,7 @@ adopted by C and Python (`numpy`) among other languages. Remembering the orderin
have significant performance effects when looping over arrays. A rule of thumb to keep in mind
is that with column-major arrays, the first index changes most rapidly. Essentially this means
that looping will be faster if the inner-most loop index is the first to appear in a slice expression.
Keep in mind that accessing an array with `:` is a loop.
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Keep in mind that accessing an array with `:` is a loop.
Keep in mind that accessing an array with `:` is an implicit loop.

@ViralBShah ViralBShah merged commit 1e4c28b into JuliaLang:master Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants