diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h index 64ca5fc44..ec650b270 100644 --- a/Eigen/src/SparseCore/SparseMatrix.h +++ b/Eigen/src/SparseCore/SparseMatrix.h @@ -94,6 +94,7 @@ class SparseMatrix { typedef SparseCompressedBase Base; using Base::convert_index; + friend class SparseVector<_Scalar,0,_Index>; public: using Base::isCompressed; using Base::nonZeros;