Computational Linear Algebra Questions
Closed this issue · 2 comments
Hey Mike and the class,
Thanks for a great review session today. I have some remaining questions from the Computational Linear Algebra Notes:
- Is it possible to add two matrices (
A+B
) where one is sparse (A:mxn
) and the other is dense (B:mxn
)? If so, would the runtime be$\theta(mn)$ ? - What does the L2 norm for a matrix signify?
- I know that
nnz(A) = O(1)
means that the number of non-zero entries in A is bounded by an arbitrary constant. Does that mean we can consider the zero matrix in these types of situations as 0 is upper bounded by O(1)?
Thanks,
Adi
- Is it possible to add two matrices (
A+B
) where one is sparse (A:mxn
) and the other is dense (B:mxn
)? If so, would the runtime be$\theta(mn)$ ?
I won't ask this on the midterm. However, if you're modifying the dense matrix (using the pytorch add_
family of functions), the runtime will be
- What does the L2 norm for a matrix signify?
The top eigenvector. Using the pagerank paper notation, it is a correct statement (and one you should understand) that
- I know that
nnz(A) = O(1)
means that the number of non-zero entries in A is bounded by an arbitrary constant. Does that mean we can consider the zero matrix in these types of situations as 0 is upper bounded by O(1)?
That is correct.
Thanks for answering and clarifying.