Package hedge :: Module polynomial
[hide private]
[frames] | no frames]

Module polynomial

source code

Jacobi polynomials and Vandermonde matrices.


Copyright: Copyright (C) 2007 Andreas Kloeckner

License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see U{http://www.gnu.org/licenses/}.

Classes [hide private]
  LegendreFunction
  DiffLegendreFunction
Functions [hide private]
 
generic_vandermonde(points, functions)
Return a Vandermonde matrix.
source code
 
generic_multi_vandermonde(points, functions)
Return multiple Vandermonde matrices.
source code
 
legendre_vandermonde(points, N) source code
 
monomial_vdm(levels) source code
 
make_interpolation_coefficients(levels, tap) source code
Function Details [hide private]

generic_vandermonde(points, functions)

source code 

Return a Vandermonde matrix.

The Vandermonde Matrix is given by V_{i,j} := f_j(x_i) where functions is the list of f_j and points is the list of x_i.

generic_multi_vandermonde(points, functions)

source code 

Return multiple Vandermonde matrices.

The Vandermonde Matrix is given by V_{i,j} := f_j(x_i) where functions is the list of f_j and points is the list of x_i.

The functions f_j are multi-valued (i.e. return iterables), and one matrix is returned for each return value.