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

Shota Soga ssoga at ncsu.edu
Thu Jul 14 12:51:32 MDT 2011


Dear Sir/Madam:

Dr.Baker and Dr.Nasbaum:
I greatly appreciate your help. It helped me a lot.

I simply write the Teuchos::Array into the file instead of converting into
Epetra_Vector by loop because I do not need to use it again in the code.


Sincerely,

Shota

On Thu, Jul 14, 2011 at 1:43 PM, Kurtis Nusbaum <klnusbaum at gmail.com> wrote:

> 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
>
>


-- 
Shota Soga
Graduate Research Assistant at North Carolina State University

Email: ssoga at ncsu.edu
URL:http://abdelk.ne.ncsu.edu/wiki/index.php/Shota_Soga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110714/da43b401/attachment.html 


More information about the Trilinos-Users mailing list