arrayfire / arrayfire-rust

Rust wrapper for ArrayFire
BSD 3-Clause "New" or "Revised" License
814 stars 57 forks source link

How to do assignment? #333

Closed 3togo closed 2 years ago

3togo commented 2 years ago

In c++, assignment will look something like this.

array reference = A(span, 2);
A(span, 2) = 3.14f;
assert(allTrue<bool>(reference != A(span, 2)));

How to do it in rust version?

9prady9 commented 2 years ago

please check https://arrayfire.org/arrayfire-rust/book/indexing.html

3togo commented 2 years ago

@9prady9 many thanks again