From: Thomas Dickerson Date: Thu, 12 May 2022 18:28:41 +0000 (-0400) Subject: Repair sparse_matrix.hpp X-Git-Tag: archive/raspbian/1.13.0+dfsg-3+rpi1^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=187f523481876b84606694be001910cd11c32483;p=pcl.git 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 --- 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