mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Add final specifier to internal classes.
This should help the compiler devirtualize a bunch of function calls. https://github.com/ceres-solver/ceres-solver/issues/747 Change-Id: I9913e68d85e0e9c9f955a249cc710a657875c869
This commit is contained in:
@@ -47,7 +47,7 @@ namespace internal {
|
||||
// manipulate sparse matrices in triplet (i,j,s) form. This object is
|
||||
// inspired by the design of the cholmod_triplet struct used in the
|
||||
// SuiteSparse package and is memory layout compatible with it.
|
||||
class CERES_NO_EXPORT TripletSparseMatrix : public SparseMatrix {
|
||||
class CERES_NO_EXPORT TripletSparseMatrix final : public SparseMatrix {
|
||||
public:
|
||||
TripletSparseMatrix();
|
||||
TripletSparseMatrix(int num_rows, int num_cols, int max_num_nonzeros);
|
||||
|
||||
Reference in New Issue
Block a user