関数get_matrix_memory マニュアル

(The documentation of function get_matrix_memory)

Last Update: 2021/12/6


◆機能・用途(Purpose)

行列の動的メモリを確保する。
Allocate dynamic memories for a matrix.


◆形式(Format)

#include <matrix/initialize.h>
inline struct matrix get_matrix_memory(const int rowmax,const int columnmax)


◆引数(Arguments)

rowmax 作成する行列の行数。
The number of rows of the matrix to create.
columnmax 作成する行列の列数。
The number of columns of the matrix to create.


◆戻り値(Return value)

rowmax×columnmaxの空の(値が未設定の)行列を表す構造体。 戻り値の各メンバの値は以下のようになる。
A structure which represents an empty matrix (i.e., a matrix with values not set) of rowmax×columnmax. The values of members of the return value are as follows.

戻り値のメンバ
Member of the return value
値
Value
rowmax 引数rowmaxの値。
The value of argument rowmax.
columnmax 引数columnmaxの値。
The value of argument columnmax.
main rowmax×columnmaxの2次元配列として 動的メモリ確保のみを行ったもの。 各配列要素の値は設定しない。
A 2-D array of rowmax×columnmax for which only the dynamic allocations of memories were completed, without setting the values of array components.
allocated ’y’


◆使用例(Example)

struct matrix A=get_matrix_memory(2,3);