Pretty-printing D arrays with Mir
tastyminerals
tastyminerals at gmail.com
Thu Jun 11 18:38:30 UTC 2020
On Sunday, 31 May 2020 at 22:40:09 UTC, tastyminerals wrote:
> I often print arrays to see how they look and their contents.
> NumPy has a nice way of pretty-printing the arrays, and I was
> lacking this in D.
> For the sake of practice, I wrote a small package. It uses
> mir.ndslice but works for both standard D arrays and Mir Slices.
>
> [...]
Updated the package and README. Now, you can control the floating
precision, scientific notation and other formatting params.
More information about the Digitalmars-d-announce
mailing list