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.61k stars 306 forks source link

Document `astype` functionality in ndarray #1124

Closed sgasse closed 2 years ago

sgasse commented 2 years ago

Hi! I took a stab at Document ndarray's equivalent to NumPy's astype from #597 in this PR: https://github.com/rust-ndarray/ndarray/pull/1123

Here are a few questions:

adamreichold commented 2 years ago

How can I locally build / access the ndarray_for_numpy_users documentation to see how my changes look like? I cannot find the page when running cargo doc --open.

I think you just need to enable the docs feature, i.e. run

> cargo doc --features docs --open
sgasse commented 2 years ago

Thank you @adamreichold , that worked :pray: