Hi Everyone
I am currently writing a program in C++ which uses a very big matrix, I have been told to try and store the matrix in disc and try to retrieve only the chunks of the matrix I will be needing and keep swapping them around. The problem is I do not know how to do this in C++ anyone with a suggestion please help.
qinise4
0
Newbie Poster
Recommended Answers
Jump to PostThere are a few ways you can do that, obviously. First I'd examine the possibilty of restricting the size you need.
questions to ask yourself:
do I really need a full matrix? matrices can be sparse, diagonal, symmetric,....
if so: try to use specialised containers from e.g. boost (
Jump to Post>>is it possible to use mmap for this.
Sure it's possible, but is it the best solution? mmap is a general one-size-fits-all solution for large data structures that are paged. It is most likely that your application can take advantage of the structure of your matrix and its usage …
All 7 Replies
drkybelk
0
Junior Poster in Training
qinise4
0
Newbie Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
mrnutty
761
Senior Poster
qinise4
0
Newbie Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
qinise4
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.