Skip to content

Documentation improvements for new users #587

Closed
@xd009642

Description

@xd009642

So I'm a new user to ndarray and was recommended to open an issue with any roadblocks or issues I have using ndarray as areas where the docs or examples could be improved to make it easier for people to use.

Currently my one issue is trying to multiply two views of an array together saving the result in a new array. I'm taking a window of an array, multiplying it by a provided ArrayView3 but I just get some variant of

Note: an implementation of `std::ops::Mul` might be missing for `ndarray::ArrayBase<ndarray::OwnedRepr<T>, ndarray::dimension::dim::Dim<[usize; 3]>>`

Or

Note: an implementation of `std::ops::Mul` might be missing for `ndarray::ArrayBase<ndarray::ViewRepr<&T>, ndarray::dimension::dim::Dim<[usize; 3]>>`

I thought from the docs here that multiplying references to the Window and the ArrayView3 would work. But it doesn't and I haven't found any docs or examples that have helped me figure this out yet.

For reference the code is here:

https://github.com/xd009642/ndarray-vision/blob/eba3eff041be6d88f4605261138893d1a3d90c33/src/core/image.rs#L46

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions