対角行列型 ファイル仕様

(Definition of “Diagonal Matrix” format)

Last Update: 2021/6/28



拡張子(Extension)
dm


拡張子の意味 (Meaning of the extension)
Diagonal Matrix


対象とする構造体の種類 (Supported structures)


データの保存形式 (Format of each data)
有効数字6桁の浮動小数点指数形式(%.6e)
Floating-point numbers in exponential formats with 6 decimals (%.6e)


特徴(Features)
行列の対角成分の行番号(列番号でもある)を第1列に、値を第2列に記載したもの。 必要な成分の値を調べるのが容易で、gnuplotやGMTからのプロットもできる。 この形式で出力すると対角成分以外は捨てられることになるので、 対角行列であることが予め分かっているものに適用すること。
The row indices of diagonal components (which are also the column indices) are in the 1st column, and the data are in the 2nd column. The advantages of this format are that the value of a specific component can easily be surveyed, and that the data can easily be plotted using gnuplot and GMT. Note that outputting the data in this format will result in loosing the off-diagonal components of the matrix; thus make sure to use this format only for those known as diagonal matrices.


仕様詳細(Detail)


(Example)
以下の4×3行列を考える。
Let us consider the 2×3 matrix given below:

\[\begin{pmatrix} 1 & 0 & 0 \\ 0 & 0.23 & 0 \\ 0 & 0 & 456.78 \\ 0 & 0 & 0 \end{pmatrix}\]
この行列を表現するためのファイルの中身は以下のようになる。 ここではタブを分かりやすいように [TAB]で表す。
The file to represent this matrix is as below, where tabs are shown by [TAB].

4
3

1[TAB]1.000000e+00
2[TAB]2.300000e-01
3[TAB]4.567800e+02