Rename variable which shadows class name

(grafted from 44ee201337113eeebb1018ba8bebf110afada796
)
This commit is contained in:
Christoph Hertzberg 2018-07-25 20:26:15 +02:00
parent e777674a87
commit 8fb28db12d

View File

@ -89,13 +89,13 @@ class companion
{ {
const Index deg = m_monic.size(); const Index deg = m_monic.size();
const Index deg_1 = deg-1; const Index deg_1 = deg-1;
DenseCompanionMatrixType companion(deg,deg); DenseCompanionMatrixType companMat(deg,deg);
companion << companMat <<
( LeftBlock(deg,deg_1) ( LeftBlock(deg,deg_1)
<< LeftBlockFirstRow::Zero(1,deg_1), << LeftBlockFirstRow::Zero(1,deg_1),
BottomLeftBlock::Identity(deg-1,deg-1)*m_bl_diag.asDiagonal() ).finished() BottomLeftBlock::Identity(deg-1,deg-1)*m_bl_diag.asDiagonal() ).finished()
, m_monic; , m_monic;
return companion; return companMat;
} }