Go to the first, previous, next, last section, table of contents.


omatrix_diag

omatrix_diag(L)
:: リスト L の要素を対角成分とする対角行列を生成します.
return
行列
L
リスト
[301] omatrix_diag([1,2,3]);
[ 1 0 0 ]
[ 0 2 0 ]
[ 0 0 3 ]

[302] omatrix_diag([a,b,c]);
[ a 0 0 ]
[ 0 b 0 ]
[ 0 0 c ]


Go to the first, previous, next, last section, table of contents.