mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #482: pass scalar by const ref - pass on the sparse module
(also fix a compilation issue due to previous pass)
This commit is contained in:
@@ -103,7 +103,7 @@ private:
|
||||
|
||||
template<typename Derived>
|
||||
const SparseView<Derived> MatrixBase<Derived>::sparseView(const Scalar& m_reference,
|
||||
typename NumTraits<Scalar>::Real m_epsilon) const
|
||||
const typename NumTraits<Scalar>::Real& m_epsilon) const
|
||||
{
|
||||
return SparseView<Derived>(derived(), m_reference, m_epsilon);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user