Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
fmt_eigen.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
#pragma once
9
10
#include <fmt/ostream.h>
11
#include <Eigen/Core>
12
28
29
#if FMT_VERSION > 100000
30
31
// See https://stackoverflow.com/a/73755864 for the SFINAE pattern.
32
#ifndef MOMENTUM_FMT_EIGEN_SHARED_PTR_FORMATTER
33
#define MOMENTUM_FMT_EIGEN_SHARED_PTR_FORMATTER
34
template
<
typename
T>
35
struct
fmt::formatter<T, std::enable_if_t<std::is_base_of_v<Eigen::DenseBase<T>, T>, char>>
36
: ostream_formatter {};
37
#endif
38
39
#endif
math
fmt_eigen.h
Generated on
for Momentum by
1.15.0