Output result:
Matrix A: tensor([[ 12., -51., 4.], [ 6., 167., -68.], [ -4., 24., -41.]])Orthogonal Matrix Q: tensor([[-0.8571, 0.3943, 0.3314], [-0.4286, -0.9029, -0.0343], [ 0.2857, -0.1714, 0.9428]])Upper Triangular Matrix R: tensor([[ -14., -21., 14.], [ 0., -175., 70.], [ 0., 0., -35.]])validation: Q @ R = tensor([[ 12., -51., 4.], [ 6., 167., -68.], [ -4., 24., -41.]])
YouTip