blob: 9e458fbdfd0559da99452cddca523dea912495e7 [file] [log] [blame]
Brian Silvermanfd5e2a32014-02-22 20:02:39 -08001#include "aos/common/logging/logging_impl.h"
2
3#include <functional>
4
Brian Silverman258b9172015-09-19 14:32:57 -04005#include "aos/common/queue_primitives.h"
Brian Silvermanfd5e2a32014-02-22 20:02:39 -08006
7namespace aos {
8namespace logging {
9
10template <class T>
11void DoLogMatrix(log_level level, const ::std::string &message,
12 const T &matrix) {
Brian Silvermanff12c9f2014-03-19 17:53:29 -070013 static_assert(!T::IsRowMajor, "we only handle column-major storage");
Brian Silvermanfd5e2a32014-02-22 20:02:39 -080014 LogImplementation::DoLogMatrix(level, message, TypeID<typename T::Scalar>::id,
Brian Silvermanff12c9f2014-03-19 17:53:29 -070015 matrix.rows(), matrix.cols(), matrix.data(),
16 1);
Brian Silvermanfd5e2a32014-02-22 20:02:39 -080017}
18
19} // namespace logging
20} // namespace aos