pylops_mpi.StackedDistributedArray#

class pylops_mpi.StackedDistributedArray(distarrays, base_comm=<mpi4py.MPI.Intracomm object>)[source]#

Stacked DistributedArrays

Stack DistributedArray objects and power them with basic mathematical operations. This class allows one to work with a series of distributed arrays to avoid having to create a single distributed array with some special internal sorting.

Parameters:
distarrayslist

List of pylops_mpi.DistributedArray objects.

base_commmpi4py.MPI.Comm, optional

Base MPI Communicator. Defaults to mpi4py.MPI.COMM_WORLD.

Methods

__init__(distarrays[, base_comm])

add(stacked_array)

Stacked Distributed Addition of arrays

asarray()

Global view of the array

conj()

Distributed conj() method

copy()

Creates a copy of the DistributedArray

dot(stacked_array)

Dot Product of Stacked Distributed Arrays

iadd(stacked_array)

Stacked Distributed In-Place Addition of arrays

multiply(stacked_array)

Stacked Distributed Multiplication of arrays

norm([ord])

numpy.linalg.norm method on stacked Distributed arrays

Examples using pylops_mpi.StackedDistributedArray#

Derivatives

Derivatives

Stacked Array

Stacked Array

Post Stack Inversion - 3D

Post Stack Inversion - 3D