Open
Description
Consider the following code
let a = arr2(&[[1.], [0.]]);
let (q, r) = a.qr().unwrap();
println!("q = {}", q);
println!("r = {}", r);
The output is
q = [[1],
[0]]
r = [[1]]
however I was expecting q
to be of size 2 x 2
and r
of size 2 x 1
.
For instance, in Matlab, [q, r] = qr([1; 0])
prints
q =
1 0
-0 1
r =
1
0