mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 01:29:35 +08:00
Switched to smart_copy to support non-trivial scalar types
This commit is contained in:
parent
1472f4bc61
commit
e6462c2ce3
@ -711,7 +711,7 @@ class SparseMatrix
|
||||
initAssignment(other);
|
||||
if(other.isCompressed())
|
||||
{
|
||||
memcpy(m_outerIndex, other.m_outerIndex, (m_outerSize+1)*sizeof(Index));
|
||||
internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
|
||||
m_data = other.m_data;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user