Eigen NumTraits specialisation doesn't define max_digits10()

Open
#744 0 comments 0 reactions 0 assignees View on GitHub

@trestoncuzzort is already working on this.

Since Oct 26, 2026.

  • #780 by @trestoncuzzort — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
backend

Research direction

Locate the Eigen integration's NumTraits specialisation and compare it with the base class and the corresponding Eigen issue 2985. Check how Eigen 5 requests max_digits10 when printing matrices containing multiprecision scalars, then validate that the missing member functions are available and matrix printing works.

Written by the indexing model from the issue text.

Description

The NumTraits specialisation which Boost multiprecision provides as part of its Eigen integration is missing a few member functions. One of these is max_digits10 which is required by Eigen 5 for printing matrices containing multiprecision scalars.

Corresponding Eigen issue:

https://gitlab.com/libeigen/eigen/-/issues/2985

where it seems the solution is to either inherit from the base class (to bring in a default) or explicit implement the relevant methods.

Dominant language
C++
Stars
268
Forks
130
Avg merge
1d 15h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/multiprecision

All issues in boostorg/multiprecision

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.