Time Stamps: Intro/Vocabulary - 0:58 Making a matrix - 2:45 Making a vector - 7:10 Specifying a "ring" for your matrix - 8:43 Storing a matrix in a variable - 14:23 Matrix operations (e.g. addition, multiplication) - 18:11 Special matrices (ones_matrix(), zero_matrix(), identity_matrix(), random_matrix()) - 21:55 Accessing an element(s) from your matrix - 26:21
Thanks for the suggestion! Will look into doing that, in the meantime here are some resources for you: doc.sagemath.org/html/en/reference/matrices/sage/matrix/special.html#sage.matrix.special.vandermonde gregorybard.com/books.html - click on the "Sage for Undergraduates" and go to Section 1.5.7 ("Vandermonde's Matrix"). Hope this helps!
Hi - good question. For a matrix "A" you can use A.nrows() for number of rows and A.ncols() for number of columns like so: In: A = matrix(ZZ, 3, 2, [1, 2, 3, 4, 5, 6]) In: A.ncols() Out: 2 In: A.nrows() Out: 3 ask.sagemath.org/question/8020/matrix-size/; doc.sagemath.org/pdf/en/reference/matrices/matrices.pdf at 10-11.
Time Stamps:
Intro/Vocabulary - 0:58
Making a matrix - 2:45
Making a vector - 7:10
Specifying a "ring" for your matrix - 8:43
Storing a matrix in a variable - 14:23
Matrix operations (e.g. addition, multiplication) - 18:11
Special matrices (ones_matrix(), zero_matrix(), identity_matrix(), random_matrix()) - 21:55
Accessing an element(s) from your matrix - 26:21
The video is really helpful, thanks
Could you do a tutorial on vandermonde matrices for sage PLEASE!
Thanks for the suggestion! Will look into doing that, in the meantime here are some resources for you: doc.sagemath.org/html/en/reference/matrices/sage/matrix/special.html#sage.matrix.special.vandermonde
gregorybard.com/books.html - click on the "Sage for Undergraduates" and go to Section 1.5.7 ("Vandermonde's Matrix").
Hope this helps!
I've got one question. How can I get the rows and columns of a matrix?
Hi - good question. For a matrix "A" you can use A.nrows() for number of rows and A.ncols() for number of columns like so:
In: A = matrix(ZZ, 3, 2, [1, 2, 3, 4, 5, 6])
In: A.ncols()
Out: 2
In: A.nrows()
Out: 3
ask.sagemath.org/question/8020/matrix-size/; doc.sagemath.org/pdf/en/reference/matrices/matrices.pdf at 10-11.
@@mccpytutorials7955 thank you!
My pleasure - good luck!
how can we implement inverse of a matrix in sagemath
You could try (matrix)^(-1)? But I'm not entirely sure.