Closed jasonkaye closed 1 year ago
Dear @jasonkaye,
For each array type you can use the static member function zeros
auto ac = nda::array<double, 3>::zeros(m,n,p);
auto af = nda::array<double, 3, F_layout>::zeros(m,n,p);
The free function nda::zeros
is intended for the default array case and does at this point not allow for customizations of memory layout, algebra and such.
Excellent, thanks Nils.
nda::zeros
does not work for Fortran layout arrays. I'd like to be able to writeauto b = nda::zeros<double, F_layout>(m,n,p);
and get an array of zeros in Fortran layout.