slepc-3.11.1 2019-04-30
Report Typos and Errors


Sets the coefficient matrices that define the linear matrix equation to be solved.


#include "slepclme.h" 
PetscErrorCode LMESetCoefficients(LME lme,Mat A,Mat B,Mat D,Mat E)
Collective on LME and Mat

Input Parameters

lme  - the matrix function context
A  - first coefficient matrix
B  - second coefficient matrix
D  - third coefficient matrix
E  - fourth coefficient matrix


The matrix equation takes the general form A*X*E+D*X*B=C, where matrix C is not provided here but with LMESetRHS(). Not all four matrices must be passed, some can be NULL instead, see LMESetProblemType() for details.

It must be called before LMESetUp(). If it is called again after LMESetUp() then the LME object is reset.

In order to delete a previously set matrix, pass a NULL in the corresponding argument.

See Also

LMESolve(), LMESetUp(), LMESetRHS(), LMESetProblemType()

Location: src/lme/interface/lmesetup.c
Index of all LME routines
Table of Contents for all manual pages
Index of all manual pages