laxwen1.hpp
来自「卡尔曼滤波类」· HPP 代码 · 共 32 行
HPP
32 行
// laxwen1.hpp 1-D Lax Wendroff (single step) method// u_t + f_x = rhs// where rhs is optional, assumed zero otherwise#ifndef _LAX_WENDROFF1_HPP_#define _LAX_WENDROFF1_HPP_#include <dynamics.hpp>#ifndef SPACE_DERIV#define SPACE_DERIVtypedef float (*SpaceDeriv)(Vector&,int);#endifclass LaxWendroff1 : public Dynamics{ private: float r; Vector u_new; SpaceDeriv f; SpaceDeriv rhs; public: LaxWendroff1(SpaceDeriv f, float dx_in, float dt_in, int n_in, SpaceDeriv user_rhs = NULL); ~LaxWendroff1() { } void step(const int steps = 1);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?