The second part of the above condition (lambda[i] == 1 && Tj[Tp[i]] == i) will always be false since we dropped the diagonal elements of S earlier so even if there exists one off-diagonal element in the ith column of S, i.e. lambda[i] == 1, this element will not be a diagonal element, i.e. Tj[Tp[i]] == i is false.
https://github.com/JuliaLinearAlgebra/AlgebraicMultigrid.jl/blob/061a5418f04ffac9eeac4566ec00d378bdf1cf72/src/splitting.jl#L68
The second part of the above condition
(lambda[i] == 1 && Tj[Tp[i]] == i)
will always befalse
since we dropped the diagonal elements ofS
earlier so even if there exists one off-diagonal element in thei
th column ofS
, i.e.lambda[i] == 1
, this element will not be a diagonal element, i.e.Tj[Tp[i]] == i
is false.