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 s
On Monday, 1 June 2020 at 21:25:02 UTC, jmh530 wrote:
On Monday, 1 June 2020 at 19:51:34 UTC, tastyminerals wrote:
[...]
Yeah, mir is kind of bare bones for some stuff.
I had meant to include the link before
https://github.com/libmir/numir/pull/10
If you look at some of the unittests you can
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 s
On Monday, 1 June 2020 at 19:51:34 UTC, tastyminerals wrote:
[snip]
I see. It depends on how much work is needed for any of the
options, right?
For now, I think having a function that does the job suffices
for me at least. Since I always printed tensors in Python to
see what's going on, I w
On Sunday, 31 May 2020 at 23:10:44 UTC, jmh530 wrote:
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 s
On Sunday, 31 May 2020 at 23:10:44 UTC, jmh530 wrote:
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.
┌ ┐
│┌
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 s
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.
import pretty_array;
import