mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Optimize Ref<SparseMatrix> by removing useless default initialisation of SparseMapBase and SparseMatrix
This commit is contained in:
@@ -120,6 +120,9 @@ class SparseMapBase<Derived,ReadOnlyAccessors>
|
||||
|
||||
/** Empty destructor */
|
||||
inline ~SparseMapBase() {}
|
||||
|
||||
protected:
|
||||
inline SparseMapBase() {}
|
||||
};
|
||||
|
||||
template<typename Derived>
|
||||
@@ -172,6 +175,9 @@ class SparseMapBase<Derived,WriteAccessors>
|
||||
|
||||
/** Empty destructor */
|
||||
inline ~SparseMapBase() {}
|
||||
|
||||
protected:
|
||||
inline SparseMapBase() {}
|
||||
};
|
||||
|
||||
template<typename MatScalar, int MatOptions, typename MatIndex, int Options, typename StrideType>
|
||||
|
||||
Reference in New Issue
Block a user