[Trilinos-Users] Constructing a CrsMatrix with just a row map
Christopher Thiele
christopher.thiele92 at gmail.com
Mon Sep 21 17:38:58 EDT 2015
Hello,
I want to construct a Tpetra::CrsMatrix, but I do not know the number of
non-zeros in advance. According to the Tpetra introduction (
https://trilinos.org/docs/r12.2/packages/tpetra/doc/html/Tpetra_Lesson04.html)
it should be possible to construct one with just a row map. However, when I
try to do it as in the example, I get a compilation error, because there
seems to be no constructor for this. The only constructor for CrsMatrix
that takes only one argument wants a CrsGraph instead of a Map. I am using
Trilinos 12.2.2.1, i.e. the same version as in the introduction.
Is there another way to create an "empty" matrix?
I appreciate any suggestions.
Regards,
Christopher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150921/2d0ef056/attachment.html>
More information about the Trilinos-Users
mailing list