Open mkitti opened 1 year ago
Currently, ArrayAllocators.zeros relies completely on Libc.calloc to zero memory. However, Base.zero may exist for a certain type and not consist of 0x00 bytes. The user may want to explicitly use fill!(A, zero(T)) in this case.
ArrayAllocators.zeros
Libc.calloc
Base.zero
0x00
fill!(A, zero(T))
Currently,
ArrayAllocators.zeros
relies completely onLibc.calloc
to zero memory. However,Base.zero
may exist for a certain type and not consist of0x00
bytes. The user may want to explicitly usefill!(A, zero(T))
in this case.