47 [[nodiscard]]
Index size() const noexcept {
return size_; }
51 std::unique_ptr<Impl> impl_;
Definition device_stepper.hpp:22
Index size() const noexcept
Definition device_stepper.hpp:47
DeviceStepper & operator=(const DeviceStepper &)=delete
void set_state(const Vector &u, const Vector &v, const Vector &a)
Uploads the state (reduced vectors of the free DoFs).
static bool available(const LinearSolver &newmark) noexcept
void step(Real load_scale)
One Newmark step with the load (load_scale = ).
void get_state(Vector &u, Vector &v, Vector &a) const
Downloads the state (synchronises the device).
DeviceStepper(LinearSolver &newmark, const SparseMatrix *damping, const SparseMatrix &stiffness, const Vector *load, Real dt, Real beta, Real gamma)
DeviceStepper(const DeviceStepper &)=delete
Factorise once, solve for many right-hand sides.
Definition linear_solver.hpp:17
Definition device_arnoldi.hpp:23
double Real
Definition types.hpp:15
Eigen::SparseMatrix< Complex, Eigen::RowMajor, Index > SparseMatrix
Definition types.hpp:24
std::int64_t Index
global indices (DoFs, entities)
Definition types.hpp:17
Eigen::Matrix< Complex, Eigen::Dynamic, 1 > Vector
Definition types.hpp:20