関数zero_imsequence マニュアル

(The documentation of function zero_imsequence)

Last Update: 2023/6/13


◆機能・用途(Purpose)

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


◆形式(Format)

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


◆引数(Arguments)

seq 処理対象の構造体。 予め関数get_imsequence_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 imsequence data=get_imsequence_memory(100,0.0,0.01);
zero_imsequence(data);