PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
NesterovIntegrator.h
1#ifndef PBAT_SIM_VBD_NESTEROVINTEGRATOR_H
2#define PBAT_SIM_VBD_NESTEROVINTEGRATOR_H
3
4#include "Integrator.h"
5#include "PhysicsBasedAnimationToolkitExport.h"
6
7namespace pbat::sim::vbd {
8
9class NesterovIntegrator : public Integrator
10{
11 public:
12 PBAT_API NesterovIntegrator(Data data);
13
14 protected:
15 virtual void Solve(Scalar sdt, Scalar sdt2, Index iterations) override;
16
17 private:
18 MatrixX xkm1;
19 MatrixX yk;
20 Scalar L;
21 Index start;
22};
23
24} // namespace pbat::sim::vbd
25
26#endif // PBAT_SIM_VBD_NESTEROVINTEGRATOR_H
PBAT's Vertex Block Descent (VBD) anka2024vbd API.
Definition AndersonIntegrator.cpp:10
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic-size matrix type.
Definition Aliases.h:34
std::ptrdiff_t Index
Index type.
Definition Aliases.h:17
double Scalar
Scalar type.
Definition Aliases.h:18
VBD simulation configuration.
Definition Data.h:15