[Trilinos-Users] an array of matrices
Nikhil Kriplani
nmkripla at ncsu.edu
Thu Jul 10 15:39:44 MDT 2008
Hello,
I am wondering how to create an array of Epetra_CrsMatrices.
Essentially, I need to have several such matrices (say Num) in my
program. Each matrix will be LU factored and solved, so I need to do
something like
for (int i = 0; i < Num; i++)
{
Problem.SetOperator(&A[i]);
...
Solver->Solve();
}
Is there a way to perform this creation?
Thanks,
--Nikhil
P.S. the standard way for creating multidimensional containers for
native C++ types (int, double) does not work.
More information about the Trilinos-Users
mailing list