Geometry#

class cuqi.geometry.Geometry#

A class that represents the geometry of the range, domain, observation, or other sets.

It specifies a mapping from the parameter space to the function space (par2fun()) and the inverse map if possible (fun2par()). The parameters can be for example, the center and width of a hat function, and the function is the resulting hat function evaluated at grid points of a given grid. The geometry keeps track of the dimension and shape of the parameter space (par_dim() and par_shape()) and the dimension and shape of the function space (fun_dim() and fun_shape()).

__init__()#

Methods

__init__()

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

fun_dim

The dimension of the geometry (function space).

fun_is_array

Flag to indicate whether the function value is an array.

fun_shape

The shape of the geometry (function space).

funvec_dim

The dimension of the geometry (dimension of the vector representation of the function value).

funvec_shape

The shape of the geometry (shape of the vector representation of the function value).

par_dim

The dimension of the geometry (parameter space).

par_shape

The shape of the parameter space.

variables