Next Article in Journal
An Enhanced Active Access-Point Configuration Algorithm Using the Throughput Request Satisfaction Method for an Energy-Efficient Wireless Local-Area Network
Previous Article in Journal
YOLO-ABD: A Multi-Scale Detection Model for Pedestrian Anomaly Behavior Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Accurate Computations with Generalized Green Matrices

by
Jorge Delgado
1,*,†,
Guillermo Peña
2,† and
Juan Manuel Peña
3,†
1
Departamento de Matemática Aplicada, Escuela de Ingeniería y Arquitectura, Universidad de Zaragoza/Instituto Universitario de Matemáticas y Aplicaciones (IUMA), 50018 Zaragoza, Spain
2
Departamento de Análisis Económico, Facultad de Economía y Empresa, Universidad de Zaragoza, 50005 Zaragoza, Spain
3
Departamento de Matemática Aplicada, Facultad de Ciencias, Universidad de Zaragoza/Instituto Universitario de Matemáticas y Aplicaciones (IUMA), 50009 Zaragoza, Spain
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Symmetry 2024, 16(8), 1004; https://doi.org/10.3390/sym16081004
Submission received: 3 June 2024 / Revised: 17 July 2024 / Accepted: 22 July 2024 / Published: 7 August 2024
(This article belongs to the Special Issue Research on Structured Matrices and Applications)

Abstract

:
We consider generalized Green matrices that, in contrast to Green matrices, are not necessarily symmetric. In spite of the loss of symmetry, we show that they can preserve some nice properties of Green matrices. In particular, they admit a bidiagonal decomposition. Moreover, for convenient parameters, the bidiagonal decomposition can be obtained efficiently and with high relative accuracy and it can also be used to compute all eigenvalues, all singular values, the inverse, and the solution of some linear system of equations with high relative accuracy. Numerical examples illustrate the high accuracy of the performed computations using the bidiagonal decompositions. Finally, nonsingular and totally positive generalized Green matrices are characterized.

1. Introduction

A desirable goal in linear algebra is the computation, with high relative accuracy, of linear algebra problems for a matrix, such as the eigenvalues, singular values, inverses, or solutions of associated linear systems (cf. [1]). Although this goal has only been achieved for a few classes of structured matrices, one of these classes is the class of Green matrices (see [2]). Green matrices are symmetric matrices that can be considered as discrete versions of Green functions and arise in important applications (see [3,4,5] and references therein). Here, we focus on generalized Green matrices that were considered in [6]. These generalized Green matrices are not necessarily symmetric. However, here, we see that some relevant nice properties satisfied by (symmetric) Green matrices are preserved by generalized Green matrices. In particular, the fact that we can perform many algebraic computations with high relative accuracy.
It is known that an algorithm can be computed to high relative accuracy (HRA) when it only uses products, quotients, additions of numbers of the same sign, or subtractions of initial data (cf. [7,8,9]). So, the only forbidden arithmetic operation is the subtraction of numbers (which are not initial data) with the same sign. Among the classes of matrices for which algorithms to HRA have been constructed, we can mention some subclasses of nonsingular totally positive matrices (see, for instance, [10,11,12,13]). Let us recall that a matrix is called totally positive (TP) if all its minors are non-negative and it is strictly totally positive (STP) if they are positive (see [14,15]). These matrices are also called totally non-negative and totally positive, respectively (cf. [16]). TP and STP matrices arise in many applications (see [15,17,18,19]). In [20,21], it was proved for a nonsingular TP matrix A that if we know its bidiagonal factorization BD ( A ) , then we can perform many algebraic computations with HRA. For example, calculations of its eigenvalues, its singular values, its inverse and the solution of linear systems A x = b , where b has alternating signs. In this paper, we characterize generalized Green matrices that are nonsingular TP and present a method of O ( n ) elementary operations to obtain bidiagonal factorizations of n × n generalized Green matrices with HRA.
The paper is organized as follows. Section 2 contains auxiliary results on bidiagonal factorizations and TP matrices. Section 3 introduces generalized Green matrices and obtains their bidiagonal decompositions. Section 4 characterizes nonsingular TP generalized Green matrices. It also presents the algorithm for the bidiagonal decomposition of generalized Green matrices and finds parameters for which many linear algebra computations can be performed with HRA. Finally, Section 5 includes numerical experiments confirming the advantages of using the HRA methods presented in the previous sections, and the last section summarizes the main conclusions of this work.

2. Auxiliary Results

