|
|
# API
|
|
|
|
|
|
This library provides a set of functions for computation derivatives using spectral methods. The lib depends on [FFTW](http://www.fftw.org/) library. The library is compatible with W-SLDA Toolkit however, it can be used as standalone lib. It is written in [C99 standard](https://en.wikipedia.org/wiki/C99).
|
|
|
# Name convention
|
|
|
Generic name of a function is `wderiv_operation_Nd_t`, where:
|
|
|
* `wderiv`: fixed, function belongs to *wderiv* lib,
|
|
|
* `operation`:
|
|
|
* dfdx
|
|
|
* dfdy
|
|
|
* dfdz
|
|
|
* d2fdx2
|
|
|
* d2fdy2
|
|
|
* d2fdz2
|
|
|
* dnfdxn
|
|
|
* dnfdyn
|
|
|
* dnfdzn
|
|
|
* gradient
|
|
|
* divergence
|
|
|
* ...
|
|
|
* `x`:
|
|
|
* `1` for 1D problems
|
|
|
* `2` for 2D problems
|
|
|
* `3` for 3D problems
|
|
|
* `t`:
|
|
|
* `r` for real problems
|
|
|
* `c` for complex problems
|
|
|
# Examples |