Skip to main content

Tools for building spectral methods

Project description

The SpectralToolbox is a collection of tools useful for spectral approximation methods in one or more dimensions. It include the construction of traditional orthogonal polynomials. Additionally one can construct orthogonal polynomials with respect to a selected measure.

Description

Implementation of Spectral Methods in N dimension.

Available polynomials:
  • Jacobi

  • Hermite Physicists’

  • Hermite Physicists’ Function

  • Hermite Probabilists’

  • Hermite Probabilists’ Function

  • Laguerre Polynomial

  • Laguerre Function

  • Fourier

  • ORTHPOL package (generation of recursion coefficients using [1])

Available quadrature rules (related to selected polynomials):
  • Gauss

  • Gauss-Lobatto

  • Gauss-Radau

Available quadrature rules (without polynomial selection):
  • Kronrod-Patterson on the real line

  • Kronrod-Patterson uniform

  • Clenshaw-Curtis

  • Fejer’s

Requirements

Installation (using pip)

For everything to go smooth, I suggest that you first install the requirements separately, even if in some environments the direct installation of SpectralToolbox should work.

$ pip install numpy

$ pip install scipy

$ pip install Sphinx

$ pip install sphinxcontrib-bibtex

You should intall the orthpol package. This dependency is required since v. 0.2.0. The installation might require you to tweak some flags for the compiler (with gcc nothing should be needed).

$ pip install –install-option=”install” orthpol

Finally you can install the toolbox by:

$ pip install SpectralToolbox

Installation (using Anaconda)

There is no anaconda package right now, so the dependencies and the installation must be carried out manually. First resolve some of the dependencies through conda:

$ conda install pip

$ conda install numpy

$ conda install scipy

Resolve the remaining dependencies manually:

$ cd <download_dir>

$ pip install -d ./ <package>

$ tar xzf <package>-X.X.X.tar.gz

$ cd <package>-X.X.X

$ python setup.py install

where <package> are in sequence: orthpol, SpectralToolbox.

References

Change Log

0.1.0:
  • Implementation of Poly1D, PolyND, and additional quadrature rules

0.2.0:
  • New interface for Spectral1D.

  • All polynomials are now classes.

  • Complete integration of orthpol

0.2.7:
  • Python3 support. And fixed installation procedure.

0.2.8:
0.2.11:
  • Added function generate for the generation of polynomials from type and parameters.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SpectralToolbox-0.2.22.tar.gz (2.0 MB view details)

Uploaded Source

File details

Details for the file SpectralToolbox-0.2.22.tar.gz.

File metadata

File hashes

Hashes for SpectralToolbox-0.2.22.tar.gz
Algorithm Hash digest
SHA256 7ea42eff16950923ddbc00b441af73a232b691f984e01e0cd5005d9131ef3d04
MD5 aa881a63a4f472ae78fb38155c6719a9
BLAKE2b-256 0c4b085a057eb7f48490a1c4648c8477cbbca33bf44a9b4c83544c68de5bc814

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page