関数zero_sequence マニュアル

(The documentation of function zero_sequence)

Last Update: 2023/6/13


◆機能・用途(Purpose)

struct sequence型構造体のメンバvalueの全配列要素の値を0.0に設定(初期化)する。
Set 0.0 (initialize) to the values of all array components of member value of a struct sequence-type structure.


◆形式(Format)

#include <sequence/initialize.h>
inline void zero_sequence(struct sequence seq)


◆引数(Arguments)

seq 処理対象の構造体。 予め関数get_sequence_memoryを用いて メンバvalueの配列の動的メモリ確保と 他のメンバの値の設定を済ませておくこと。 関数内でseq.valueの全配列要素の値が0.0になる。
The target structure, for which the dynamic memory for the array of member value has to be allocated and the values of all other members has to be set before the function call. Within the function, the value of 0.0 is set to all array components of seq.value.


◆使用例(Example)

struct sequence data=get_sequence_memory(100,0.0,0.01);
zero_sequence(data);