関数matrix_transpose マニュアル

(The documentation of function matrix_transpose)

Last Update: 2021/12/6


◆機能・用途(Purpose)

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


◆形式(Format)

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


◆引数(Arguments)

A 元の行列\(\myvector{A}\)。
The original 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
各\(i\), \(j\)に対するmain[i][j]
main[i][j] for each \(i\) and \(j\)
A.main[j][i]
allocated ’y’


◆使用例(Example)

struct matrix A;
struct matrix B=matrix_transpose(A);