Austin Schuh | 8bd9632 | 2020-02-13 21:18:22 -0800 | [diff] [blame^] | 1 | #include "aos/events/logging/logger.h" |
2 | |||||
3 | #include "Eigen/Dense" | ||||
4 | |||||
5 | namespace aos { | ||||
6 | namespace logger { | ||||
7 | |||||
8 | // This is slow to compile, so we put it in a separate file. More parallelism | ||||
9 | // and less change. | ||||
10 | Eigen::Matrix<double, Eigen::Dynamic, 1> LogReader::SolveOffsets() { | ||||
11 | return map_matrix_.bdcSvd(Eigen::ComputeThinU | Eigen::ComputeThinV) | ||||
12 | .solve(sample_matrix_); | ||||
13 | } | ||||
14 | |||||
15 | } // namespace logger | ||||
16 | } // namespace aos |