関数zero_columnvector マニュアル

(The documentation of function zero_columnvector)

Last Update: 2021/12/6


◆機能・用途(Purpose)

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


◆形式(Format)

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


◆引数(Arguments)

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


◆戻り値(Return value)

全成分の値が0のsize次元の列ベクトルを表す構造体。 戻り値の各メンバの値は以下のようになる。
A structure which represents a column 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 columnvector v=zero_columnvector(3);