mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-03 01:04:23 +08:00
PolynomialSolver: add missing constructors.
This commit is contained in:
parent
0f94607947
commit
df92649379
@ -380,6 +380,13 @@ class PolynomialSolver<_Scalar,1> : public PolynomialSolverBase<_Scalar,1>
|
|||||||
m_roots[0] = -poly[0]/poly[poly.size()-1];
|
m_roots[0] = -poly[0]/poly[poly.size()-1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
|
template< typename OtherPolynomial >
|
||||||
|
inline PolynomialSolver( const OtherPolynomial& poly ){
|
||||||
|
compute( poly ); }
|
||||||
|
|
||||||
|
inline PolynomialSolver(){}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
using PS_Base::m_roots;
|
using PS_Base::m_roots;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user