44extern auto horner_ref(std::vector<double>& coeffs, std::vector<Vec2Ref>& vcoeffs,
93 -> std::pair<unsigned int, bool>;
112 return {
Vec2{s, -p},
Vec2{-p * vr.y(), p * vr.x() + s}};
131 return mp.mdot(vA) / mp.det();
ginger::Matrix2< Vec2 > Mat2
Definition bairstow.hpp:16
auto bairstow(const std::vector< double > &coeffs, Vec2 &vr, const ginger::Options &options) -> std::pair< unsigned int, bool >
Bairstow's method.
ginger::Vector2< double & > Vec2Ref
Definition bairstow.hpp:17
auto delta_ref(const Vec2Ref &vA, const Vec2 &vr, const Vec2Ref &vp) -> Vec2
Calculate Newton correction delta (reference-based).
Definition bairstow.hpp:129
auto makeadjoint_ref(const Vec2 &vr, const Vec2Ref &vp) -> Mat2
Create adjoint matrix from two vectors (reference-based).
Definition bairstow.hpp:109
ginger::Vector2< double > Vec2
Definition bairstow.hpp:15
auto horner_ref(std::vector< double > &coeffs, std::vector< Vec2Ref > &vcoeffs, std::size_t degree, const Vec2 &vr) -> Vec2Ref
Horner's rule (reference-based Vec2 version).
Matrix2.
Definition matrix2.hpp:28
Vector2.
Definition vector2.hpp:19
2x2 matrix template for polynomial root-finding
Options for convergence-based algorithms.
Definition aberth.hpp:13