38 throw std::runtime_error(
"PlanewaveWavefunction::evaluate() is not yet implemented. "
39 "Use index-based access instead.");
Mixin for functions defined on a discrete grid of points.
int number_of_grid_points() const
Number of grid points.
std::vector< Complex > values_
A single wavefunction in the plane-wave basis: c_G coefficients on a GVectorGrid.
PlanewaveWavefunction()=default
void resize(int number_of_plane_waves)
Resize the coefficient storage.
int number_of_components() const override
Number of components per wavefunction (always 1 for scalar states).
Complex evaluate(const ReciprocalSpaceVector &g_vector) const override
Evaluate the wavefunction at a reciprocal-space vector.
const Complex * coefficient_data() const
int number_of_plane_waves() const
Number of plane-wave coefficients.
Complex * coefficient_data()
Raw coefficient data pointer (for BLAS/LAPACK interop).
A wavefunction in reciprocal space: ψ(G).
PlanewaveWavefunction NormConservingPlanewaveWavefunction
Pseudopotential plane-wave Kohn-Sham wavefunction (same as base PW for now).
std::complex< double > Complex
A vector in reciprocal space (Cartesian, units of 2π/alat).