SyTen

◆ positify_diagonal()

template<typename Scalar >
void syten::QR::positify_diagonal ( DenseTensor< 2, Scalar > &  qt,
DenseTensor< 2, Scalar > &  rt 
)

Helper function, only defined (and usable) in dense_qr.cpp.

Ensures that the diagonal entries of the R (represented as the transposed matrix rt) are positive by scaling the rows of R and columns of Q accordingly.

References syten::abs(), syten::DenseTensor< rank, Scalar >::dim(), syten::imag(), qr(), syten::real(), SYTEN_SMALL_THRESHOLD, and syten::underThreshold().

Referenced by syten::QR::DenseQR< std::complex< double > >::DenseQR(), syten::QR::DenseQR< double >::DenseQR(), syten::QR::DenseQR< std::complex< float > >::DenseQR(), and syten::QR::DenseQR< float >::DenseQR().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: