13struct hpfem_gpu_matrix;
33 [[nodiscard]]
Index rows() const noexcept {
return rows_; }
34 [[nodiscard]]
Index cols() const noexcept {
return cols_; }
40 [[nodiscard]] ::hpfem_gpu_matrix*
handle() const noexcept;
44 std::unique_ptr<Impl> impl_;
Definition device_matrix.hpp:17
DeviceMatrix(const SparseMatrix &matrix)
DeviceMatrix & operator=(const DeviceMatrix &)=delete
::hpfem_gpu_matrix * handle() const noexcept
Raw handle of the GPU library (for DeviceStepper; no meaning elsewhere).
Index rows() const noexcept
Definition device_matrix.hpp:33
DeviceMatrix(DeviceMatrix &&) noexcept
Index cols() const noexcept
Definition device_matrix.hpp:34
DeviceMatrix(const DeviceMatrix &)=delete
Vector apply(const Vector &x) const
(one vector: uploaded, multiplied, downloaded).
Matrix apply_many(const Matrix &x) const
One product per column (one transfer for all).
static bool available() noexcept
True if the GPU library is loaded with API version 3 or later and a device is present.
Definition device_arnoldi.hpp:23
Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic > Matrix
Definition types.hpp:22
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