Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Don't lose array sizes in copyTo #94

Merged
merged 1 commit into from
Sep 17, 2019
Merged

Don't lose array sizes in copyTo #94

merged 1 commit into from
Sep 17, 2019

Conversation

jkflying
Copy link
Collaborator

Before, if the array of fixed size was passed as a function argument, it would instead be treated as a pointer since we are taking a reference of it. This fixes that, allowing an array to be passed into a function and then a Matrix.copyTo() to work.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8462c77 on copyto-array-sizes into 51d2f9f on master.

@jkflying jkflying requested a review from MaEtUgR September 17, 2019 12:30
Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

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

Nice!

@jkflying jkflying merged commit b4714e2 into master Sep 17, 2019
@MaEtUgR MaEtUgR deleted the copyto-array-sizes branch September 17, 2019 13:11
@MaEtUgR
Copy link
Member

MaEtUgR commented Sep 17, 2019

Cool! I didn't know that trick and was assuming if you don't pass the reference it is doing another copy in between...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants