[Trilinos-Users] Conversion from Teuchos::Array to Epectra_Vector

Kurtis Nusbaum klnusbaum at gmail.com
Thu Jul 14 11:43:37 MDT 2011


The you could probably just create a blank Epetra_Vector with a map that has
the same number of elements as your Teuchos::Array. Then loop through the
array and insert the values into the Epetra_Vector.

Does anyone else know of an easier way?

On Thu, Jul 14, 2011 at 11:31 AM, Shota Soga <ssoga at ncsu.edu> wrote:

> Dear Sir/Madam:
>
>     Hi, I am Shota Soga, a graduate student at NCSU.
>
> I have a question how to convert Teuchos::Array to Epectra_Vector so that I
> can export Teuchos::Array into MatrixMarket format by EpetraExt. I would
> greatly appreciate it if you would answer my question.
>
> I would like to access Teuchos::Array data by MATLAB. Is there any possible
> way to convert Teuchos::Array into Epectra_Vector?
>
>
> Thank you for your help and kindness.
>
> Sincerely,
>
> --
> Shota Soga
> Graduate Research Assistant at North Carolina State University
>
> Email: ssoga at ncsu.edu
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>


-- 
Peace, Love, and Source Code
-Kurtis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110714/694b1e80/attachment.html 


More information about the Trilinos-Users mailing list