1

有没有一个公式可以让我得到矩阵的对角线长度(以单位为单位)?例如,如果矩阵为 3x3,则对角线长度为 3。

4

1 回答 1

8

The diagonal of an NxN matrix is always N.

The diagonal of a non-square matricies is min(nrows, ncols).

Matricies can have units (e.g. stiffness matrix in finite elements for mechanics has physical units of force/length), but I'm not sure how you mean it.

于 2013-02-13T21:19:03.863 回答