Advanced Matrix Operations  English
 Questions posted on Forums
 Python 3.4.3 Tutorials  English

Error in code
To practice i had created another matrix find its inverse and check whether its multiplication with it's inverse is giving an identity matrix or not. as you had said that multiplication with it's inverse gives an identity matrix so the result of allclose function has to be True but I am getting False. I am sharing the code please tell me where the mistake is?#calculating determinant of a matrixfrom numpy.linalg import detm=asmatrix(arange(1,10).reshape(3,3))print(m)print(det(m))[[1 2 3] [4 5 6] [7 8 9]] 6.66133814775094e16from numpy.linalg import inv print(m) im=inv(m) print(im)[[1 2 3] [4 5 6] [7 8 9]] [[4.50359963e+15 9.00719925e+15 4.50359963e+15] [ 9.00719925e+15 1.80143985e+16 9.00719925e+15] [4.50359963e+15 9.00719925e+15 4.50359963e+15]]#to check whether multiplication of a matrix with it's inverse matrix gives identity matrix or not from numpy import eye,allclose print(asmatrix(eye(3))) rs=im*m rs.shape print(rs) allclose(rs,asmatrix(eye(3)))[[1. 0. 0.] [0. 1. 0.] [0. 0. 1.]] [[ 12. 8. 8.] [16. 8. 0.] [ 4. 0. 0.]] Out[118]: False
0607M 5060SJan. 11, 2021, 2:39 a.m. Jainhruti1988

U in SVD
Could you please explain what is U and how it is calculated?
0506M 2030SJan. 16, 2021, 11:26 a.m. sreejapanikath

svd
Explain the uses of U and V_conjugate functions in svd.
0506M 010SJan. 11, 2021, 6:31 p.m. NandhiniMariyappan

Doubt
Can you explain how to find frobenius?
0405M 3040SJan. 16, 2021, 5:02 a.m. NandhiniMariyappan

1Getting started with IPython

2Using plot command interactively

3Embellishing a plot

4Saving plots

5Multiple plots

6Subplots

7Additional features of IPython

8Loading Data From Files

9Plotting Data

10Other Types Of Plots

11Plotting Charts

12Getting started with Lists

13Getting started with for

14Getting started with strings

15Getting started with files

16Parsing data

17Statistics

18Getting started with arrays

19Accessing parts of arrays

20Image manipulation using Arrays

21Basic Matrix Operations

Advanced Matrix Operations

23Least square fit

24Basic datatypes and operators

25Sequence datatypes

26Inputoutput

27Conditional Statements

28Loops

29Manipulating lists

30Manipulating strings

31Getting started with tuples

32Dictionaries

33Sets in Python

34Getting Started with Functions

35Advanced Features of Functions

36Using Python Modules

37Writing Python Scripts

38Testing and Debugging

39Handling Errors and Exceptions
Questions posted on ST Forums:
10746 visits
Outline:
flatten() function Example to convert a multidimensional matrix to single dimension matrix Frobenius norm of a matrix Demonstration of Frobenius norm of a matrix Inverse of a matrix Infinity norm of a matrix norm documentation Singular value decomposition svd() function smat function
Width:  832  Height:  614 

Duration:  00:07:55  Size:  6.7 MB 
Show video info