How to work with and load/save sparse compressed matrices? (numir, mir.sparse)

2020-09-28 Thread Shaleen Chhabra via Digitalmars-d-learn
I wish to use load / save for sparse compressed matrices using mir. import mir.sparse; auto sp = sparse!double(5, 8); auto crs = sp.compress; How can I save/load sparse compressed arrays in `npz` format? (format: ``csc``, ``csr``, ``bsr``, ``dia`` or coo``) how can i again decompr

Re: How to use libmir --> mir-algorithm, numir, mir-random?

2020-09-09 Thread Shaleen Chhabra via Digitalmars-d-learn
On Wednesday, 9 September 2020 at 11:43:16 UTC, Fynn Schröder wrote: On Wednesday, 9 September 2020 at 11:36:56 UTC, Shaleen Chhabra wrote: but i am unable to configure the libraries, have dmd v2.076.1 installed on my PC. DMD v2.076 is ancient (almost 2 years old!). Current is DMD 2.093.1. I

Re: How to use libmir --> mir-algorithm, numir, mir-random?

2020-09-09 Thread Shaleen Chhabra via Digitalmars-d-learn
On Wednesday, 9 September 2020 at 11:44:35 UTC, Fynn Schröder wrote: On Wednesday, 9 September 2020 at 11:43:16 UTC, Fynn Schröder wrote: DMD v2.076 is ancient (almost 2 years old!) typo: its almost 3 years old thanks, I have upgraded my dmd to latest version. I now import numir and face this

Re: How to use libmir --> mir-algorithm, numir, mir-random?

2020-09-09 Thread Shaleen Chhabra via Digitalmars-d-learn
On Wednesday, 9 September 2020 at 11:30:58 UTC, Shaleen Chhabra wrote: On Wednesday, 2 September 2020 at 08:19:30 UTC, 9il wrote: On Wednesday, 2 September 2020 at 07:01:48 UTC, Shaleen Chhabra wrote: Hi, The libmir libraries can be found here: https://github.com/libmir I wish to use mir-al

Re: How to use libmir --> mir-algorithm, numir, mir-random?

2020-09-09 Thread Shaleen Chhabra via Digitalmars-d-learn
On Wednesday, 2 September 2020 at 08:19:30 UTC, 9il wrote: On Wednesday, 2 September 2020 at 07:01:48 UTC, Shaleen Chhabra wrote: Hi, The libmir libraries can be found here: https://github.com/libmir I wish to use mir-algorithm and numir so that i can directly use .npy format from python an

How to use libmir --> mir-algorithm, numir, mir-random?

2020-09-02 Thread Shaleen Chhabra via Digitalmars-d-learn
Hi, The libmir libraries can be found here: https://github.com/libmir I wish to use mir-algorithm and numir so that i can directly use .npy format from python and perform the required analysis. I checked out latest commits of each of the libraries mentioned --> mir-algorithm, mir-random and