10#ifndef TPETRA_LEFTANDORRIGHTSCALECRSMATRIX_DECL_HPP
11#define TPETRA_LEFTANDORRIGHTSCALECRSMATRIX_DECL_HPP
16#include "TpetraCore_config.h"
17#include "Kokkos_Core.hpp"
18#include "KokkosKernels_ArithTraits.hpp"
59template <
class SC,
class LO,
class GO,
class NT>
62 const typename KokkosKernels::ArithTraits<SC>::mag_type*,
63 typename NT::device_type>& rowScalingFactors,
65 const typename KokkosKernels::ArithTraits<SC>::mag_type*,
66 typename NT::device_type>& colScalingFactors,
68 const bool rightScale,
69 const bool assumeSymmetric,
99template <
class SC,
class LO,
class GO,
class NT>
101 const Tpetra::Vector<
typename KokkosKernels::ArithTraits<SC>::mag_type,
102 LO, GO, NT>& rowScalingFactors,
103 const Tpetra::Vector<
typename KokkosKernels::ArithTraits<SC>::mag_type,
104 LO, GO, NT>& colScalingFactors,
105 const bool leftScale,
106 const bool rightScale,
107 const bool assumeSymmetric,
Forward declaration of Tpetra::CrsMatrix.
Forward declaration of Tpetra::Vector.
Sparse matrix that presents a row-oriented interface that lets users read or modify entries.
A distributed dense vector.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
EScaling
Whether "scaling" a matrix means multiplying or dividing its entries.
void leftAndOrRightScaleCrsMatrix(Tpetra::CrsMatrix< SC, LO, GO, NT > &A, const Kokkos::View< const typename KokkosKernels::ArithTraits< SC >::mag_type *, typename NT::device_type > &rowScalingFactors, const Kokkos::View< const typename KokkosKernels::ArithTraits< SC >::mag_type *, typename NT::device_type > &colScalingFactors, const bool leftScale, const bool rightScale, const bool assumeSymmetric, const EScaling scaling)
Left-scale and/or right-scale (in that order) the entries of the input Tpetra::CrsMatrix A.