mirror of https://github.com/CGAL/cgal
Even better performance figures in Poisson reconstruction through less pre-allocation in CGAL::Eigen_matrix
This commit is contained in:
parent
85c526238e
commit
18f01f2334
|
|
@ -59,7 +59,7 @@ public:
|
||||||
|
|
||||||
m_is_symmetric = is_symmetric;
|
m_is_symmetric = is_symmetric;
|
||||||
// reserve memory for a regular 3D grid
|
// reserve memory for a regular 3D grid
|
||||||
m_triplets.reserve(dim*27);
|
m_triplets.reserve(dim*1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Create a rectangular matrix initialized with zeros.
|
/// Create a rectangular matrix initialized with zeros.
|
||||||
|
|
@ -78,7 +78,7 @@ public:
|
||||||
|
|
||||||
m_is_symmetric = is_symmetric;
|
m_is_symmetric = is_symmetric;
|
||||||
// reserve memory for a regular 3D grid
|
// reserve memory for a regular 3D grid
|
||||||
m_triplets.reserve(rows*27);
|
m_triplets.reserve(rows*1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Delete this object and the wrapped TAUCS matrix.
|
/// Delete this object and the wrapped TAUCS matrix.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue