julia
f57d29dd - add `zeros!` and `ones!`, mutating versions of `zeros` and `ones`

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.
Author
Committer
Parents
Loading