normal list built-in methods don't work on numpy arrays
in python + just concatenates
in numpy + it does element-wise vector addition
has instance methods: dot(), sum()
has linalg methods:
matrix datatypes
matrix methods:
C = sum over i {A(i)B(i)} a.dot(b) SAME AS np.inner(a,b)
Ax = b
A - a matrix x - column we are trying to solve for b = vector of numbers
solution: multiply by A(-1) (A inverse) on both sides
x = np.linalg.inv(A).dot(b)
-- alternatively: x = np.linalg.solve(A,b)
There was an error while loading. Please reload this page.