CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to insert a column into a matrix? (https://www.cfd-online.com/Forums/openfoam-solving/130507-how-insert-column-into-matrix.html)

hua1015 February 27, 2014 08:36

How to insert a column into a matrix?
 
Hi,foamers,
I want to do some like this:
first,create a RectangularMatrix <scalar> A(n,m);
second, I calculate something and get a column B(n,1);
third,I want to insert the column B into the matrix A;
forth, loop the above 1-3 for several steps.
How can I do this?
Thanks for any ideas!:)


All times are GMT -4. The time now is 15:24.