-
Notifications
You must be signed in to change notification settings - Fork 16
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 sc.zeros_like
and sc.ones_like
functions
#1864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No tests? Also empty_like
could be useful?
Yes, was not ready, forgot to mark as draft, sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be useful if the user could overwrite individual arguments. I often use np.zeros_like
to get an array with the same dtype but different shape as something else. Since in scipp, we have more parameters, this might be even more useful to, e.g., change only the unit.
Agree, but we can add that later. |
No description provided.