Since the eigenvalue problem of real supersymmetric tensors was proposed, there have been many results regarding the numerical algorithms for computing the spectral radius of nonnegative tensors, among which the NQZ method is the most studied. However, the NQZ method is only suitable for calculating the spectral radius of a special weakly primitive tensor, or a weakly irreducible primitive tensor that satisfies certain conditions. In this paper, by means of diagonal similarrity transformation of tensors, we construct a numerical algorithm for computing the spectral radius of nonnegative tensors with the aid of power functions. This algorithm is suitable for the calculation of the spectral radius of all weakly irreducible nonnegative tensors. Furthermore, it is efficient and can be widely applied.
In this paper, we introduced $ s $-index weakly positive tensors and discussed the calculation of the spectral radius of this kind of nonnegative tensors. Using the diagonal similarity transformation of tensor and Perron-Frobenius theory of nonnegative tensor, the calculation method of the maximum $ H $-eigenvalue of $ s $-index weakly positive tensors was given. A variable parameter was introduced in each iteration of the algorithm, which is equivalent to a translation transformation of the tensor in each iteration to improve the calculation speed. At the same time, it was proved that the algorithm is linearly convergent for the calculation of the spectral radius of $ s $-index weakly positive tensors. The final numerical example shows the effectiveness of the algorithm.