関数imsequence_times_im マニュアル

(The documentation of function imsequence_times_im)

Last Update: 2023/6/28


◆機能・用途(Purpose)

フーリエスペクトルに定数を掛ける(構造体\(\times\)定数)。
Multiply a constant value with a Fourier spectrum (i.e., structure \(\times\) constant).


◆形式(Format)

#include <sequence/operation.h>
inline struct imsequence imsequence_times_im
(struct imsequence a,const struct im b)


◆引数(Arguments)

a 積の計算に用いるフーリエスペクトル。
The Fourier spectrum used for the computation of the product.
b 掛ける定数。
The constant to be multiplied.


◆戻り値(Return value)

\(a\times b\)を表す構造体。戻り値のメンバの値は以下のようになる。
A structure that represents \(a\times b\). The values of members of the return value are as below.

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

Value
size a.size
t0 a.t0
dt a.dt
各iに対するvalue[i]
value[i] for each \(i\)
a.value[i]×b


◆使用例(Example)

struct imsequence a;
struct im b={1.2,3.4};
struct imsequence c=imsequence_times_im(a,b);