std::tuple< Tensor< rank >, Tensor< 2 > > syten::QR::qr | ( | Tensor< rank > const & | in, |
Index | uncombinedLeg, | ||
DecompRescaleCGC const | rescaleCGC = DecompRescaleCGC::Yes , |
||
FullQR const | full = FullQR{false} , |
||
SourceLocation const & | loc = SourceLocation::current() |
||
) |
A nicer interface to QR decompositions.
Use as (e.g.)
q
and r
will hold the standard output tensors afterwards. Contracting (in the above example) the first leg of r
with the fourth leg of q
will result in in
.