mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add the possibility to reserve room for inner vector in SparseMatrix
This commit is contained in:
@@ -189,15 +189,15 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived>
|
||||
|
||||
SparseMatrixBase() : m_isRValue(false) { /* TODO check flags */ }
|
||||
|
||||
inline Derived& operator=(const Derived& other)
|
||||
{
|
||||
// std::cout << "Derived& operator=(const Derived& other)\n";
|
||||
// if (other.isRValue())
|
||||
// derived().swap(other.const_cast_derived());
|
||||
// else
|
||||
this->operator=<Derived>(other);
|
||||
return derived();
|
||||
}
|
||||
// inline Derived& operator=(const Derived& other)
|
||||
// {
|
||||
// // std::cout << "Derived& operator=(const Derived& other)\n";
|
||||
// // if (other.isRValue())
|
||||
// // derived().swap(other.const_cast_derived());
|
||||
// // else
|
||||
// this->operator=<Derived>(other);
|
||||
// return derived();
|
||||
// }
|
||||
|
||||
template<typename OtherDerived>
|
||||
Derived& operator=(const ReturnByValue<OtherDerived>& other)
|
||||
|
||||
Reference in New Issue
Block a user