| 223 | } |
| 224 | |
| 225 | std::vector<float> heun_step( |
| 226 | const std::vector<float> & x_before, |
| 227 | const std::vector<float> & velocity_first, |
| 228 | const std::vector<float> & velocity_second, |
| 229 | float dt) { |
| 230 | const std::vector<float> combined = heun_combine_velocity(velocity_first, velocity_second); |
| 231 | return euler_step(x_before, combined, dt); |
| 232 | } |
| 233 | |
| 234 | std::vector<float> build_soft_mask( |
| 235 | const std::vector<int32_t> & mask, |