[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Resizing vectors and matrices

From: ake
Subject: [Help-gsl] Resizing vectors and matrices
Date: Tue, 14 Sep 2004 09:26:28 +0200

Dear All,

I am using the GNU Scientific Library to write software that simulates the evolutionary process. Specifically, I have an ODE-system and need to add equations at run-time corresponding to new mutants entering the system. Since I do not know from the outset how large the system will be at its peak, it would be convenient to resize the matrices and vectors containing the parameters when needed. However, I have not been able to find any clean way of doing this.

I realize that a matrix may be difficult to resize due to the underlying modular arithmetic. However, it should be easy to increase its size in one of the two dimensions, and in the other one can always copy the entire matrix to a new one of desired size. For vectors I do not see any problems.

Are resizing functions already available? Does anyone have better ideas for implementing them than what I outlined in the previous paragraph? All suggestions are welcome!

Ake Brannstrom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]