1#ifndef APPARENT_HORIZON_FINDER_ANALYTIC_RESIDUAL_H_
2#define APPARENT_HORIZON_FINDER_ANALYTIC_RESIDUAL_H_
25 template <
class Spacetime>
28 const std::vector<double>& coefficients,
29 const Spacetime& spacetime,
41 template <
class Spacetime>
44 const Spacetime& spacetime,
SpectralResidual MakeResidual(const SpectralBasis &basis, const GeometrySource &geometryAt, const ReferencePoint &referencePoint)
Return the spectral residual.
InterpolatedGeometryData MetricData(const Spacetime &spacetime, const Vector3 &X)
Geometry derived from an analytic spacetime at the Cartesian point X, packed into the same Interpolat...
std::array< double, 3 > Vector3
std::function< std::vector< double >(const std::vector< double > &)> SpectralResidual
Residual R(a): the spherical-harmonic coefficients of the expansion Theta for a given coefficient vec...
InterpolatedSurface BuildAnalyticSurface(const SpectralBasis &basis, const std::vector< double > &coefficients, const Spacetime &spacetime, const ReferencePoint &referencePoint)
Wrappers for the general residual assembly (surface-residual.h) to work with an analytic spacetime as...
InterpolatedSurface BuildSurface(const SpectralBasis &basis, const std::vector< double > &coefficients, const GeometrySource &geometryAt, const ReferencePoint &referencePoint)
Assemble the interpolated surface r = h(rho, sigma) for a coefficient vector on the basis collocation...
SpectralResidual MakeAnalyticResidual(const SpectralBasis &basis, const Spacetime &spacetime, const ReferencePoint &referencePoint)
MakeResidual using MetricData(spacetime, .) as the geometry source.
Interpolated data on the current AH surface r = h(rho, sigma).
Cartesian reference coordinate for one apparent-horizon centre point.
Spectral basis plus collocation grid and precomputed design matrices.