関数zero_rowvector マニュアル

(The documentation of function zero_rowvector)

Last Update: 2021/12/6


◆機能・用途(Purpose)

全成分の値が0の行ベクトルを作成する。
Create a row vector whose values of all components are zero.


◆形式(Format)

#include <matrix/initialize.h>
inline struct rowvector zero_rowvector(const int size)


◆引数(Arguments)

size 作成する行ベクトルの次元。
The dimension of the row vector to create.


◆戻り値(Return value)

全成分の値が0のsize次元の行ベクトルを表す構造体。 戻り値の各メンバの値は以下のようになる。
A structure which represents a row vector of size dimension, whose values of all components are zero. The values of members of the return value are as follows.

戻り値のメンバ
Member of the return value
値
Value
size 引数sizeの値。
The value of argument size.
main size次元の配列。 全配列要素の値を0.0とする。
An array of size dimension, whose all components are 0.0.
allocated ’y’


◆使用例(Example)

struct rowvector v=zero_rowvector(3);