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

2017-06-22 Thread Bernd Funovits
Thanks for the fast replies. There was a bug in Matrix::rankMatrix(matrix(0)) which returned 1 (fixed by Martin Maechler in the development version of Matrix) and I thought here is an issue here too. Sorry for asking too quickly... Best, Bernd Am 22.06.2017 um 21:41 schrieb Iñaki Úcar: 2017-

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

2017-06-22 Thread Iñaki Úcar
2017-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 (

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

2017-06-22 Thread 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))$rank returns 1 (incorrect) base:

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

2017-06-22 Thread Iñaki Úcar
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))$rank returns 1 (incorrect) >> base::qr(diag(c(1, 1e-20)))$r

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

2017-06-22 Thread 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))$rank returns 1 (incorrect) base::qr(diag(c(1, 1e-20)))$rank returns 2 (incorrect) Why do you believe this is in

[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-