mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
compile fix for code like Vector3d::Random().x()
This commit is contained in:
@@ -91,7 +91,10 @@ class CwiseNullaryOp : ei_no_assignment_operator,
|
||||
|
||||
const Scalar coeff(int index) const
|
||||
{
|
||||
return m_functor(index);
|
||||
if(RowsAtCompileTime == 1)
|
||||
return m_functor(0, index);
|
||||
else
|
||||
return m_functor(index, 0);
|
||||
}
|
||||
|
||||
template<int LoadMode>
|
||||
|
||||
Reference in New Issue
Block a user