blob: 313894bb94a3538525b12f5a75b4b8955005ed8e [file] [log] [blame]
Austin Schuh8bd96322020-02-13 21:18:22 -08001#include "aos/events/logging/logger.h"
2
3#include "Eigen/Dense"
4
5namespace aos {
6namespace logger {
7
8// This is slow to compile, so we put it in a separate file. More parallelism
9// and less change.
10Eigen::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