Create block PETScMatrix for eigenvalue computation
Asked by
Praveen C
Hello
To solve a generalized eigenvalue problem A*x = lambda*E*x, I do
E11 = PETScMatrix()
assemble(m, tensor=E11)
A11 = PETScMatrix()
assemble(a, tensor=A11)
The above is not a problem. Now I want to do the following for which I need help
A12 = [[1, 0], ..., [0 1]]
and construct block matrices (matlab notation)
E = [E11, 0; 0, 0]
A = [A11, A12; A12', 0]
Can you tell me how to construct such PETScMatrice ?
praveen
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Praveen C for more information if necessary.
To post a message you must log in.