Closed
Description
Hi! I took a stab at Document ndarray's equivalent to NumPy's astype
from #597 in this PR:
#1123
Here are a few questions:
- Which other conversion examples would you like to see?
- 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 runningcargo doc --open
. - Should there be more details on differences in conversion that stem from Rust's type system and are not specific to
ndarray
? (e.g.np.astype()
does not saturate,a.mapv(|x| x as u8
runs a saturated conversion)
Activity
adamreichold commentedon Nov 29, 2021
I think you just need to enable the
docs
feature, i.e. run> cargo doc --features docs --open
sgasse commentedon Nov 30, 2021
Thank you @adamreichold , that worked 🙏