tf.qr

tf.qr

tf.qr

qr(
    input,
    full_matrices=None,
    name=None
)

Defined in tensorflow/python/ops/gen_linalg_ops.py.

See the guide: Math > Matrix Math Functions

Computes the QR decompositions of one or more matrices.

Computes the QR decomposition of each inner matrix in tensor such that tensor[..., :, :] = q[..., :, :] * r[..., :,:])

# a is a tensor.
# q is a tensor of orthonormal matrices.
# r is a tensor of uppe