algo — C++23 日本語リファレンス GitHub

taylor_shift

関数 · 形式的冪級数 (FPS)

template <internal::static_modint_c mint>
std::vector<mint> taylor_shift(std::vector<mint> f, mint c);

概要

Taylor shift (係数の平行移動)

$f(x)$ の係数から $g(x) = f(x + c)$ の係数を求める。$f_i$ に $i!$ を掛けて反転し、 $c^j / j!$ との畳み込みの中央部を取り出す標準的な手法。

テンプレートパラメータ

名前 説明
mint static modint

パラメータ

名前 説明
f 係数列 $f(x)$
c シフト量

戻り値

std::vector<mint> $f(x + c)$ の係数列(f と同じ長さ)

計算量

関連項目