Module funspace::space1[][src]

Expand description

One-dmensional space

Example

Transform to chebyshev - dirichlet space

use funspace::{cheb_dirichlet, Space1, BaseSpace};
use ndarray::prelude::*;
let mut space = Space1::new(&cheb_dirichlet::<f64>(5));
let mut v: Array1<f64> = space.ndarray_physical();
v += 1.;
let vhat = space.forward(&mut v);
println!("{:?}", vhat);
// Not how the cheb dirichlet base imposes dirichlet conditions on
// the array: the first and last point are now zero,
let v = space.backward(&vhat);
println!("{:?}", v);

Structs

Create one-dimensional space