Tpetra parallel linear algebra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Tpetra::Details::RightScaleLocalCrsMatrix< LocalSparseMatrixType, ScalingFactorsViewType, divide > Class Template Reference

Kokkos::parallel_for functor that right-scales a KokkosSparse::CrsMatrix. More...

#include <Tpetra_Details_rightScaleLocalCrsMatrix.hpp>

Public Member Functions

 RightScaleLocalCrsMatrix (const LocalSparseMatrixType &A_lcl, const ScalingFactorsViewType &scalingFactors, const bool assumeSymmetric)
 

Detailed Description

template<class LocalSparseMatrixType, class ScalingFactorsViewType, const bool divide>
class Tpetra::Details::RightScaleLocalCrsMatrix< LocalSparseMatrixType, ScalingFactorsViewType, divide >

Kokkos::parallel_for functor that right-scales a KokkosSparse::CrsMatrix.

Template Parameters
LocalSparseMatrixTypeKokkosSparse::CrsMatrix specialization.
ScalingFactorsViewTypeKokkos::View specialization storing scaling factors by which to divide the rows of the local sparse matrix.
divideIf true, divide, else multiply.

Definition at line 39 of file Tpetra_Details_rightScaleLocalCrsMatrix.hpp.

Constructor & Destructor Documentation

template<class LocalSparseMatrixType , class ScalingFactorsViewType , const bool divide>
Tpetra::Details::RightScaleLocalCrsMatrix< LocalSparseMatrixType, ScalingFactorsViewType, divide >::RightScaleLocalCrsMatrix ( const LocalSparseMatrixType &  A_lcl,
const ScalingFactorsViewType &  scalingFactors,
const bool  assumeSymmetric 
)
inline
Parameters
A_lcl[in/out] The local sparse matrix.
scalingFactors[in] If assumeSymmetric is true, these should be colNorms from EquilibrationInfo; otherwise, they should be rowScaledColNorms from EquilibrationInfo.
assumeSymmetric[in] Whether to assume that the (global) sparse matrix is symmetric. If true, divde matrix entries by square roots of scaling factors; else, divide by the scaling factors themselves.

Definition at line 60 of file Tpetra_Details_rightScaleLocalCrsMatrix.hpp.


The documentation for this class was generated from the following file: