Sparse module: removed some extra copies using markAsRValue()

This commit is contained in:
Gael Guennebaud 2008-10-05 13:39:49 +00:00
parent b730c6f57d
commit 3c155ab073
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ SparseMatrix<Scalar,Flags> SparseMatrix<Scalar,Flags>::Map(cholmod_sparse& cm)
reinterpret_cast<Scalar*>(cm.x),
res.m_outerIndex[cm.ncol]);
res.m_data.swap(data);
// res.markAsRValue();
res.markAsRValue();
return res;
}

View File

@ -74,7 +74,7 @@ SparseMatrix<Scalar,Flags> SparseMatrix<Scalar,Flags>::Map(taucs_ccs_matrix& tau
reinterpret_cast<Scalar*>(taucsMat.values.v),
taucsMat.colptr[taucsMat.n]);
res.m_data.swap(data);
// res.markAsRValue();
res.markAsRValue();
return res;
}