D347 Weekly replay: remove the trailing zeros in the string + the difference in the number of different values on the diagonal

Article directory removes trailing zeros from a string The difference in the number of different values on the diagonal train of thought another way of writing At present, the level comparison weekly competition can only produce two dishes at most, and I will strive to do more later. Off-topic: Recently, I have a fever, dizziness […]

An implementation of the Householder transformation that is synchronous to the Lapack algorithm to tridiagonalize a symmetric matrix

Householder Transformation: Any U(i) is an n-dimensional real vector (or complex vector), P(i) = I – U(i) * U(i)’ / H(i) Where: Hi = (1/2) * Ui’ * Ui Hi = = H(i) etc.; ———————- Transformation matrix: Q = P(n-3)*P(n-2)*…*P(1)*P(0) T = Q * A * Q’ A = inv(Q) * A * inv(Q’) ______________________________________ […]