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.DistributedArray objects stored into a pylops_mpi.StackedDistributedArray

Parameters:
dimstuple

Dimensions of the local matrix onto which the input vector is reshaped. More specifically, dims[0] must match the number of pylops_mpi.DistributedArray objects in the input pylops_mpi.StackedDistributedArray and dims[1] is the local shape of each pylops_mpi.DistributedArray object

radiusfloat

Radius

maxiterint, optional

Maximum number of iterations used by bisection

ftolfloat, optional

Function tolerance in bisection (only with engine='numba' or engine='cuda')

xtolfloat, optional

Solution absolute tolerance in bisection

callbool, optional

Evalutate call method (True) or not (False)

enginestr, optional

Engine used for simplex computation (numpy, numba``or ``cuda).

Raises:
KeyError

If engine is neither numpy nor numba nor cuda

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.StackedDistributedArray with each row corresponding to a pylops_mpi.DistributedArray. Each column is created by stacking the elements at the same index of multiple pylops_mpi.DistributedArray objects.

Methods

__init__(dims, radius[, maxiter, ftol, ...])

postcomposition(sigma)

Postcomposition

precomposition(a, b)

Precomposition

prox(**kwargs)

proxdual(**kwargs)

Examples using pylops_mpi.proximal.MPISimplex#

Proximal operators

Proximal operators