Continuous2D#

class cuqi.geometry.Continuous2D(grid=None, axis_labels=None)#
__init__(grid=None, axis_labels=None)#

Methods

__init__([grid, axis_labels])

fun2par(funvals)

Converts a 2D function value or multiple 2D function values into a parameter vector or multiple parameter vectors.

fun2vec(funvals)

Maps function values to a vector representation of the function values, if available.

par2fun(pars)

Converts a parameter vector or multiple parameter vectors into a 2D function value or multiple 2D function values.

plot(values[, is_par, plot_par])

Plots a function over the set defined by the geometry object.

plot_contour(values, **kwargs)

plot_contourf(values, **kwargs)

plot_envelope(lo_values, hi_values[, ...])

Plots an envelope from lower and upper bounds over the set defined by the geometry object.

plot_pcolor(values, **kwargs)

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).

grid

par_dim

The dimension of the geometry (parameter space).

par_shape

The shape of the parameter space

variables