Neville elimination (NE) is an elimination procedure that makes zeros in a column of a matrix by adding to each row an appropriate multiple of the previous one (cf. [22]). Given a nonsingular matrix A = ( a i j ) 1 i , j n , NE has n 1 steps and produces the next sequence of matrices:
A = : A ( 1 ) A ( 2 ) A ( n ) = U ,
where U is an upper triangular matrix and A ( k ) has zeros below the main diagonal in the first k 1 columns ( 2 k n ). For 1 k n 1 , the matrix A ( k + 1 ) = ( a i j ( k + 1 ) ) 1 i , j n is derived from the matrix A ( k ) = ( a i j ( k ) ) 1 i , j n by using the formula
a i j ( k + 1 ) = a i j ( k ) a i k ( k ) a i 1 , k ( k ) a i 1 , j ( k ) , if k j n , k + 1 i n and a i 1 , k ( k ) 0 , a i j ( k ) , otherwise ,
for k = 1 , , n 1 . The ( i , j ) pivot of the NE of A is given by
p i j = a i j ( j ) , 1 j i n .
If i = j , we call p i i a diagonal pivot. The ( i , j ) multiplier of the NE of A, with 1 j < i n , is given by
m i j = a i j ( j ) a i 1 , j ( j ) = p i j p i 1 , j , if a i 1 , j ( j ) 0 , 0 , if a i 1 , j ( j ) = 0 .
The following condition is satisfied:
m i j = 0 m h j = 0 h > i .
The ( i , j ) multiplier of the NE of A T is denoted by m ˜ i j .
The following theorem is a consequence of Theorems 4.2 and 4.3 of [23] and the arguments of pp. 116 and 120 of [23] and characterizes nonsingular TP matrices by their bidiagonal decomposition.
Theorem 1.
A nonsingular matrix A = ( a i j ) 1 i , j n is TP if and only if it admits the following decomposition:
A = F n 1 F n 2 · · · F 1 D G 1 · · · G n 2 G n 1 ,
where D is the diagonal matrix diag ( p 11 , , p n n ) with positive diagonal entries and F i , G i are the non-negative bidiagonal matrices given by
F i = 1 0 1 0 1 m i + 1 , 1 1 m n , n i 1 , G i = 1 0 1 0 1 m ˜ i + 1 , 1 1 m ˜ n , n i 1 ,
for all i { 1 , , n 1 } . If, in addition, the entries m i j and m ˜ i j satisfy
m i j = 0 m h j = 0 h > i , m ˜ i j = 0 m ˜ h j = 0 h > i ,
then the decomposition is unique. Furthermore, A is STP if and only if it admits the decomposition (4) with all entries p i i , m i j , and m ˜ i j positive.
Observe that in the bidiagonal decomposition given by (4) and (5) the entries m i j and p i i are the multipliers and diagonal pivots, respectively, corresponding to the NE of A (see Theorem 4.2 of [23] and the comment below it), and the entries m ˜ i j are the multipliers of the NE of A T (see p. 116 of [23]). In [21], the matrix notation BD ( A ) was used to represent the bidiagonal decomposition of a nonsingular TP matrix:
( BD ( A ) ) i j = m i j , if i > j , m ˜ j i , if i < j , p i i , if i = j .
From now on, BD ( A ) will also be used to denote the bidiagonal decomposition of matrices that are not necessarily TP.
We can derive from Theorem 1 the following corollary characterizing nonsingular TP matrices and STP matrices by the entries of their bidiagonal decomposition.
Corollary 1.
Let A be a square matrix with a given BD ( A ) corresponding to (4). Then:
i.
A is nonsingular TP if and only if all diagonal entries of BD ( A ) are positive and all off-diagonal entries of BD ( A ) are non-negative.
ii.
A is STP if and only if all entries of BD ( A ) are positive.

3. Bidiagonal Factorization

We first recall the definition of Green matrices.
Definition 1.
Given two sequences of nonzero real numbers ( u i ) 1 i n , ( v i ) 1 i n , a Green matrix A = ( a i j ) 1 i , j n is the symmetric matrix given by a i j = u i v j if i j (or, equivalently, a i j = u min { i , j } v max { i , j } for all i , j ).
The following definition generalizes Green matrices to the nonsymmetric case.
Definition 2.
Given four sequences of nonzero real numbers ( u i ) 1 i n , ( v i ) 1 i n , ( w i ) 1 i n , and ( z i ) 1 i n satisfying that u i · v i = w i · z i for i = 1 , , n , a generalized Green matrix A = ( a i j ) 1 i , j n is the matrix defined by
a i j : = u j · v i , i f i j , w i · z j , i f i < j .
Observe that, if in the previous definition w i = u i and z i = v i for all i = 1 , , n , then we have a usual Green matrix, which is symmetric, so that our definition of the generalized Green matrix includes some symmetric matrices.
In the next result, we present the bidiagonal factorization of any generalized Green matrix.
Theorem 2.
If A is a generalized Green matrix with parameters ( u i ) 1 i n , ( v i ) 1 i n , ( w i ) 1 i n , and ( z i ) 1 i n , its bidiagonal decomposition BD ( A ) is given by
( BD ( A ) ) i j = w 1 z 1 = u 1 v 1 , f o r i = j = 1 , z j z j 1 , f o r i = 1 a n d j = 2 , , n , u i v i 1 v i v i 1 · w i 1 w i = w i z i 1 v i v i 1 · w i 1 w i , f o r i = j = 2 , , n , v i v i 1 , f o r j = 1 a n d i = 2 , , n , 0 , o t h e r w i s e .
Proof. 
Let us obtain the bidiagonal decomposition of A by applying the Neville elimination procedure to A and A T . So, first with multiplier v n / v n 1 , a zero at entry ( n , 1 ) of A is produced (the last but one row multiplied by v n / v n 1 is subtracted from the last one). This elementary operation also produces zeros in the remaining off-diagonal entries of the last row. Taking into account that u n · v n = w n · z n , the ( n , n ) entry of the last row transforms into
d n : = w n z n v n v n 1 w n 1 z n = w n z n 1 v n v n 1 · w n 1 w n .
Analogously (by symmetry), if we now multiply the columns by z n / z n 1 to make the entry ( 1 , n ) a zero, we obtain a matrix B with zeros in the last column up to place ( n , n ) , where d n remains.
Let us denote by E i ( α ) ( 2 i n ) the n × n elementary matrix that has unit diagonal, α in place ( i , i 1 ) , and 0 elsewhere. Then, the matrix form of the previous step can be written as E n v n v n 1 A E n z n z n 1 T .
Continuing this procedure to make zeros in entries ( n 1 , 1 ) , ( 1 , n 1 ) , , ( 2 , 1 ) , ( 1 , 2 ) , we obtain the factorization
E 2 v 2 v 1 E n v n v n 1 A E n z n z n 1 T E 2 z 2 z 1 T = D ,
where D is the diagonal matrix with bidiagonal entries
d 1 = w 1 z 1 = u 1 v 1 , d i = u i v i 1 v i v i 1 · w i 1 w i = w i z i 1 v i v i 1 · w i 1 w i , i > 1 .
Taking into account that E i ( α ) 1 = E i ( α ) , we obtain the following bidiagonal factorization BD ( A ) of A:
A = E n v n v n 1 E 2 v 2 v 1 D E 2 z 2 z 1 T E n z n z n 1 T .
   □

4. Total Positivity and High Relative Accuracy

The following result characterizes the generalized Green matrices with parameters of the same sign that are nonsingular TP.
Theorem 3.
Let A be a generalized Green matrix with parameters ( u i ) 1 i n , ( v i ) 1 i n , ( w i ) 1 i n , and ( z i ) 1 i n with the same sign. Then, A is nonsingular TP if and only if
w 1 v 1 < w 2 v 2 < < w n v n .
Proof. 
Since A is a generalized Green matrix, all parameters are nonzero and, by hypothesis, ( z k / z k 1 ) > 0 and ( v k / v k 1 ) > 0 for all k = 2 , , n , and
w i z i > 0 , i = 1 , , n .
So, by Theorem 2, all off-diagonal entries of BD ( A ) are non-negative and the first diagonal entry of BD ( A ) is positive.
By Corollary 1 i, it remains to prove that the remaining diagonal entries of BD ( A ) are positive if and only if (11) holds. By (12) and Theorem 2, it is sufficient to check if
0 < 1 v i v i 1 w i 1 w i = v i 1 w i v i w i 1 v i 1 w i , i = 2 , , n ,
if and only if (11) holds.
Since v i 1 w i > 0 for i = 2 , , n , and the equivalence of (13) and (11), it only remains to prove that (11) holds if and only if
0 < v i 1 w i v i w i 1 , i = 2 , , n .
Taking again into account that all parameters are nonzero, we can divide the right-hand side of (14) by v i 1 v i , and so, (14) is equivalent to
0 < w i v i w i 1 v i 1 ,
or equivalently, to
w i 1 v i 1 < w i v i ,
and the result follows.    □
In contrast to the previous characterization of nonsingular TP generalized Green matrices, there are no STP generalized Green matrices, as the following remark shows.
Remark 1.
By Theorem 2, a generalized Green n × n matrix with n > 2 has some null off-diagonal entries. Then, by Corollary 1 ii, it cannot be STP.
For some subclasses of nonsingular TP matrices it has been possible to obtain algorithms for linear algebra problems with high relative accuracy (HRA). The starting point was the construction with HRA of the bidiagonal decomposition of the matrix, which was used in the algorithms presented in [21,24,25] for linear algebra problems. Here, we focus on sufficient conditions for the bidiagonal decomposition with HRA for generalized Green matrices. An algorithm is said to be performed to HRA if the relative error in the computations is of the order of the unit round-off (or machine precision). A sufficient condition so that an algorithm can be carried out to HRA is the non-inaccurate cancellation condition, also called NIC condition, which holds if the algorithm only uses products, quotients, and sums of numbers with the same sign (see page 52 in [7]). Moreover, if the floating-point arithmetic is well implemented, the subtraction of initial data can also be allowed without losing HRA (see page 53 in [7]).
The following result provides sufficient conditions to ensure HRA calculations for algebra problems related to generalized Green matrices.
Proposition 1.
Let us consider a generalized Green matrix A with parameters of the sequences ( u i ) 1 i n , ( v i ) 1 i n , ( w i ) 1 i n , and ( z i ) 1 i n formed by numbers of the same sign.
i.
If v i v i 1 , w i 1 w i 1 or v i v i 1 , w i 1 w i 1 for all i = 2 , , n , then the bidiagonal decomposition of A, BD ( A ) can be computed to HRA.
ii.
If v i v i 1 , w i 1 w i < 1 for all i = 2 , , n , then A is a nonsingular TP matrix, and its eigenvalues, its singular values, its inverse A 1 , and the solution of linear systems A x = b , where b has a pattern of alternating signs, can also be computed to HRA.
Proof. 
i.
Since v i v i 1 · w i 1 w i > 0 , it is necessary to carry out the subtraction 1 v i v i 1 · w i 1 w i to HRA. So, in order to obtain this, using the formula
1 + a · b = 1 2 ( 1 + a ) ( 1 + b ) + ( 1 a ) ( 1 b )
with a = w i 1 w i and b = v i v i 1 , we obtain
1 v i v i 1 · w i 1 w i = 1 2 1 w i 1 w i 1 + v i v i 1 + 1 + w i 1 w i 1 v i v i 1 = 1 2 w i w i 1 w i 1 + v i v i 1 + 1 + w i 1 w i v i 1 v i v i 1 ,
which, for 0 < v i v i 1 , w i 1 w i 1 , is a sum of non-negative numbers if the sequences defining the matrices are positive or a sum of non-negative numbers if the sequences are negative, and, for v i v i 1 , w i 1 w i 1 , is a sum of nonpositive numbers if the sequences are positive or a sum of non-negative numbers if the sequences are negative.
ii.
By i of the proposition, BD ( A ) can be computed to HRA. If v i v i 1 , w i 1 w i < 1 for all i = 2 , , n , then v i v i 1 · w i 1 w i < 1 for all i = 2 , , n because they are positive quotients due to the fact that all parameters have the same sign. The last inequalities are equivalent to (11) and so A is a nonsingular TP matrix by Theorem 3. Then, the methods of [21,25] can be used to solve the four algebraic computations mentioned with HRA.
   □
The bidiagonal decomposition of a generalized Green matrix deduced in the proof of Theorem 1 was implemented in the function TNBDGeneralizedGreen to be used in Matlab and Octave. In Algorithm 1, we can see the pseudocode of this function.
Algorithm 1 Computation of BD ( A ) for a generalized Green matrix A
Require:  ( u ( i ) ) i = 1 n , ( v ( i ) ) i = 1 n , ( w ( i ) ) i = 1 n and ( z ( i ) ) i = 1 n such that u ( i ) · v ( i ) = w ( i ) · z ( i )
Ensure: B bidiagonal decomposition of A
B = z e r o s ( n )
for i = 2:n do
       M ( i , 1 ) = v ( i ) / v ( i 1 )
end for
for  j = 2 : n  do
       M ( 1 , j ) = z ( j ) / z ( j 1 )
end for
M ( 1 , 1 ) = u ( 1 ) v ( 1 )
for  i = 2 : n  do
       M ( i , i ) = ( ( u ( i ) v ( i ) ) / 2 ) ( ( ( w ( i ) w ( i 1 ) ) / w ( i ) ) ( 1 + v ( i ) / v ( i 1 ) )
       + ( 1 + w ( i 1 ) / w ( i ) ) ( ( v ( i 1 ) v ( i ) ) / v ( i 1 ) ) )
end for
Remark 2.
Algorithm 1 has a computational cost of O ( n ) elementary operations in order to compute the bidiagonal decomposition of a generalized Green matrix of order n.

5. Numerical Experiments

Assuming the bidiagonal decomposition BD ( A ) of a nonsingular TP matrix A is known to HRA, in [20,21,25] algorithms to solve some algebra problems related to A also to HRA were presented:
  • Computation of the eigenvalues of A.
  • Computation of the singular values of A.
  • Computation of the inverse of A, A 1 .
  • Solution of a system of linear equations A x = b where b has an alternating sign pattern.
These algorithms have been implemented to be used in Matlab and Octave and they are included in the software library TNTool (see [24]). The names of the functions corresponding to the algorithms for the four algebra problems mentioned above are TNEigenValues, TNSingularValues, TNInverseExpand, and TNSolve, respectively. These functions need as input BD ( A ) to HRA and, in addition, the latter also needs the vector b of the linear system of equations.
Remark 3.
Taking into account the computational costs of the algorithms given in [21,25] for the four algebra problems mentioned and the computational cost for the computation of the bidiagonal decomposition of a generalized Green matrix given in Remark 2, it can be deduced that, using the bidiagonal factorization of a nonsingular generalized Green matrix, the computational costs to solve each of the four algebra problems mentioned before are the following:
  • O ( n 3 ) elementary operations for the computation of the eigenvalues and singular values using TNEigenValues and TNSingularValues, respectively,
  • O ( n 2 ) elementary operations for the computation of the inverse and the solution of the system of linear equations using TNInverseExpand and TNSolve, respectively.
Now, we illustrate the high relative accuracy of the bidiagonal decomposition of a generalized Green matrix computed to HRA with the function TNBDGeneralizedGreen used together with the four functions of TNTool mentioned before for solving the four algebra problems mentioned.
First, we consider a generalized Green matrix A 20 of order n = 20 , with parameters of the sequences ( u i ) 1 i n , ( v i ) 1 i n , ( w i ) 1 i n , and ( z i ) 1 i n given by
u i = 1 2 60 i , v i = n + 1 i , z i = 1 2 9 + i and w i = u i · v i z i
for i = 1 , , n . By Proposition 1, the matrix A 20 is nonsingular TP, BD ( A ) can be obtained to HRA, and the four algebra problems can also be solved to HRA.
First, the eigenvalues and singular values of A 20 were computed with Mathematica by using 200-digit precision. Then, the eigenvalues were computed with Matlab in two different ways. First, using the usual Matlab command eig. Second, using the function TNEigenValues with TNBDGeneralizedGreen to HRA. Then, the relative errors of the approximations obtained with Matlab were calculated considering the results provided by Mathematica to be exact. Table 1 shows these relative errors.
Then, the singular values were also computed with Matlab in two different ways. First, using the usual Matlab command svd. Second, using the function TNSingularValues with TNBDGeneralizedGreen to HRA. Then, the relative errors of the approximations obtained with Matlab were calculated, considering the results provided by Mathematica to be exact. Table 2 shows these relative errors.
As we can observe in Table 1 and Table 2, the lower the eigenvalue or singular value is, the greater the corresponding relative error is for the usual Matlab methods eig and svd. Taking this into account, the generalized nonsymmetric matrices A n of order n = 5 , 10 , , 50 , with parameters given by (16) for i = 1 , , n , are considered. By Proposition 1, the matrices A n are nonsingular and TP, BD ( A ) can be obtained to HRA and, with this bidiagonal decomposition, the four algebra problems can also be solved to HRA by using TNTool (see [24]). The condition numbers of these matrices can be seen in Figure 1. As we can observe the generalized matrices of higher degree are ill-conditioned.
In order to show the accuracy of the HRA methods, the lowest eigenvalues and singular values of the matrices A n , n = 5 , 10 , , 50 , were computed with Mathematica by using 200-digit precision. Then, these eigenvalues were computed with Matlab in two different ways. First, by using the usual Matlab command eig. Second, using the function TNEigenValues with BD ( A n ) to HRA. Then, the relative errors of the approximations obtained with Matlab were calculated considering the results provided by Mathematica to be exact. Figure 2 shows the relative error for the lowest eigenvalue of each matrix A n .
In an analogous way to the eigenvalues, approximations to the lowest singular values of the matrices A n , n = 5 , 10 , , 50 were obtained with Matlab in two ways. First, using the usual Matlab command svd. Second, using the usual function TNSingularValues with BD ( A n ) to HRA. Then, the relative errors of the approximations obtained with Matlab were calculated considering the results provided by Mathematica to be exact. Figure 3 shows the relative error for the lowest singular value of each matrix  A n .
As can be observed in the previous numerical tests, the HRA methods are much better than the usual methods for generalized Green matrices. Finally, let us show that the HRA methods also provide very accurate results for generalized Green matrices of orders greater than 50. In this regard, let us consider a generalized Green matrix A of order 100 with parameters of the sequences ( u i ) 1 i 100 , ( v i ) 1 i 100 , ( w i ) 1 i 100 , and ( z i ) 1 i 100 given by
u i = 1 2 110 i , v i = 101 i , z i = 1 2 9 + i and w i = u i · v i z i , i = 1 , , 100 .
By Proposition 1, the matrix A is nonsingular and TP, BD ( A ) can be obtained to HRA, and the four algebra problems can also be solved to HRA. The condition number of matrix A is given by k ( A ) = 2.66 × 10 28 , so it is an ill-conditioned matrix.
As in the previous examples, the eigenvalues of A were calculated with Mathematica using 200-digit precision, and with Matlab both using TNEigenvalues and using the usual method eig. Then, the relative errors were computed for both approximations obtained with Matlab considering the eigenvalues provided by Mathematica to be exact. Figure 4 shows these relative errors.
The analogous process was carried out for the singular values of A using TNSingularValues and svd in Matlab. In Figure 5, the relative errors for the singular values are shown.
The Matlab code used to carry out the numerical tests is available upon request.

6. Conclusions

In this paper, we have seen that some nice properties of Green matrices can be extended to the generalized Green matrices, which are not necessarily symmetric. We find parameter values for which the bidiagonal decomposition of generalized Green matrices can be obtained efficiently and with high relative accuracy. We characterize the parameter values of generalized Green matrices that are nonsingular and totally positive. We prove that many linear algebra computations for generalized Green matrices can be performed efficiently and with high relative accuracy. Numerical experiments confirm this fact.

Author Contributions

The authors contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially supported by MCIU/AEI through the Spanish research grants PID2022-138569NB-I00, RED2022-134176-T (MCI/AEI) and PID2020-112773GB-I00 (MCI/AEI), by Gobierno de Aragón (E41_23R and S39_23R), and by Fundación Ibercaja/Universidad de Zaragoza (JIUZ2022-CSJ-19).

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Higham, N.J. Accuracy and Stability of Numerical Algorithms, 2nd ed.; SIAM: Philadelphia, PA, USA, 2002. [Google Scholar]
  2. Delgado, J.; Peña, G.; Peña, J.M. Accurate and fast computations with Green matrices. Appl. Math. Lett. 2023, 145, 108778. [Google Scholar] [CrossRef]
  3. Ramsay, J.O.; Ramsey, J.B. Functional data analysis of the dynamics of the monthly index of nondurable goods production. J. Econom. 2002, 107, 327–344. [Google Scholar] [CrossRef]
  4. Schoenmakers, J.; Coffey, B. Systematic Generation of Parametric Correlation Structures for the LIBOR Market Model. Int. J. Theor. Appl. Financ. 2003, 6, 507–519. [Google Scholar] [CrossRef]
  5. Delgado, J.; Peña, G.; Peña, J.M. Green Matrices, Minors and Hadamard Products. Axioms 2023, 12, 774. [Google Scholar] [CrossRef]
  6. Dow, M. Explicit inverses of Toeplitz and associated matrices. ANZIAM J. 2003, 44, E185–E215. [Google Scholar] [CrossRef]
  7. Demmel, J.; Gu, M.; Eisenstat, S.; Slapnicar, I.; Veselic, K.; Drmac, Z. Computing the singular value decomposition with high relative accuracy. Linear Algebra Appl. 1999, 299, 21–80. [Google Scholar] [CrossRef]
  8. Demmel, J.; Dumitriu, I.; Holtz, O.; Koev, P. Accurate and efficient expression evaluation and linear algebra. Acta Numer. 2008, 17, 87–145. [Google Scholar] [CrossRef]
  9. Demmel, J.; Koev, P. The accurate and efficient solution of a totally positive generalized Vandermonde linear system. SIAM J. Matrix Anal. Appl. 2005, 27, 42–52. [Google Scholar] [CrossRef]
  10. Marco, A.; Martínez, J.J. A fast and accurate algorithm for solving Bernstein-Vandermonde linear systems. Linear Algebra Appl. 2007, 422, 616–628. [Google Scholar] [CrossRef]
  11. Marco, A.; Martínez, J.J.; Viaña, R. Accurate bidiagonal decomposition of totally positive h-Bernstein-Vandermonde matrices and applications. Linear Algebra Its Appl. 2019, 579, 320–335. [Google Scholar] [CrossRef]
  12. Delgado, J.; Peña, G.; Peña, J.M. Accurate and fast computations with positive extended Schoenmakers-Coffey matrices. Numer. Linear Algebra Appl. 2016, 23, 1023–1031. [Google Scholar] [CrossRef]
  13. Marco, A.; Martínez, J.J. Accurate computations with totally positive Bernstein- Vandermonde matrices. Electron. J. Linear Algebra 2013, 26, 357–380. [Google Scholar] [CrossRef]
  14. Ando, T. Totally positive matrices. Linear Algebra Appl. 1987, 90, 165–219. [Google Scholar] [CrossRef]
  15. Pinkus, A. Totally Positive Matrices, Cambridge Tracts in Mathematics 181; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
  16. Fallat, S.M.; Johnson, C.R. Totally Nonnegative Matrices; Princeton Series in Applied Mathematics; Princeton University Press: Princeton, NJ, USA, 2011. [Google Scholar]
  17. Gantmacher, F.P.; Krein, M.G. Oscillation Matrices and Kernels and Small Vibrations of Mechanical Systems, Revised ed.; AMS Chelsea Publishing: Providence, RI, USA, 2002. [Google Scholar]
  18. Gasca, M.; Micchelli, C.A. Total Positivity and Its Applications; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1996. [Google Scholar]
  19. Karlin, S. Total Positivity; Stanford University Press: Stanford, CA, USA, 1968; Volume 1. [Google Scholar]
  20. Koev, P. Accurate eigenvalues and SVDs of totally nonnegative matrices. SIAM J. Matrix Anal. Appl. 2005, 27, 1–23. [Google Scholar] [CrossRef]
  21. Koev, P. Accurate computations with totally nonnegative matrices. SIAM J. Matrix Anal. Appl. 2007, 29, 731–751. [Google Scholar] [CrossRef]
  22. Gasca, M.; Peña, J.M. Total positivity and Neville elimination. Linear Algebra Appl. 1992, 165, 25–44. [Google Scholar] [CrossRef]
  23. Gasca, M.; Peña, J.M. On Factorizations of Totally Positive Matrices. In Total Positivity and Its Applications; Gasca, M., Micchelli, C.A., Eds.; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1996; pp. 109–130. [Google Scholar]
  24. Koev, P. TNTool. Available online: https://math.mit.edu/~plamen/software/TNTool.html (accessed on 10 March 2023).
  25. Marco, A.; Martínez, J.J. Accurate computation of the Moore–Penrose inverse of strictly totally positive matrices. J. Comput. Appl. Math. 2019, 350, 299–308. [Google Scholar] [CrossRef]
Figure 1. Condition numbers k ( A n ) for n = 5 , 10 , , 50 .
Figure 1. Condition numbers k ( A n ) for n = 5 , 10 , , 50 .
Symmetry 16 01004 g001
Figure 2. Relative errors when computing the lowest eigenvalue of A n for n = 5 , 10 , , 50 .
Figure 2. Relative errors when computing the lowest eigenvalue of A n for n = 5 , 10 , , 50 .
Symmetry 16 01004 g002
Figure 3. Relative errors when computing the lowest singular value of A n for n = 5 , 10 , , 50 .
Figure 3. Relative errors when computing the lowest singular value of A n for n = 5 , 10 , , 50 .
Symmetry 16 01004 g003
Figure 4. Relative errors when computing all the eigenvalues λ 1 > λ 2 > > λ 100 of A.
Figure 4. Relative errors when computing all the eigenvalues λ 1 > λ 2 > > λ 100 of A.
Symmetry 16 01004 g004
Figure 5. Relative errors when computing all the singular values σ 1 > σ 2 > > σ 100 of A.
Figure 5. Relative errors when computing all the singular values σ 1 > σ 2 > > σ 100 of A.
Symmetry 16 01004 g005
Table 1. Relative errors when computing the eigenvalues λ 1 > λ 2 > > λ 20 of A 20 .
Table 1. Relative errors when computing the eigenvalues λ 1 > λ 2 > > λ 20 of A 20 .
i λ i TNEigenValueseig
λ i λ i ^ λ i λ i λ i ^ λ i
11.654 × 10 12 2.442 × 10 16 1.343 × 10 15
27.337 × 10 13 1.376 × 10 16 2.752 × 10 16
34.419 × 10 13 2.285 × 10 16 1.942 × 10 15
43.111 × 10 13 4.869 × 10 16 2.11 × 10 15
52.042 × 10 13 2.472 × 10 16 6.181 × 10 16
61.247 × 10 13 4.048 × 10 16 1.012 × 10 15
77.336 × 10 14 1.204 × 10 15 2.237 × 10 15
84.212 × 10 14 4.495 × 10 16 2.997 × 10 16
92.376 × 10 14 5.311 × 10 16 2.921 × 10 15
101.323 × 10 14 3.578 × 10 16 3.817 × 10 15
117.286 × 10 15 2.165 × 10 16 4.114 × 10 15
123.978 × 10 15 1.983 × 10 16 0
132.156 × 10 15 01.463 × 10 15
141.162 × 10 15 5.092 × 10 16 1.001 × 10 14
156.227 × 10 16 9.501 × 10 16 2.09 × 10 14
163.321 × 10 16 4.453 × 10 16 2.346 × 10 14
171.762 × 10 16 6.997 × 10 16 6.032 × 10 14
189.231 × 10 17 1.335 × 10 16 5.088 × 10 14
194.658 × 10 17 5.293 × 10 16 1.448 × 10 13
202.095 × 10 17 2.942 × 10 16 6.939 × 10 13
Table 2. Relative errors when computing the singular values σ 1 > σ 2 > > σ 20 of A 20 .
Table 2. Relative errors when computing the singular values σ 1 > σ 2 > > σ 20 of A 20 .
i σ i TNSingularValuessvd
σ i σ i ^ σ i σ i σ i ^ σ i
11.677 × 10 12 6.02 × 10 16 1.204 × 10 16
27.452 × 10 13 2.71 × 10 16 1.355 × 10 16
34.449 × 10 13 1.135 × 10 16 4.539 × 10 16
43.121 × 10 13 01.618 × 10 16
52.047 × 10 13 1.233 × 10 16 4.933 × 10 16
61.249 × 10 13 4.042 × 10 16 4.042 × 10 16
77.345 × 10 14 3.437 × 10 16 8.592 × 10 16
84.216 × 10 14 7.484 × 10 16 0
92.378 × 10 14 5.307 × 10 16 1.327 × 10 16
101.324 × 10 14 3.576 × 10 16 4.768 × 10 16
117.29 × 10 15 4.329 × 10 16 4.329 × 10 16
123.98 × 10 15 1.982 × 10 16 5.946 × 10 16
132.157 × 10 15 3.657 × 10 16 1.28 × 10 15
141.162 × 10 15 1.697 × 10 16 5.091 × 10 16
156.227 × 10 16 4.751 × 10 16 2.692 × 10 15
163.318 × 10 16 1.486 × 10 16 2.288 × 10 14
171.756 × 10 16 5.615 × 10 16 1.289 × 10 13
189.155 × 10 17 6.732 × 10 16 3.835 × 10 13
194.585 × 10 17 1.344 × 10 16 1.336 × 10 13
202.051 × 10 17 4.507 × 10 16 6.891 × 10 13
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Delgado, J.; Peña, G.; Peña, J.M. Accurate Computations with Generalized Green Matrices. Symmetry 2024, 16, 1004. https://doi.org/10.3390/sym16081004

AMA Style

Delgado J, Peña G, Peña JM. Accurate Computations with Generalized Green Matrices. Symmetry. 2024; 16(8):1004. https://doi.org/10.3390/sym16081004

Chicago/Turabian Style

Delgado, Jorge, Guillermo Peña, and Juan Manuel Peña. 2024. "Accurate Computations with Generalized Green Matrices" Symmetry 16, no. 8: 1004. https://doi.org/10.3390/sym16081004

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop