mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
implement the first _real_ unit-tests, testing the results for correctness instead
of just checking compilation. Fix the many issues discovered by these unit-tests, by the way fixing a performance bug.
This commit is contained in:
@@ -80,9 +80,9 @@ template<typename MatrixType> class Row
|
||||
|
||||
template<typename Scalar, typename Derived>
|
||||
Row<Derived>
|
||||
Object<Scalar, Derived>::row(int i)
|
||||
Object<Scalar, Derived>::row(int i) const
|
||||
{
|
||||
return Row<Derived>(static_cast<Derived*>(this)->ref(), i);
|
||||
return Row<Derived>(static_cast<Derived*>(const_cast<Object*>(this))->ref(), i);
|
||||
}
|
||||
|
||||
#endif // EI_ROW_H
|
||||
|
||||
Reference in New Issue
Block a user