archimedes.quadrature.golub_welsch¶
- archimedes.quadrature.golub_welsch( ) tuple[ndarray, ndarray]¶
Gauss nodes/weights from monic recurrence coefficients.
Given monic three-term recurrence coefficients
(alpha, beta)(seerecurrence_coeffs()), the Gauss nodes are the eigenvalues of the symmetric tridiagonal Jacobi matrix with diagonalalphaand off-diagonalsqrt(beta[1:]); the quadrature weights arebeta[0]times the squared first component of each corresponding normalized eigenvector [1].- Parameters:
alpha (array_like) – Monic recurrence coefficients, each shape
(n,).beta[0]is the total mass of the measure (its zeroth moment); the rest ofbetaand all ofalphaare the recursion coefficients themselves.beta (array_like) – Monic recurrence coefficients, each shape
(n,).beta[0]is the total mass of the measure (its zeroth moment); the rest ofbetaand all ofalphaare the recursion coefficients themselves.
- Returns:
nodes, weights – Gauss quadrature nodes (ascending) and weights.
- Return type:
ndarray, shape
(n,)
References