I agree 37% isn't sparse. Were you to briefly jump around through the
data with an editor you'd probably conclude the data is sparse. I
finally measured.
Anyway, sending the output to a file was quick, and I haven't raised any
red flags that amends were not in place. Since the data has form
T[0-9]+ I can do away with the index table and store the integer directly.
On 10/11/22 08:00, programming-requ...@forums.jsoftware.com wrote:
Date: Tue, 11 Oct 2022 07:25:17 +0800
From: bill lam<bbill....@gmail.com>
To:programm...@jsoftware.com
Subject: Re: [Jprogramming] amends truly in place?
Message-ID:
<CAC22vobWjOD6PFXNzsg8cK9UP=cq0plcngcb46xuf4-fecg...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Have you tried stored data as a vector and the linear index of the item
into another vector?
Final step would be fill in data into a sparse vector and then reshape it
into rank 2.
However 37% filled is not that sparse , IMO sparse meant at most a few
percent filled. Use of sparse array for 37% is overkill. What you
needed is
more physical RAM.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm