slepc4py.SLEPc.Util#

class slepc4py.SLEPc.Util#

Bases: object

Other utilities such as the creation of structured matrices.

Methods Summary

createMatBSE(R, C)

Create a matrix that can be used to define a BSE type problem.

createMatHamiltonian(A, B, C)

Create matrix to be used for a structured Hamiltonian eigenproblem.

createMatLREP(AK, BM[, red])

Create a matrix that can be used to define a LREP type problem.

Methods Documentation

classmethod createMatBSE(R, C)#

Create a matrix that can be used to define a BSE type problem.

Collective.

Create a matrix that can be used to define a structured eigenvalue problem of type BSE (Bethe-Salpeter Equation).

Parameters:
Returns:

The matrix with the block form \(H = [ R\; C; {-C}^*\; {-R}^T ]\).

Return type:

petsc4py.PETSc.Mat

See also

MatCreateBSE

Source code at slepc4py/SLEPc/Util.pyx:8

classmethod createMatHamiltonian(A, B, C)#

Create matrix to be used for a structured Hamiltonian eigenproblem.

Collective.

Parameters:
Returns:

The matrix with the block form \(H = [ A\; B; C\; -A^* ]\).

Return type:

petsc4py.PETSc.Mat

Source code at slepc4py/SLEPc/Util.pyx:38

classmethod createMatLREP(AK, BM, red=False)#

Create a matrix that can be used to define a LREP type problem.

Collective.

Create a matrix that can be used to define a structured Linear Response eigenvalue problem.

Parameters:
  • AK (petsc4py.PETSc.Mat) – The matrix for the diagonal block or the top block.

  • BM (petsc4py.PETSc.Mat) – The matrix for the off-diagonal block or the bottom block.

  • red (bool) – Whether the reduced form should be built.

Returns:

The matrix with the block form \(H = [ A\; B; -B\; -A ]\) (non-reduced) or \(H = [ 0\; K; M\; 0 ]\) (reduced).

Return type:

petsc4py.PETSc.Mat

See also

MatCreateLREP

Source code at slepc4py/SLEPc/Util.pyx:67