UQTk: Uncertainty Quantification Toolkit 3.1.5
gq.h
Go to the documentation of this file.
1/* =====================================================================================
2
3 The UQ Toolkit (UQTk) version 3.1.5
4 Copyright (2024) NTESS
5 https://www.sandia.gov/UQToolkit/
6 https://github.com/sandialabs/UQTk
7
8 Copyright 2024 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
9 Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
10 retains certain rights in this software.
11
12 This file is part of The UQ Toolkit (UQTk)
13
14 UQTk is open source software: you can redistribute it and/or modify
15 it under the terms of BSD 3-Clause License
16
17 UQTk is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 BSD 3 Clause License for more details.
21
22 You should have received a copy of the BSD 3 Clause License
23 along with UQTk. If not, see https://choosealicense.com/licenses/bsd-3-clause/.
24
25 Questions? Contact the UQTk Developers at https://github.com/sandialabs/UQTk/discussions
26 Sandia National Laboratories, Livermore, CA, USA
27===================================================================================== */
28#ifndef GQ_H
29#define GQ_H
30
48void gq ( const int kind, const double a, const double b, Array1D<double> &x, Array1D<double> &w ) ;
49
63void gq ( const int kind, const int n, const double a, const double b, double *x, double *w ) ;
64
77void gq_gen(Array1D<double> &a, Array1D<double> &b, const double amu0,
79
80
92
103void gchb(const int kind, const int n, double *x, double *w ) ;
104
105#endif
Stores data of any type T in a 1D array.
Definition Array1D.h:61
void gq_gen(Array1D< double > &a, Array1D< double > &b, const double amu0, Array1D< double > &x, Array1D< double > &w)
Computes abscissas and weights for a generic orthogonal polynomial recursion using the Golub-Welsch a...
Definition gq.cpp:252
void gq(const int kind, const double a, const double b, Array1D< double > &x, Array1D< double > &w)
Computes abscissas and weights for several quadrature rules.
Definition gq.cpp:66
void vandermonde_gq(Array1D< double > &x, Array1D< double > &w, Array1D< double > &q)
Computes abscissas and weights for Newton-Cotes rules through the solution of a Vandermonde matrix....
Definition gq.cpp:285
void gchb(const int kind, const int n, double *x, double *w)
Computes abscissas and weights for Chebyshev quadrature rules.
Definition gq.cpp:213