I.sub(temp1);
Matrix expected = Multiplications.multiply(I, A_sub);
qr.updateA(w,U.asDoubleArray(),gamma,tau);
AMatrix found = qr.getQR();
assertEquals(-tau,found.get(w,w),1e-8);
for( int i = w+1; i < width; i++ ) {
assertEquals(U.get(i,0),found.get(i,w),1e-8);
}
// the right should be the same
for( int i = w; i < width; i++ ) {
for( int j = w+1; j < width; j++ ) {
double a = expected.get(i-w,j-w);
double b = found.get(i,j);
assertEquals(a,b,1e-6);
}
}
}