Ginger 1.1.5; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
autocorr.hpp
Go to the documentation of this file.
1
6#pragma once
7
8// import numpy as np
9#include <utility>
10#include <vector>
11
12#include "matrix2.hpp"
13#include "rootfinding.hpp"
14#include "vector2.hpp"
15
45extern auto initial_autocorr(const std::vector<double>& coeffs) -> std::vector<Vec2>;
46
81extern auto pbairstow_autocorr_st(const std::vector<double>& coeffs, std::vector<Vec2>& vrs,
82 const Options& options) -> std::pair<unsigned int, bool>;
83
84extern auto pbairstow_autocorr_mt(const std::vector<double>& coeffs, std::vector<Vec2>& vrs,
85 const Options& options) -> std::pair<unsigned int, bool>;
86
87inline auto pbairstow_autocorr(const std::vector<double>& coeffs, std::vector<Vec2>& vrs,
88 const Options& options) -> std::pair<unsigned int, bool> {
89 return pbairstow_autocorr_st(coeffs, vrs, options);
90}
91
111extern void extract_autocorr(Vec2& vr);
112
128extern auto poly_from_autocorr_factors(const std::vector<Vec2>& vrs) -> std::vector<double>;
void extract_autocorr(Vec2 &vr)
Extract autocorrelation quadratic factor.
auto pbairstow_autocorr_st(const std::vector< double > &coeffs, std::vector< Vec2 > &vrs, const Options &options) -> std::pair< unsigned int, bool >
Multi-threading Bairstow's method (specific for auto-correlation function)
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_mt(const std::vector< double > &coeffs, std::vector< Vec2 > &vrs, const Options &options) -> std::pair< unsigned int, bool >
auto pbairstow_autocorr(const std::vector< double > &coeffs, std::vector< Vec2 > &vrs, const Options &options) -> std::pair< unsigned int, bool >
Definition autocorr.hpp:87
auto initial_autocorr(const std::vector< double > &coeffs) -> std::vector< Vec2 >
Initial guess for the parallel Bairstow method (specific for auto-correlation function)
Options for convergence-based algorithms.
Definition config.hpp:15
Vector2.
Definition vector2.hpp:19
2x2 matrix template for polynomial root-finding
Parallel Bairstow root-finding methods for real polynomials.