From 266ceb23ec72a0aec69007e24dfd77e901716038 Mon Sep 17 00:00:00 2001 From: Thomas Dickerson Date: Thu, 12 May 2022 14:28:41 -0400 Subject: [PATCH] Repair sparse_matrix.hpp Unclear why nobody has noticed for a decade that this code was just totally uncompilable. `SparseMatrix` does not have methods `Columns()` or `Rows()`, and `m_ppElements[i]` is a pointer so can't possibly have anything called with `.`. Gbp-Pq: Name 0009-Repair-sparse_matrix.hpp.patch --- .../3rdparty/poisson4/sparse_matrix.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp b/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp index e6564cdc..02c2db5b 100644 --- a/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp +++ b/surface/include/pcl/surface/3rdparty/poisson4/sparse_matrix.hpp @@ -250,9 +250,9 @@ namespace pcl template SparseMatrix& SparseMatrix::operator *= (const T& V) { - for (int i=0; iRows(); i++) + for (int i=0; i SparseMatrix SparseMatrix::Multiply( const SparseMatrix& M ) const { - SparseMatrix R( this->Rows(), M.Columns() ); - for(int i=0; i R( rows, M._maxEntriesPerRow ); + for(int i=0; i SparseMatrix SparseMatrix::Transpose() const { - SparseMatrix M( this->Columns(), this->Rows() ); + SparseMatrix M( _maxEntriesPerRow, rows ); - for (int i=0; iRows(); i++) + for (int i=0; i