Re: Pretty-printing D arrays with Mir

2020-06-11 Thread tastyminerals via Digitalmars-d-announce
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

Re: Pretty-printing D arrays with Mir

2020-06-11 Thread tastyminerals via Digitalmars-d-announce
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

Re: Pretty-printing D arrays with Mir

2020-06-02 Thread tastyminerals via Digitalmars-d-announce
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

Re: Pretty-printing D arrays with Mir

2020-06-01 Thread jmh530 via Digitalmars-d-announce
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

Re: Pretty-printing D arrays with Mir

2020-06-01 Thread tastyminerals via Digitalmars-d-announce
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

Re: Pretty-printing D arrays with Mir

2020-05-31 Thread mw via Digitalmars-d-announce
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. ┌ ┐ │┌

Re: Pretty-printing D arrays with Mir

2020-05-31 Thread jmh530 via Digitalmars-d-announce
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