[Trilinos-Users] matrix/vector recipes?

Heroux, Michael A maherou at sandia.gov
Thu Jan 21 14:16:08 MST 2010


I appreciate your comments, but don't have any immediate answer for you.  I do think there is room for extended functionality that would provide convenience capabilities.  For Epetra there is the EpetraExt package.  We obviously need something similar for Tpetra.  If the code you have is generally useful and you want to contribute, please feel free to do so by sending it to me.



On 1/21/10 10:26 AM, "Nico Schlömer" <nico.schloemer at ua.ac.be> wrote:


I recently implemented a function that takes a Tpetra::RowMatrix A, two
vectors b,c and a scalar d as input, and spits out the padded matrix ~A

    A b
    c  d

Despite the fact that this might actually be something that "you don't
want to do", it's also something that seems trivial if you come from
Python, MATLAB and the like, but due to Trilinos' sophisticated memory
management is principally requires quite a number of lines of code to be
written (potentially containing bugs).

During everyday programming, I sometimes stumble upon things that are
trivial to describe but not quickly realizable with Trilinos. Take for
example the addition of two Tpetra::Vectors.

Now, is there any place where recipes for simple matrix/vector
operations and other useful snippets are exchanged?

For the particular example above, what I'm doing right now is that I
*copy* over the values of A, b, and c to ~A, which I'd like to avoid.
Any hints here?


Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100121/c0563e89/attachment.html 

More information about the Trilinos-Users mailing list