関数zero_matrix マニュアル

(The documentation of function zero_matrix)

Last Update: 2021/12/6


◆機能・用途(Purpose)

全成分の値が0の行列を作成する。
Create a matrix whose values of all components are zero.


◆形式(Format)

#include <matrix/initialize.h>
inline struct matrix zero_matrix(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)

全成分の値が0の行列(サイズ:rowmax×columnmax)を表す構造体。 戻り値の各メンバの値は以下のようになる。
A structure which represents a matrix of size rowmax×columnmax, whose values of all components are zero. 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次元配列。 全配列要素の値を0.0とする。
A 2-D array of rowmax×columnmax, whose all components are 0.0.
allocated ’y’


◆使用例(Example)

struct matrix A=zero_matrix(2,3);