Continuous1D#
- class cuqi.geometry.Continuous1D(grid=None, axis_labels=None, **kwargs)#
A class that represents a continuous 1D geometry.
- Parameters:
grid (int, tuple, list or numpy.ndarray) – 1D array of node coordinates in a 1D grid (list or numpy.ndarray), or number of nodes (int or tuple with one int element) in the grid. In the latter case, a default grid with unit spacing and coordinates 0,1,2,… will be created.
- grid#
1D array of node coordinates in a 1D grid
- Type:
numpy.ndarray
- __init__(grid=None, axis_labels=None, **kwargs)#
Methods
__init__
([grid, axis_labels])fun2par
(funvals)The function to parameter map used to map function values back to parameters, if available.
fun2vec
(funvals)Maps function values to a vector representation of the function values, if available.
par2fun
(par)The parameter to function map used to map parameters to function values in e.g. plotting.
plot
(values[, is_par, plot_par])Plots a function over the set defined by the geometry object.
plot_envelope
(lo_values, hi_values[, ...])Plots an envelope from lower and upper bounds over the set defined by the geometry object.
vec2fun
(funvec)Maps function vector representation, if available, to function values.
Attributes
The dimension of the geometry (function space).
Flag to indicate whether the function value is an array.
The shape of the geometry (function space).
The dimension of the geometry (dimension of the vector representation of the function value).
The shape of the geometry (shape of the vector representation of the function value).
The dimension of the geometry (parameter space).
The shape of the parameter space