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

Add sparse copy #5147

Closed
wants to merge 3 commits into from
Closed

Add sparse copy #5147

wants to merge 3 commits into from

Conversation

jonpsy
Copy link
Contributor

@jonpsy jonpsy commented Jan 5, 2021

#5058

A free function which has default flags as mentioned in the issue. Pretty much same as make_clone, but it "motivates" sparse copying.

SGMatrix, and Features.h seems to be potential contenders for this sparse_copy OR make_clone(for entire deep copy), we can handle them both in this PR? @gf712

My thought process is to use make_clone for deep copy only and sparse_copy for if we want to copy only certain component(and therefore I've changed it in RelaxedTree).

@gf712
Copy link
Member

gf712 commented Jan 6, 2021

What do you mean with "sparse_copy"? Is this meant to be "shallow_copy"? If so you should rename it, as sparse is usually associated in this library with sparse matrices (the opposite of dense matrix)

@jonpsy
Copy link
Contributor Author

jonpsy commented May 18, 2021

Re-open when devs are back.

@jonpsy jonpsy closed this May 18, 2021
@jonpsy jonpsy deleted the shallow branch May 18, 2021 09:43
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.

2 participants