pylops_mpi.proximal.MPISimplex#
- class pylops_mpi.proximal.MPISimplex(dims, radius, maxiter=100, ftol=1e-08, xtol=1e-08, call=True, engine='numpy')[source]#
Simplex proximal operator.
Implement a distributed version of a Simplex: \(\Delta_n(r) = \{ \mathbf{x}: \sum_i x_i = r,\; x_i \geq 0 \}\).
This operator can be applied to a set of vectors where each vector is created by stacking the elements at the same index of multiple
pylops_mpi.DistributedArrayobjects stored into apylops_mpi.StackedDistributedArray- Parameters:
- dims
tuple Dimensions of the local matrix onto which the input vector is reshaped. More specifically,
dims[0]must match the number ofpylops_mpi.DistributedArrayobjects in the inputpylops_mpi.StackedDistributedArrayanddims[1]is the local shape of eachpylops_mpi.DistributedArrayobject- radius
float Radius
- maxiter
int, optional Maximum number of iterations used by bisection
- ftol
float, optional Function tolerance in bisection (only with
engine='numba'orengine='cuda')- xtol
float, optional Solution absolute tolerance in bisection
- call
bool, optional Evalutate call method (
True) or not (False)- engine
str, optional Engine used for simplex computation (
numpy,numba``or ``cuda).
- dims
- Raises:
- KeyError
If
engineis neithernumpynornumbanorcuda
Notes
This is a distributed implementation of a Simplex repeatedly applied to a set of vectors which are defined as the columns of a matrix.
The matrix is here represented as a
pylops_mpi.StackedDistributedArraywith each row corresponding to apylops_mpi.DistributedArray. Each column is created by stacking the elements at the same index of multiplepylops_mpi.DistributedArrayobjects.Methods
__init__(dims, radius[, maxiter, ftol, ...])postcomposition(sigma)Postcomposition
precomposition(a, b)Precomposition
prox(**kwargs)proxdual(**kwargs)