61 integer,
intent(in) :: npts
62 real(dp),
intent(in) :: alpha, beta
63 real(dp),
intent(out) :: x(npts), wts(npts)
64 real(dp) :: zeroeth_moment
66 real(dp) :: diagonal_elements(npts), &
67 off_diagonal_elements(npts - 1)
73 diagonal_elements = jacobi_mat%diagonal(1:npts)
74 off_diagonal_elements = jacobi_mat%off_diagonal(1:npts - 1)
79 wts(1) = sqrt(zeroeth_moment)
82 call imtqlx(npts, x, off_diagonal_elements, wts)
This module provides routines for numerical integration using Gauss-Jacobi quadrature.
subroutine gauss_jacobi_algo665(npts, alpha, beta, x, wts)
Computes the zeros and weights for Gauss-Jacobi quadrature.
This module provides utility functions for computing Jacobi matrices and zeroth moments.
type(gjp_sparse_matrix) function jacobi_matrix(n, alpha, beta)
Computes the Jacobi matrix for given parameters.
real(dp) function jacobi_zeroeth_moment(alpha, beta)
Computes the zeroth moment for Jacobi polynomials.
subroutine imtqlx(mat_size, diag, off_diag, sol_vec)
Implicitly-shifted Modified QL factorization algorithm for symmetric tridiagonal matrices.
Module for defining types and precision levels for Gauss-Jacobi Polynomial (GJP) calculations.
integer, parameter, public dp
Define various kinds for real numbers.
Sparse representation of a Jacobi matrix.