[Trilinos-Users] Galeri

Marzio Sala marzio.sala at gmail.com
Thu May 24 13:25:44 MDT 2007


Hi Sean,

yes, there is: use

Matrix = CreateCrsMatrix("Diag", Map, GaleriList);

This will create a diagonal matrix with 1.0's on the diagonals. If you want
a number (for example, 2.0), set

GaleriList.set("a", 2.0);

The list of matrices is reported at this web page:
http://trilinos.sandia.gov/packages/docs/dev/packages/galeri/doc/html/gl_GalleryCrsMatrix.html

Regards,
-Marzio

On 5/24/07, Sean Ross-Ross <srossross at gmail.com> wrote:
>
> Is there are function to create a simle identity matrix?
>
> Somthing like
>
> Matrix = CreateCrsMatrix("Identity", Map, GaleriList);
>
> ~Sean
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>


-- 
http://marzio.sala.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20070524/4322ae15/attachment.html


More information about the Trilinos-Users mailing list