diff --git a/MathLib/FormattingUtils.h b/MathLib/FormattingUtils.h new file mode 100644 index 0000000000000000000000000000000000000000..54996fe363a481b0c430eeb103a10e933bc7e84f --- /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 +{ +};