-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Use np.full
?
#165
Comments
Thanks @jstac , @oyamad and @mmcky . I went through all lectures in
I am not really sure which one is better: But maybe we can implement some simple experiments to see compare the speed and stability (e.g., under |
Thanks @shlff . A few of these do not fit the pattern @oyamad identified: using Can you please cut down this list to just those examples? (Once we have a list fitting this pattern, we will change them all to use |
Thanks @jstac . Please find the updated list above. Looking forward to your comments. |
Thanks @shlff , good work. That list is correct so please proceed. |
There are a few more:
|
Thanks @oyamad . I will check the pattern through the lectures you mentioned above and create another PR to modify it. |
In several pieces of code, an array of a constant value is created by something like
This can be simplified with
np.full
:The text was updated successfully, but these errors were encountered: