Replies: 1 comment 2 replies
-
I'm actually not sure why the docs say that. This works, for example: use nalgebra::{matrix, vector};
fn main() {
let mut a = matrix![1.0, 2.0; 3.0, 4.0];
let mut b = a.fixed_view_mut::<2, 1>(0, 0);
let c = vector![5.0, 6.0];
b += c;
} Perhaps either this is not true anymore, or @sebcrozet had something else in mind? (Assuming he's the one who write this) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the docs is says
Assignment operators do not work on any kind of view, i.e., one cannot write a *= b even if a is a mutable matrix view.
Why is that?
Will is change?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions