boost matrix resizing on the fly

L

Lars Schouw

Guys

I want to use the boost matrix and found out that I have to know the
size of the matrix when I construct it. (except from resizing and
loosing my data).

Is there any way I can add more information to a matrix and in the
samt time resize it on the fly when more memory is needed?

Regards
Lars Schouw
Tokyo
 
J

John Carson

Lars Schouw said:
Guys

I want to use the boost matrix and found out that I have to know the
size of the matrix when I construct it. (except from resizing and
loosing my data).

Is there any way I can add more information to a matrix and in the
samt time resize it on the fly when more memory is needed?

Regards
Lars Schouw
Tokyo

I presume that you are referring to the multi_array class. If so, I believe
that you need to create a new larger matrix and copy the elements from the
old into the new. It would presumably not be difficult to write a function
to encapsulate this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,162
Messages
2,570,896
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top