Ginger 1.1.9
Loading...
Searching...
No Matches
autocorr.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <utility>
9#include <vector>
10
11#include "rootfinding.hpp"
12
42extern auto initial_autocorr(const std::vector<double>& coeffs) -> std::vector<Vec2>;
43
62extern auto pbairstow_autocorr_st(const std::vector<double>& coeffs, std::vector<Vec2>& vrs,
63 const ginger::Options& options) -> std::pair<unsigned int, bool>;
64
65inline auto pbairstow_autocorr(const std::vector<double>& coeffs, std::vector<Vec2>& vrs,
66 const ginger::Options& options) -> std::pair<unsigned int, bool> {
68}
69
89extern void extract_autocorr(Vec2& vr);
90
106extern auto poly_from_autocorr_factors(const std::vector<Vec2>& vrs) -> std::vector<double>;
constexpr auto make_vdc_table() -> std::array< double, N >
Helper to generate a constexpr table of VdCorput<Base> values.
Definition aberth.hpp:21
auto pbairstow_autocorr_st(const std::vector< double > &coeffs, std::vector< Vec2 > &vrs, const ginger::Options &options) -> std::pair< unsigned int, bool >
Single-threading Bairstow's method (specific for auto-correlation function)
void extract_autocorr(Vec2 &vr)
Extract autocorrelation quadratic factor.
auto poly_from_autocorr_factors(const std::vector< Vec2 > &vrs) -> std::vector< double >
Reconstruct a monic polynomial from its autocorrelation quadratic factors.
auto pbairstow_autocorr(const std::vector< double > &coeffs, std::vector< Vec2 > &vrs, const ginger::Options &options) -> std::pair< unsigned int, bool >
Definition autocorr.hpp:65
auto initial_autocorr(const std::vector< double > &coeffs) -> std::vector< Vec2 >
Initial guess for the parallel Bairstow method (specific for auto-correlation function)
Definition config.hpp:19
Vector2.
Definition vector2.hpp:19
Parallel Bairstow root-finding methods for real polynomials.