Skip to content

Document astype functionality in ndarray #1124

@sgasse

Description

@sgasse

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 running cargo 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions