Re: [Rd] Unexpected behaviour of base::qr()$rank

2017-06-22 Thread Bernd Funovits
-06-22 20:31 GMT+02:00 Uwe Ligges : On 22.06.2017 20:09, Iñaki Úcar wrote: 2017-06-22 19:49 GMT+02:00 Uwe Ligges : On 22.06.2017 17:11, Bernd Funovits wrote: Hello, I experienced some unexpected behaviour while determining the rank of matrices (sometimes 1x1 matrices): base::qr(matrix(1e-20

[Rd] Unexpected behaviour of base::qr()$rank

2017-06-22 Thread Bernd Funovits
Hello, I experienced some unexpected behaviour while determining the rank of matrices (sometimes 1x1 matrices): base::qr(matrix(1e-20))$rank returns 1 (incorrect) base::qr(diag(c(1, 1e-20)))$rank returns 2 (incorrect) Best regards, Bernd > R.version _ platform x86_64-w64-