# pylops.MatrixMult¶

class pylops.MatrixMult(A, dims=None, dtype='float64')[source]

Matrix multiplication.

Simple wrapper to numpy.dot and numpy.vdot for an input matrix $$\mathbf{A}$$.

Parameters: A : Matrix. dims : tuple, optional Number of samples for each other dimension of model (model/data will be reshaped and A applied multiple times to each column of the model/data). dtype : str, optional Type of elements in input array. shape : tuple Operator shape explicit : bool Operator contains a matrix that can be solved explicitly (True) or not (False)

Methods

 __init__(self, A[, dims, dtype]) Initialize this LinearOperator. adjoint(self) Hermitian adjoint. cond(self, \*\*kwargs_eig) Condition number of linear operator. conj(self) Complex conjugate operator div(self, y[, niter]) Solve the linear problem $$\mathbf{y}=\mathbf{A}\mathbf{x}$$. dot(self, x) Matrix-matrix or matrix-vector multiplication. eigs(self[, neigs, symmetric, niter]) Most significant eigenvalues of linear operator. inv(self) Return the inverse of $$\mathbf{A}$$. matmat(self, X) Matrix-matrix multiplication. matvec(self, x) Matrix-vector multiplication. rmatvec(self, x) Adjoint matrix-vector multiplication. transpose(self) Transpose this linear operator.
inv(self)[source]

Return the inverse of $$\mathbf{A}$$.

Returns: Ainv : numpy.ndarray Inverse matrix.