Lecture 1 Flashcards
1
Q
Make Python wait
A
from time import sleep
sleep(0.1)
2
Q
t(n) = O(g(n)) definition
A
There is C s.t. t(n) <= C.g(n)
3
Q
Matrix product numpy
A
import numpy as np
np.dot(A,B)
4
Q
Prove linear independance
A
Show that det([v1 v2 v3]) is not null (with np.linalg.det())
5
Q
Nullspace of a matrix
A
Dimension of nullspace = dimension - rank
Rank is the number of vectors so that the matrix is linearly independent.
6
Q
Inverse of a matrix
A
np.linalg.inv()
7
Q
Operations of symmetric matrices
A
AB+BA is symmetric
A-B, A+B, A-1, A^n, cA too
(symmetric if A^T = A)