[Trilinos-Users] Tpetra::CrsMatrix, max / min entry

Hoemmen, Mark mhoemme at sandia.gov
Tue Jan 20 20:57:23 MST 2015


> On Jan 21, 2015, at 3:00 AM, "trilinos-users-request at software.sandia.gov" <trilinos-users-request at software.sandia.gov> wrote:
> 
> Message: 3
> Date: Tue, 20 Jan 2015 18:26:45 +0100
> From: Mike Atambo <mikeat4999 at gmail.com>
> To: "Trilinos-Users at software.sandia.gov"
>    <trilinos-users at software.sandia.gov>
> Subject: [Trilinos-Users] tpetra CrsMatrix , maximum entry or minimum
>    entry
> Message-ID:
>    <CAEBLkK8pjUoP_k5WrRHS0M8oo6wVU-WGqzibqk+4ez4N3mjbcw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Im unable to find  out from the documentation whether the CrsMatrix
> provides a way to find out
> the largest entry (by magnitude) or the min value,
> is it safe to assume that these methods are not provided by the CrsMatrix?

That is correct.  You may use getLocalRow{View,Copy} to iterate over the entries of the CrsMatrix and compute the resulting reduction yourself.

mfh


More information about the Trilinos-Users mailing list