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