Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: upper or lower triangular matrix to full

by Laurent_R (Canon)
on Sep 02, 2017 at 08:47 UTC ( [id://1198566]=note: print w/replies, xml ) Need Help??


in reply to upper or lower triangular matrix to full

You don't say how you're going to populate the lower triangle of the matrix, so it is quite difficult to figure out any solution.

The bottom line is this: can you just read and process one row at a time? If you can, just do it. I'm dealing almost daily with files too large to fit into memory. Most of the time, I get around by reading and processing them one record at a time. But every now and then, it gets more complicated: in such circumstances, there is often no general solution; the possible solution (or solutions) is specific to the problem at hand.

If you can't process your file line by line, then you'll have to tell us why and be much more specific about what you're trying to do exactly. Some of us might be able to suggest another solution.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1198566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-28 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found