-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SymForce] Explicit instantiations for opt
A number of classes either didn't have explicit instantiation declarations (but did have explicit instantiations) or any explicit isntantiation at all. To improve compilation speeds (in theory) I've added explicit instations and declarations. Classes which don't have explicit instations: - LevenberMarquardtSolver - OptimizationStats Topic: more_explicit_instantiations_in_opt GitOrigin-RevId: b6ba96ddc56dd5052a846bbb03c8f51495ca0ca6
- Loading branch information
1 parent
e37758d
commit 596e3bc
Showing
10 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* SymForce - Copyright 2022, Skydio, Inc. | ||
* This source code is under the Apache 2.0 license found in the LICENSE file. | ||
* ---------------------------------------------------------------------------- */ | ||
|
||
#include "./gnc_optimizer.h" | ||
|
||
#include "./optimizer.h" | ||
|
||
// Explicit instantiation | ||
template class sym::GncOptimizer<sym::Optimizer<double>>; | ||
template class sym::GncOptimizer<sym::Optimizer<float>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* SymForce - Copyright 2022, Skydio, Inc. | ||
* This source code is under the Apache 2.0 license found in the LICENSE file. | ||
* ---------------------------------------------------------------------------- */ | ||
|
||
#include "./linearization.h" | ||
|
||
// Explicit instantiation | ||
template struct sym::Linearization<double>; | ||
template struct sym::Linearization<float>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* SymForce - Copyright 2022, Skydio, Inc. | ||
* This source code is under the Apache 2.0 license found in the LICENSE file. | ||
* ---------------------------------------------------------------------------- */ | ||
|
||
#include "./sparse_schur_solver.h" | ||
|
||
// Explicit instantiation | ||
template class sym::SparseSchurSolver<Eigen::SparseMatrix<double>>; | ||
template class sym::SparseSchurSolver<Eigen::SparseMatrix<float>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters