// @HEADER // ***************************************************************************** // ShyLU: Scalable Hybrid LU Preconditioner and Solver // // Copyright 2011 NTESS and the ShyLU contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef _FROSCH_EXTRACTSUBMATRICES_DECL_HPP #define _FROSCH_EXTRACTSUBMATRICES_DECL_HPP #include #include #include #include #include #include namespace FROSch { using namespace std; using namespace Teuchos; using namespace Xpetra; template RCP > ExtractLocalSubdomainMatrix(RCP > globalMatrix, RCP > map); // ----------------------------------------------------------- // // split ExtractLocalSubdomainMatrix into symbolic / compute template void ExtractLocalSubdomainMatrix_Symbolic(RCP > subdomainMatrix, // input : globalMatrix, re-distributed with map RCP > localSubdomainMatrix); // output : local submatrix template void ExtractLocalSubdomainMatrix_Compute(RCP > globalMatrix, RCP< Matrix > subdomainMatrix, RCP< Matrix > repeatedMatrix); template void ExtractLocalSubdomainMatrix_Compute(RCP< Import > scatter, RCP > globalMatrix, RCP< Matrix > subdomainMatrix, RCP< Matrix > repeatedMatrix); // ----------------------------------------------------------- // template RCP > ExtractLocalSubdomainMatrix(RCP > globalMatrix, RCP > map, SC value); template int UpdateLocalSubdomainMatrix(RCP > globalMatrix, RCP > &map, RCP > &localSubdomainMatrix); template int BuildSubmatrices(RCP > k, ArrayView indI, RCP > &kII, RCP > &kIJ, RCP > &kJI, RCP > &kJJ); template int BuildSubmatrix(RCP > k, ArrayView indI, RCP > &kII); template int BuildSubgraph(RCP > k, ArrayView indI, RCP > &kII); } #endif