Using function matrix multiplication is not working.
\r\n\r\n\r\n\r\n\r\n\r\np.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #34a327; background-color: #ffffff}\r\np.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff; min-height: 13.0px}\r\np.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}\r\np.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #c33720; background-color: #ffffff}\r\np.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #34bc26; background-color: #ffffff}\r\np.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #5230e1; background-color: #ffffff}\r\nspan.s1 {font-variant-ligatures: no-common-ligatures}\r\nspan.s2 {font-variant-ligatures: no-common-ligatures; color: #2ee721}\r\nspan.s3 {font-variant-ligatures: no-common-ligatures; color: #000000}\r\nspan.s4 {font-variant-ligatures: no-common-ligatures; color: #3c9ff2}\r\nspan.s5 {font-variant-ligatures: no-common-ligatures; color: #34a327}\r\nspan.s6 {font-variant-ligatures: no-common-ligatures; color: #c33720}\r\nspan.s7 {font-variant-ligatures: no-common-ligatures; color: #33bbc8}\r\nspan.s8 {font-variant-ligatures: no-common-ligatures; color: #5230e1}\r\nspan.s9 {font-variant-ligatures: no-common-ligatures; color: #34bc26}\r\n\r\n\r\n\r\nIn [110]: from numpy.linalg import det\r\n\r\nIn [111]: m5 = matrix([[2,-3,1],[2,0,-1],[1,4,5]])\r\n---------------------------------------------------------------------------\r\nNameError Traceback (most recent call last)\r\n<ipython-input-111-8f370b341908> in <module>()\r\n----> 1 m5 = matrix([[2,-3,1],[2,0,-1],[1,4,5]])\r\n\r\nNameError: name 'matrix' is not definedSolution - if matrix is replaced with asmatrix it works fine.
4908 visits
Outline: Matrices creating matrices direct data list conversion builtins - identitiy, zeros, matrix operations + - * / dot inv det eig norm svd
Matrices creating matrices direct data list conversion builtins - identitiy, zeros, matrix operations + - * / dot inv det eig norm svd
Show video info
Pre-requisite