Ginger 1.1.11
Loading...
Searching...
No Matches
autocorr.hpp
Go to the documentation of this file.
1
5
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> {
67 return pbairstow_autocorr_st(coeffs, vrs, options);
68}
69
89extern void extract_autocorr(Vec2& vr);
90
106extern auto poly_from_autocorr_factors(const std::vector<Vec2>& vrs) -> std::vector<double>;
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).
ginger::Vector2< double > Vec2
Definition bairstow.hpp:15
Definition config.hpp:22
Parallel Bairstow root-finding methods for real polynomials.