mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +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:
@@ -167,7 +167,7 @@ typedef TypedPreconditioner<CompressedRowSparseMatrix> CompressedRowSparseMatrix
|
||||
// clang-format on
|
||||
|
||||
// Wrap a SparseMatrix object as a preconditioner.
|
||||
class CERES_NO_EXPORT SparseMatrixPreconditionerWrapper
|
||||
class CERES_NO_EXPORT SparseMatrixPreconditionerWrapper final
|
||||
: public SparseMatrixPreconditioner {
|
||||
public:
|
||||
// Wrapper does NOT take ownership of the matrix pointer.
|
||||
|
||||
Reference in New Issue
Block a user