mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +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);
|
initAssignment(other);
|
||||||
if(other.isCompressed())
|
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;
|
m_data = other.m_data;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user