Matrices - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- Python Tutorials - English
-
MULTIPLICATION
Using function matrix multiplication is not working.
00-01M 0-10S gowrisudhamanikandan
Answer last updated on: June 22, 2019, 4:13 p.m.
-
Command error - shown as matrix instead of asmatrix
\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.
06-07M 30-40S erankikiran
Answer last updated on: May 25, 2019, 4:35 p.m.
-
1Getting started with ipython
-
2Using the plot command interactively
-
3Embellishing a plot
-
4Saving plots
-
5Multiple plots
-
6Additional features of IPython
-
7loading data from files
-
8Plotting the data
-
9Other types of plots
-
10Getting started with sage notebook
-
11Getting started with symbolics
-
12Using Sage
-
13Using sage to teach
-
14Getting started with lists
-
15Getting started with for
-
16Getting started with strings
-
17Getting started with files
-
18Parsing data
-
19Statistics
-
20Getting started with arrays
-
21Accessing parts of arrays
-
Matrices
-
23Least square fit
-
24Basic datatypes and operators
-
25I O
-
26Conditionals
-
27Loops
-
28Manipulating lists
-
29Manipulating strings
-
30Getting started with tuples
-
31Dictionaries
-
32Sets
-
33Getting started with functions
-
34Advanced features of functions
-
35Using python modules
-
36Writing python scripts
-
37Testing and debugging
Questions posted on ST Forums:
5242 visits
Outline:
Matrices creating matrices direct data list conversion builtins - identitiy, zeros, matrix operations + - * / dot inv det eig norm svd
Width: | 624 | Height: | 480 |
---|---|---|---|
Duration: | 00:17:31 | Size: | 7.4 MB |
Show video info