HDFGroup / HDFGroup/hdf5

Update h5dump's `--lformat` option to set the format for long double _Complex numbers

Open
#5,056 0 comments 0 reactions 1 assignee Claimed by @jhendersonHDF View on GitHub
Component - Tools
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

**Is your feature request related to a problem? Please describe.**
`h5dump` currently has no method for specifying the printing format for `long double _Complex` data, unless the size of `long double _Complex` matches the size of `double _Complex` (mostly on Windows).

**Describe the solution you'd like**
`h5dump` was recently updated in https://github.com/HDFGroup/hdf5/pull/5025 with a new `--lformat` command-line option to specify the printing format for `long double` data. In https://github.com/HDFGroup/hdf5/pull/4630, `h5dump` was updated so that its `--format` option specifies the printing format for `float _Complex` and `double _Complex` data, as well as `long double _Complex` if it's the same size as `double _Complex`. `h5dump`'s new `--lformat` should be updated to cover setting the printing format for `long double _Complex` data in the case where `sizeof(long double _Complex) != sizeof(double _Complex)`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.