関数zero_imsequence2 マニュアル

(The documentation of function zero_imsequence2)

Last Update: 2023/6/13


◆機能・用途(Purpose)

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


◆形式(Format)

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


◆引数(Arguments)

seq 処理対象の構造体。 予め関数get_imsequence2_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 imsequence2 data=get_imsequence2_memory(100,0.0,0.01);
zero_imsequence2(data);