namespace gpr::quantum::elementfluct¶
namespace elementfluct {
// typedefs
typedef Eigen::MatrixXd Matrix;
typedef Eigen::VectorXd Vector;
typedef Eigen::SparseMatrix<double> Sparse;
// structs
struct FredholmRatio;
struct Lobatto;
struct LogDet;
struct Mesh;
struct Nodes;
struct Pencil;
struct PrimedLogDet;
// global functions
void legendre(int order, double x, double& p, double& dp);
Lobatto lobatto(int order);
Mesh uniformMesh(double period, Eigen::Index elements, int order);
Mesh kinkMesh(double period, const std::vector<double>& centres, double window, double fine, double coarse, int order);
Nodes meshNodes(const Mesh& mesh);
Pencil assemble(const Mesh& mesh, Eigen::Index d, const std::function<Matrix(Eigen::Index)>& curvature);
LogDet logDeterminant(const Sparse& J);
double tailCorrection(const Mesh& mesh, const Matrix& reference, const std::function<Matrix(Eigen::Index)>& curvature);
double logRatio(const Mesh& mesh, Eigen::Index d, const std::function<Matrix(Eigen::Index)>& curvature, const Matrix& reference);
PrimedLogDet primedLogDeterminant(const Pencil& p, const Vector& u);
double periodicKernel(double w, double period, double separation);
FredholmRatio fredholmLogRatio(const Mesh& mesh, Eigen::Index d, const std::vector<Eigen::Index>& support, const std::function<Matrix(Eigen::Index)>& curvature, const Matrix& reference, const Vector& zeroMode = Vector());
} // namespace elementfluct