blob: 9e458fbdfd0559da99452cddca523dea912495e7 [file] [log] [blame]
#include "aos/common/logging/logging_impl.h"
#include <functional>
#include "aos/common/queue_primitives.h"
namespace aos {
namespace logging {
template <class T>
void DoLogMatrix(log_level level, const ::std::string &message,
const T &matrix) {
static_assert(!T::IsRowMajor, "we only handle column-major storage");
LogImplementation::DoLogMatrix(level, message, TypeID<typename T::Scalar>::id,
matrix.rows(), matrix.cols(), matrix.data(),
1);
}
} // namespace logging
} // namespace aos