55 void clear() noexcept;
67 bool empty() const noexcept;
115 double norm2() const noexcept;
119 double norm() const noexcept;
Owning Cartesian grid of complex scalar samples.
float dx() const noexcept
Returns the X grid spacing.
std::size_t height() const noexcept
Returns the number of samples along Y.
float dy() const noexcept
Returns the Y grid spacing.
std::size_t width() const noexcept
Returns the number of samples along X.
Two-component complex spinor field used by the QPE Dirac branch.
double upperPopulation() const noexcept
Carries out upper population.
void writeDensityProxy(ComplexField2D &out) const
Writes density proxy.
ComplexField2D & lower() noexcept
Carries out lower.
std::size_t height() const noexcept
Returns height.
double norm2() const noexcept
Returns norm2.
ComplexField2D & upper() noexcept
Carries out upper.
const ComplexField2D & upper() const noexcept
Carries out upper.
void fill(const ComplexField2D::Value &upperValue, const ComplexField2D::Value &lowerValue)
Assigns one value to all stored samples.
bool normalize() noexcept
Returns normalize.
float dx() const noexcept
Returns the X-axis grid spacing.
void clear() noexcept
Clears stored state and returns the component to its empty/default state.
const ComplexField2D & lower() const noexcept
Carries out lower.
void resize(std::size_t width, std::size_t height, float dx=1.0f, float dy=1.0f)
Resizes storage and updates the associated grid geometry.
double lowerPopulation() const noexcept
Carries out lower population.
float dy() const noexcept
Returns the Y-axis grid spacing.
double norm() const noexcept
Returns norm.
bool matchesGrid(const ComplexField2D &field) const noexcept
Carries out matches grid.
std::size_t width() const noexcept
Returns width.
bool empty() const noexcept
Returns whether the object contains no data.
DiracSpinor2D()=default
Constructs a Dirac Spinor 2D instance.
Declares the complex scalar field container representing two-dimensional wave functions.