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?
✗ Incorrect
Sparse matrices mainly contain zeros, which helps save memory.
Which SciPy function is used for sparse LU factorization?
✗ Incorrect
scipy.sparse.linalg.splu() performs LU factorization on sparse matrices.
Cholesky factorization requires the matrix to be:
✗ Incorrect
Cholesky factorization only works on symmetric, positive-definite matrices.
Why is sparse matrix factorization faster than dense matrix factorization?
✗ Incorrect
Sparse factorization is faster because it skips zeros and uses less memory.
Which factorization splits a matrix into lower and upper triangular matrices?
✗ Incorrect
LU factorization splits a matrix into lower and upper triangular matrices.
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.