MappedGeometry#

class cuqi.geometry.MappedGeometry(geometry, map, imap=None)#

A class that represents a mapped geometry.

This applies a map (callable function) to any cuqi geometry. This will change the par2fun map. Additionally an inverse map (imap) can also be defined to allow inverting the function values to parameters redefining the fun2par map.

Parameters:
  • geometry (cuqi.geometry.Geometry)

  • map (callable function) – Any callable function representing the map which should be applied after the par2fun of the geometry.

  • imap (callable function, Default None) – Any callable function representing the inverse of map.

__init__(geometry, map, imap=None)#

Methods

__init__(geometry, map[, imap])

fun2par(f)

The function to parameter map used to map function values back to parameters, if available.

fun2vec(fun)

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

par2fun(p)

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

axis_labels

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

mesh

par_dim

The dimension of the geometry (parameter space).

par_shape

The shape of the parameter space.

variables