rust-ndarray / ndarray

ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
https://docs.rs/ndarray/
Apache License 2.0
3.59k stars 307 forks source link

Document all array creation methods in one place #1218

Open dstansby opened 2 years ago

dstansby commented 2 years ago

There's some nice docs on array creation in the ndarray for numpy docs, but it would be nice if there was a separate section in the main documentation that listed and briefly described all the ndarray methods for creating new arrays, e.g. zeros, linsapce, logspace etc.

bluss commented 1 year ago

The intended flow is that you go to ArrayBase: https://docs.rs/ndarray/0.15.6/ndarray/struct.ArrayBase.html

Under Contents there's a link called Constructor Methods for Owned Arrays

and there all the constructors are basically listed one by one.