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