From 3c155ab073a3110bdcb8cd532d04e1a6871f44a5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 5 Oct 2008 13:39:49 +0000 Subject: [PATCH] Sparse module: removed some extra copies using markAsRValue() --- Eigen/src/Sparse/CholmodSupport.h | 2 +- Eigen/src/Sparse/TaucsSupport.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Sparse/CholmodSupport.h b/Eigen/src/Sparse/CholmodSupport.h index f451dbcc0..9a13ae883 100644 --- a/Eigen/src/Sparse/CholmodSupport.h +++ b/Eigen/src/Sparse/CholmodSupport.h @@ -94,7 +94,7 @@ SparseMatrix SparseMatrix::Map(cholmod_sparse& cm) reinterpret_cast(cm.x), res.m_outerIndex[cm.ncol]); res.m_data.swap(data); - // res.markAsRValue(); + res.markAsRValue(); return res; } diff --git a/Eigen/src/Sparse/TaucsSupport.h b/Eigen/src/Sparse/TaucsSupport.h index 26bf19c5b..55d2892ec 100644 --- a/Eigen/src/Sparse/TaucsSupport.h +++ b/Eigen/src/Sparse/TaucsSupport.h @@ -74,7 +74,7 @@ SparseMatrix SparseMatrix::Map(taucs_ccs_matrix& tau reinterpret_cast(taucsMat.values.v), taucsMat.colptr[taucsMat.n]); res.m_data.swap(data); - // res.markAsRValue(); + res.markAsRValue(); return res; }