Extend SparseView to allow keeping explicit zeros. This is equivalent to sparseView(1,-1) but faster because the test is removed at compile-time.

This commit is contained in:
Gael Guennebaud
2016-01-29 22:07:56 +01:00
parent d8d37349c3
commit d4a9e61569
3 changed files with 16 additions and 17 deletions

View File

@@ -126,7 +126,7 @@ template<typename PlainObjectType, int Options = 0,
template<typename Derived> class TriangularBase;
template<typename MatrixType, unsigned int Mode> class TriangularView;
template<typename MatrixType, unsigned int Mode> class SelfAdjointView;
template<typename MatrixType> class SparseView;
template<typename MatrixType,bool KeepZeros=false> class SparseView;
template<typename ExpressionType> class WithFormat;
template<typename MatrixType> struct CommaInitializer;
template<typename Derived> class ReturnByValue;