julia
f57d29dd
- add `zeros!` and `ones!`, mutating versions of `zeros` and `ones`
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Commit
4 years ago
add `zeros!` and `ones!`, mutating versions of `zeros` and `ones` The current alternative is to use `fill!(x, 0)`, but this does not always work, when `convert(eltype(x), 0)` is not defined, for example when `x` is an array of `DateTime` objects.
References
rf/zeros-bang
#40614 - add `zeros!` and `ones!`, mutating versions of `zeros` and `ones`
Author
rfourquet
Committer
rfourquet
Parents
1a12495e
Loading