|
| | DiagoLOBPCG (const Real *precondition, const int nband, const int ndim, const int nmax, const LobpcgBasisLayout &layout, const diag_comm_info &comm, const int para_rr_method, const int para_rr_block_size, const bool use_overlap, const LobpcgLocking locking, dense::ParallelDenseEigensolver &rr_solver, dense::GpuDenseEigensolver &gpu_rr_solver) |
| | Store the caller configuration and allocate Device wavefunction and host RR workspaces.
|
| | ~DiagoLOBPCG () |
| | Record the final owned algebra workspace capacity before its buffers are released.
|
| bool | diag (const HSOperator< T, Device > &op, T *psi_in, const int ld_psi, Real *eigenvalue_in, const double tolerance, const int max_iter, const std::vector< double > ðr_band) |
| | Solve H X = S X Lambda by generalized RR in [X,P,W], with prefix locking and failure-only repair.
|
| int | iterations () const |
|
| void | initialize (T *psi_in, const int ld_psi) |
| | Copy the input X, seed optional buffer bands, and zero inactive rows in each spinor component.
|
| void | form_residual (const VectorImages &vectors, const int count, const Real *eigenvalues, T *residual) |
| | Form R = HX - SX*Lambda for the supplied block; a null SX means S = I.
|
| int | build_search (const HSOperator< T, Device > &op, const int locked, const int count, const int first_w) |
| | Precondition the active residual, project out the locked prefix, then normalize and compact W.
|
| bool | lock_converged (ct::Tensor &eig_prev, const ct::Tensor &tol_band, int &locked) |
| | Lock the leading bands satisfying the eigenvalue-change tolerance; soft locking can reactivate them.
|
| int | build_direction (const VectorImages &basis, const int dimension, const int q, const int active, const ct::Tensor &x_coefficients, const ct::Tensor &g) |
| | Form P from the non-X Ritz coefficients, removing new locked components before normalization.
|
| void | write_results (T *psi_in, const int ld_psi, Real *eigenvalue_in) |
| | Copy only the requested Ritz pairs back to the caller, preserving its leading dimension.
|
| void | rotate_images (const VectorImages &source, const int source_columns, const int target_columns, const T *coefficients, const VectorImages &target, T *scratch) |
| | Apply the same right coefficient matrix to each supplied X/HX/SX image; scratch permits overlap.
|
| int | normalize_columns (const VectorImages &block, const int columns, T *coefficients, const int coefficient_rows) |
| | Scale nonzero columns by their global Euclidean norm and compact images and coefficients together.
|
| const T * | prepare_rotation_coefficients (const ct::Tensor &coefficients) |
| | Borrow host double coefficients on CPU, or convert/upload them into reusable algebra scratch.
|
| VectorImages | basis_images (const int first) |
| | Return non-owning X/HX/SX pointers at one column offset in the shared trial-basis storage.
|
| void | project_padding (T *x, const int columns) const |
| | Zero unused rows of every spinor component so full-stride BLAS products exclude nonphysical entries.
|
| template<typename Value> |
| void | broadcast (Value *data, const int count) const |
| | Share root-owned coefficients or status within the eigensolve communicator.
|
| void | allocate_workspace () |
| | Allocate wavefunction blocks and small RR buffers for the current internal width, and record capacity.
|
| void | form_projected_matrices (const VectorImages &basis, const int columns, const ProjectionCache *retained, ct::Tensor &k, ct::Tensor &g) |
| | Form K = B^H H B and G = B^H S B; with a retained [X,P] block, compute only the new W panel.
|
| bool | solve_projected (const ct::Tensor &k, const ct::Tensor &g, const int dimension, const int wanted, SerialGvWorkspace &serial_workspace) |
| | Solve K C = G C Theta for the wanted Ritz pairs and share the result; return false for metric failure.
|
| void | retain_pair (const ct::Tensor &k, const ct::Tensor &g, const int rows, const ct::Tensor &x_coefficients, const int first_x, const int x_columns, const int p_columns, const Real *ritz_values, const int zero_prefix, ProjectionCache &cache) |
| | Cache projections for the new [X,P] using coefficient-space products and the Ritz XX identities.
|
| bool | recover_projected (const HSOperator< T, Device > &op, const VectorImages &basis, int &working_columns, const int wanted, ct::Tensor &projected, ct::Tensor &gram, SerialGvWorkspace &workspace) |
| | After GV metric failure, refresh true H/S images and retry; if needed, repair only the increments.
|
| int | repair_basis (const HSOperator< T, Device > &op, const int added) |
| | Preserve X, project increments with its actual S metric, then repair their rank and refresh H images.
|
| int | rank_orthonormalize (const int m, T *x, T *sx) |
| | Recovery-only metric normalization: use Cholesky for a well-conditioned block, otherwise spectral rank truncation.
|
|
| int | n_band_ = 0 |
| | Number of requested eigenpairs returned to the caller.
|
| int | n_dim_ = 0 |
| | Local column leading dimension, including spinor padding.
|
| int | n_max_ = 0 |
| | Internal block width: requested bands plus dimension-limited buffer bands.
|
| int | iterations_ = 0 |
| | Main-loop RR iterations in the last diag call; excludes initial RR.
|
| std::string | error_message_ |
| | Failure reason supplied by RR or recovery.
|
| const LobpcgBasisLayout | layout_ |
| | Physical rows and spinor count within each stored column.
|
| const diag_comm_info | comm_ |
| | Communicator/rank for distributed rows of one eigensolve.
|
| const int | para_rr_method_ = 0 |
| | RR backend: local (0) or ScaLAPACK (2).
|
| const int | para_rr_bs_ = 0 |
| | Distributed RR block size; zero selects automatically.
|
| const bool | use_overlap_ |
| | Store and apply explicit S images instead of S = I.
|
| const LobpcgLocking | locking_ |
| | Hard freezes the converged prefix; soft retains all X in RR.
|
| dense::ParallelDenseEigensolver & | rr_solver_ |
| | Borrowed, reusable distributed CPU RR resources.
|
| dense::GpuDenseEigensolver & | gpu_rr_solver_ |
| | Borrowed, reusable CUDA RR resources.
|
| ct::DataType | r_type_ = ct::DataType::DT_INVALID |
| | Tensor element type corresponding to Real.
|
| ct::DataType | t_type_ = ct::DataType::DT_INVALID |
| | Tensor element type corresponding to T.
|
| ct::DeviceType | device_type_ = ct::DeviceType::UnKnown |
| | Wavefunction/scratch storage device.
|
| ct::Tensor | prec_ |
| | Device copy of the caller's diagonal preconditioner input, n_dim_ entries.
|
| ct::Tensor | eig_ |
| | Host Ritz values for all n_max_ columns, including locked columns.
|
| ct::Tensor | eig_device_ |
| | Active Ritz values on Device for preconditioning.
|
| ct::Tensor | evec_ |
| | Device rotation scratch, n_dim_ by n_max_.
|
| ct::Tensor | space_ |
| | Device basis [X,P,W], capacity n_dim_ by 3*n_max_.
|
| ct::Tensor | hspace_ |
| | H images matching the columns of space_.
|
| ct::Tensor | sspace_ |
| | Explicit S images matching space_; unused for S = I.
|
| ct::Tensor | ritz_coefficients_ |
| | Host T coefficients C, capacity 3*n_max_ by n_max_.
|
| ct::Tensor | e_red_ |
| | Host eigenvalue output of the current reduced problem.
|
| ct::Tensor | x_new_ |
| | Device updated Ritz vectors; hard-locked prefix stays unchanged.
|
| ct::Tensor | hx_new_ |
| | Updated H images needed by residuals and the next trial basis.
|
| ct::Tensor | sx_new_ |
| | Updated S images; unused for S = I.
|
| ct::Tensor | residual_ |
| | Device residuals HX - SX*Lambda, active columns at their band offsets.
|
| ct::Tensor | u_p_ |
| | Host T history coefficients C_P, compacted/scaled together with P.
|
| const T | zero_ = static_cast<T>(0.0) |
| copy_op | copy_op_ |
| axpy_op | axpy_op_ |
| nrm2_op | nrm2_op_ |
| precondition_op< T, Device > | precondition_op_ |
| LinearAlgebra< T, Device > | algebra_ |
| | Distributed products and reusable conversion/rotation scratch.
|