0
0
SciPydata~5 mins

Sparse iterative solvers (gmres, cg) in SciPy - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AConjugate Gradient (CG)
BGMRES
CLU decomposition
DJacobi method
What does GMRES stand for?
AGaussian Matrix Residual
BGradient Method for Residuals
CGeneral Matrix Residual Solver
DGeneralized Minimal Residual
Which SciPy module contains the gmres and cg functions?
Ascipy.linalg
Bscipy.sparse.linalg
Cscipy.optimize
Dscipy.integrate
Why are iterative solvers preferred for large sparse systems?
AThey compute exact solutions instantly
BThey require dense matrices
CThey use less memory and can be faster
DThey do not need initial guesses
Which of these is NOT a characteristic of the CG method?
ACan solve non-symmetric matrices
BWorks only on symmetric matrices
CRequires positive definiteness
DIs an iterative solver
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.