polar.c1_linops#

Classes#

Inheritance diagram of psydac.polar.c1_linops

Details#

class LinearOperator_StencilToDense(V, W, data)[source]#

Bases: LinearOperator

property domain#

The domain of the linear operator - an element of Vectorspace

property codomain#

The codomain of the linear operator - an element of Vectorspace

property dtype#

The data type of the coefficients of the linear operator, upon convertion to matrix.

dot(v, out=None)[source]#

Apply the LinearOperator self to the Vector v.

The result is written to the Vector out, if provided.

Parameters:
vVector

The vector to which the linear operator (self) is applied. It must belong to the domain of self.

outVector

The vector in which the result of the operation is stored. It must belong to the codomain of self. If out is None, a new vector is created and returned.

Returns:
Vector

The result of the operation. If out is None, a new vector is returned. Otherwise, the result is stored in out and out is returned.

toarray(**kwargs)[source]#

Convert to Numpy 2D array.

tosparse(**kwargs)[source]#

Convert to a sparse matrix in any of the formats supported by scipy.sparse.

copy()[source]#
tocoo()[source]#
transpose(conjugate=False)[source]#

Transpose the LinearOperator .

If conjugate is True, return the Hermitian transpose.

class LinearOperator_DenseToStencil(V, W, data)[source]#

Bases: LinearOperator

property domain#

The domain of the linear operator - an element of Vectorspace

property codomain#

The codomain of the linear operator - an element of Vectorspace

property dtype#

The data type of the coefficients of the linear operator, upon convertion to matrix.

dot(v, out=None)[source]#

Apply the LinearOperator self to the Vector v.

The result is written to the Vector out, if provided.

Parameters:
vVector

The vector to which the linear operator (self) is applied. It must belong to the domain of self.

outVector

The vector in which the result of the operation is stored. It must belong to the codomain of self. If out is None, a new vector is created and returned.

Returns:
Vector

The result of the operation. If out is None, a new vector is returned. Otherwise, the result is stored in out and out is returned.

toarray(**kwargs)[source]#

Convert to Numpy 2D array.

tosparse(**kwargs)[source]#

Convert to a sparse matrix in any of the formats supported by scipy.sparse.

copy()[source]#
tocoo()[source]#
transpose(conjugate=False)[source]#

Transpose the LinearOperator .

If conjugate is True, return the Hermitian transpose.