21 void gauss_jacobi_c(
int* npts,
double* alpha,
double* beta,
double x[],
double wts[],
const char* method) {
23 fprintf(stderr,
"Error: npts must positive\n");
27 if (*alpha <= -1.0f) {
28 fprintf(stderr,
"Error: alpha must be greater than -1\n");
33 fprintf(stderr,
"Error: beta must be greater than -1\n");
37 if (strcmp(method,
"rec") == 0) {
39 }
else if (strcmp(method,
"gw") == 0) {
41 }
else if (strcmp(method,
"algo665") == 0) {
44 fprintf(stderr,
"Error: Unknown method specified: %s\n", method);
45 fprintf(stderr,
"Supported methods: 'rec', 'gw', 'algo665'\n");
void gauss_jacobi_c(int *npts, double *alpha, double *beta, double x[], double wts[], const char *method)
void gauss_jacobi_algo665_c(int *npts, double *alpha, double *beta, double x[], double wts[])
void gauss_jacobi_gw_c(int *npts, double *alpha, double *beta, double x[], double wts[])
void gauss_jacobi_rec_c(int *npts, double *alpha, double *beta, double x[], double wts[])