- Thank you received: 0
How to convert a preconditioner matrix into a numpy matrix?
- creativeworker
- Topic Author
- Offline
- Senior Member
Less
More
5 years 6 months ago #1614
by creativeworker
How can I convert a preconditioner matrix c=Preconditioner(a, type="bddc") into a numpy matrix? I didn't find a way to achieve this.
5 years 6 months ago #1616
by joachim
Replied by joachim on topic How to convert a preconditioner matrix into a numpy matrix?
the preconditioners provide a matrix-vector multiplication. It does not make sense to convert them to a dense (numpy) matrix, except for testing.
For tests, you can apply the preconditioner to all unit vectors, and write the result as columns into a dense matrix.
best, Joachim
For tests, you can apply the preconditioner to all unit vectors, and write the result as columns into a dense matrix.
best, Joachim
- creativeworker
- Topic Author
- Offline
- Senior Member
Less
More
- Thank you received: 0
5 years 6 months ago #1618
by creativeworker
Replied by creativeworker on topic How to convert a preconditioner matrix into a numpy matrix?
Thank you. Yes, it's just for testing...
Time to create page: 0.098 seconds