📜  对角矩阵 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:48.828000             🧑  作者: Mango

代码示例1
Diagonal Matrix:
    A diagonal matrix is a matrix in which the entries outside the main 
diagonal are all zero. The term usually refers to square matrices.

A = 1 0 0
    0 2 0
    0 0 3

Here A is a 3x3 identity matrix