mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Rollback or PR-746 and partial rollback of 668ab3fc47
. std::array is still not supported in CUDA device code on Windows.
This commit is contained in:
@@ -767,7 +767,7 @@ class SparseMatrix
|
||||
initAssignment(other);
|
||||
if(other.isCompressed())
|
||||
{
|
||||
std::copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
|
||||
internal::smart_copy(other.m_outerIndex, other.m_outerIndex + m_outerSize + 1, m_outerIndex);
|
||||
m_data = other.m_data;
|
||||
}
|
||||
else
|
||||
@@ -982,8 +982,8 @@ protected:
|
||||
{
|
||||
Index i = newEntries[k].i;
|
||||
Index p = newEntries[k].p;
|
||||
std::copy(m_data.valuePtr()+prev_p, m_data.valuePtr()+p, newData.valuePtr()+prev_p+k);
|
||||
std::copy(m_data.indexPtr()+prev_p, m_data.indexPtr()+p, newData.indexPtr()+prev_p+k);
|
||||
internal::smart_copy(m_data.valuePtr()+prev_p, m_data.valuePtr()+p, newData.valuePtr()+prev_p+k);
|
||||
internal::smart_copy(m_data.indexPtr()+prev_p, m_data.indexPtr()+p, newData.indexPtr()+prev_p+k);
|
||||
for(Index j=prev_i;j<i;++j)
|
||||
m_outerIndex[j+1] += k;
|
||||
if(!isComp)
|
||||
@@ -995,8 +995,8 @@ protected:
|
||||
assignFunc.assignCoeff(newData.value(p+k), diaEval.coeff(i));
|
||||
}
|
||||
{
|
||||
std::copy(m_data.valuePtr()+prev_p, m_data.valuePtr()+m_data.size(), newData.valuePtr()+prev_p+n_entries);
|
||||
std::copy(m_data.indexPtr()+prev_p, m_data.indexPtr()+m_data.size(), newData.indexPtr()+prev_p+n_entries);
|
||||
internal::smart_copy(m_data.valuePtr()+prev_p, m_data.valuePtr()+m_data.size(), newData.valuePtr()+prev_p+n_entries);
|
||||
internal::smart_copy(m_data.indexPtr()+prev_p, m_data.indexPtr()+m_data.size(), newData.indexPtr()+prev_p+n_entries);
|
||||
for(Index j=prev_i+1;j<=m_outerSize;++j)
|
||||
m_outerIndex[j] += n_entries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user