feat: allocate first and then proceed to create matrix from Vec of Ro…#159
Merged
Merged
Conversation
Collaborator
Author
|
Any feedback is appreciated @titoeb |
morenol
marked this pull request as ready for review
September 19, 2022 15:42
Contributor
Hey @morenol ! With regard the the return value if the vector of row-vectors is empty we currently rely on it. So therefore I would suggest keeping it for now. If there are some good reasons to change that behavior, that would also be ok for me, but then we also need to change the implementation I referenced. I cannot review, but from my perspective, there is nothing blocking this PR. |
Collaborator
|
Thanks people! |
Mec-iS
approved these changes
Sep 20, 2022
morenol
added a commit
that referenced
this pull request
Nov 8, 2022
#159) * feat: allocate first and then proceed to create matrix from Vec of RowVectors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…wVectors
I was trying to use this function in a 5000 x 10000 matrix and it took a lot of time and it didn't finish,
v_stackseems very expensive to be used here.Not sure if we should return Option<> or an empty matrix when the vec is empty