0
0
SciPydata~5 mins

Sparse matrix factorizations in SciPy - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a sparse matrix?
A sparse matrix is a matrix mostly filled with zeros. It saves memory by only storing the non-zero values and their positions.
Click to reveal answer
beginner
Why do we use sparse matrix factorizations?
We use sparse matrix factorizations to solve large systems of equations efficiently by taking advantage of the many zeros to reduce computation and memory use.
Click to reveal answer
intermediate
Name two common sparse matrix factorizations available in SciPy.
LU factorization and QR factorization are two common sparse matrix factorizations in SciPy.
Click to reveal answer
intermediate
What is the difference between LU and Cholesky factorization?
LU factorization breaks a matrix into lower and upper triangular matrices and works for general matrices. Cholesky factorization works only for symmetric, positive-definite matrices and breaks them into a lower triangular matrix and its transpose.
Click to reveal answer
beginner
How do you perform a sparse LU factorization using SciPy?
Use the function scipy.sparse.linalg.splu() on a sparse matrix to get its LU factorization.
Click to reveal answer
What does a sparse matrix mainly contain?
AMostly zeros
BMostly ones
CRandom numbers
DOnly positive numbers
Which SciPy function is used for sparse LU factorization?
Ascipy.sparse.cholesky()
Bscipy.linalg.lu()
Cscipy.sparse.linalg.splu()
Dscipy.linalg.inv()
Cholesky factorization requires the matrix to be:
ASymmetric and positive-definite
BSquare and invertible
CDiagonal
DSparse only
Why is sparse matrix factorization faster than dense matrix factorization?
ABecause it uses more memory
BBecause it ignores zeros and stores less data
CBecause it converts to dense first
DBecause it uses random numbers
Which factorization splits a matrix into lower and upper triangular matrices?
AEigen decomposition
BCholesky factorization
CQR factorization
DLU factorization
Explain what sparse matrix factorization is and why it is useful.
Think about how zeros affect storage and computation.
You got /3 concepts.
    Describe the difference between LU and Cholesky factorizations in sparse matrices.
    Consider the matrix properties each factorization needs.
    You got /3 concepts.