18template <
typename Derived,
typename CharT>
19 requires std::derived_from<Derived, Eigen::MatrixBase<Derived>> ||
20 std::derived_from<Derived, Eigen::SparseCompressedBase<Derived>>
21struct fmt::formatter<Derived, CharT> {
23 return m_underlying.parse(ctx);
29 for (
int row = 0;
row < mat.rows(); ++
row) {
30 for (
int col = 0;
col < mat.cols(); ++
col) {
32 out = m_underlying.format(mat.coeff(
row,
col), ctx);
35 if (
row < mat.rows() - 1) {
44 fmt::formatter<typename Derived::Scalar, CharT> m_underlying;
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ColXpr col(Index i)
This is the const version of col().
Definition: BlockMethods.h:1097
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE RowXpr row(Index i)
This is the const version of row(). */.
Definition: BlockMethods.h:1118
buffer_context< char > format_context
Definition: core.h:1851
basic_format_parse_context< char > format_parse_context
Definition: core.h:724
auto format_to(OutputIt out, const S &fmt, Args &&... args) -> OutputIt
Definition: xchar.h:136