From c5bb3792d6a636adeffc76df30a0fb378ff40ee4 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@ufz.de>
Date: Fri, 17 Mar 2023 11:39:21 +0100
Subject: [PATCH] [MaL] Added output formatter for Eigen dense types

---
 MathLib/FormattingUtils.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 MathLib/FormattingUtils.h

diff --git a/MathLib/FormattingUtils.h b/MathLib/FormattingUtils.h
new file mode 100644
index 00000000000..54996fe363a
--- /dev/null
+++ b/MathLib/FormattingUtils.h
@@ -0,0 +1,22 @@
+/**
+ * \file
+ * \copyright
+ * Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
+ *            Distributed under a Modified BSD License.
+ *              See accompanying file LICENSE.txt or
+ *              http://www.opengeosys.org/project/license
+ *
+ */
+
+#pragma once
+
+#include <fmt/ostream.h>
+
+#include <Eigen/Core>
+#include <concepts>
+
+template <typename T>
+requires std::derived_from<T, Eigen::DenseBase<T>>
+struct fmt::formatter<T> : fmt::ostream_formatter
+{
+};
-- 
GitLab