関数diagonal_matrix_transpose マニュアル

(The documentation of function diagonal_matrix_transpose)

Last Update: 2021/12/6


◆機能・用途(Purpose)

対角行列の転置行列を計算する。
Calculate the transpose of a diagonal matrix.

なお非正方行列の場合、対角行列であっても転置行列は元の行列と異なる。
Note that for a non-square matrix, the transpose of a diagonal matrix is different from the original one.


◆形式(Format)

#include <matrix/operation.h>
inline struct diagonal_matrix diagonal_matrix_transpose
(const struct diagonal_matrix A)


◆引数(Arguments)

A 元の対角行列\(\myvector{A}\)。
The original diagonal matrix \(\myvector{A}\).


◆戻り値(Return value)

\(\myvector{A}\)の転置行列を表す構造体。 戻り値のメンバの値は以下のようになる。
A structure which represents the transpose of \(\myvector{A}\). The values of members of the return value are as follows.

戻り値のメンバ
Member of the return value
値
Value
rowmax A.columnmax
columnmax A.rowmax
size A.rowmaxとA.columnmaxのうちの小さい方。
Smaller one of A.rowmax and A.columnmax.
rank A.rank
各\(i\)に対するmain[i]
main[i] for each \(i\)
A.main[i]
allocated ’y’


◆使用例(Example)

struct diagonal_matrix A;
struct diagonal_matrix B=diagonal_matrix_transpose(A);