Recall & Review
beginner
What is the main purpose of sparse iterative solvers like GMRES and CG?
They efficiently solve large systems of linear equations where the matrix is sparse, meaning most elements are zero, saving memory and computation time.
Click to reveal answer
beginner
What type of matrices is the Conjugate Gradient (CG) method best suited for?
CG is best for symmetric and positive definite matrices.
Click to reveal answer
intermediate
How does GMRES differ from CG in terms of matrix requirements?
GMRES can solve general non-symmetric matrices, while CG requires the matrix to be symmetric and positive definite.
Click to reveal answer
beginner
In SciPy, which module provides the gmres and cg functions?
The functions gmres and cg are available in the scipy.sparse.linalg module.
Click to reveal answer
intermediate
Why are iterative solvers preferred over direct solvers for very large sparse systems?
Iterative solvers use less memory and can be faster because they avoid computing full matrix factorizations, which are costly for large sparse matrices.
Click to reveal answer
Which solver is suitable for a symmetric positive definite sparse matrix?
✗ Incorrect
CG is designed for symmetric positive definite matrices, making it the best choice here.
What does GMRES stand for?
✗ Incorrect
GMRES stands for Generalized Minimal Residual, an iterative method for solving non-symmetric systems.
Which SciPy module contains the gmres and cg functions?
✗ Incorrect
The gmres and cg functions are in scipy.sparse.linalg, specialized for sparse matrix operations.
Why are iterative solvers preferred for large sparse systems?
✗ Incorrect
Iterative solvers save memory and time by avoiding full matrix factorizations.
Which of these is NOT a characteristic of the CG method?
✗ Incorrect
CG cannot solve non-symmetric matrices; GMRES is used for those.
Explain when and why you would use the GMRES solver instead of CG.
Think about matrix symmetry and solver flexibility.
You got /4 concepts.
Describe the advantages of using sparse iterative solvers for large linear systems.
Consider memory and speed benefits.
You got /4 concepts.