此为 Mathematica 4 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

3.7.7 Basic Matrix Operations

Some basic matrix operations.

Transposing a matrix interchanges the rows and columns in the matrix. If you transpose an  matrix, you get an  matrix as the result.

Transposing a  matrix gives a  result.

Det[m] gives the determinant of a square matrix m. Minors[m] is the matrix whose   element gives the determinant of the submatrix obtained by deleting the   row and the   column of m. The   cofactor of m is  times the   element of the matrix of minors.
Minors[m, k] gives the determinants of the  submatrices obtained by picking each possible set of  rows and  columns from m. Note that you can apply Minors to rectangular, as well as square, matrices.

Here is the determinant of a simple  matrix.

This generates a  matrix, whose   entry is a[i, j].

Here is the determinant of m.

This gives a matrix of the minors of m.

You can use Det to find the characteristic polynomial for a matrix. Section 3.7.9 discusses ways to find eigenvalues and eigenvectors directly.

Here is a  matrix.

Following precisely the standard mathematical definition, this gives the characteristic polynomial for m.

The trace or spur of a matrix Tr[m] is the sum of the terms on the leading diagonal.

This finds the trace of a simple  matrix.

Powers and exponentials of matrices.

Here is a  matrix.

This gives the third matrix power of m.

It is equivalent to multiplying three copies of the matrix.

Here is the millionth matrix power.

This gives the matrix exponential of m.

Here is an approximation to the exponential of m, based on a power series approximation.