imsequence2_to_imsequence マニュアル

(The documentation of function imsequence2_to_imsequence)

Last Update: 2021/12/7


◆機能・用途(Purpose)

struct imsequence2型構造体をstruct imsequence型構造体に変換する。
Convert a struct imsequence2-type structure to struct imsequence-type.


◆形式(Format)

#include <sequence/convert.h>
inline struct imsequence imsequence2_to_imsequence(struct imsequence2 seq)


◆引数(Arguments)

seq 変換前の構造体。
The structure before the conversion.


◆戻り値(Return value)

変換後の構造体。戻り値のメンバの値は以下のようになる。
The structure after the conversion. The values of members of the return value are as below.

戻り値のメンバ
Member of the return value

Value
size seq.size
t0 seq.t0
dt seq.dt
各\(i\)に対するvalue[i].r
value[i].r for each \(i\)
seq.value[i]の実部
The real part of seq.value[i]
各\(i\)に対するvalue[i].i
value[i].i for each \(i\)
seq.value[i]の虚部
The imaginary part of seq.value[i]
その他のメンバ
The other members
関数get_imsequence2_memory (sequence/initialize.h)の仕様に従う。
Determined based on function get_imsequence2_memory (sequence/initialize.h).


◆使用例(Example)

struct imsequence2 original;
struct imsequence converted=imsequence2_to_imsequence(original);