deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
psblas_sparsity_pattern.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2019 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_psblas_sparsity_h
16#define dealii_psblas_sparsity_h
17
19
20#ifdef DEAL_II_WITH_PSBLAS
22#endif
23
25
26#ifdef DEAL_II_WITH_PSBLAS
27namespace PSCToolkitWrappers
28{
29
46 {
47 public:
49
53 SparsityPattern() = default;
54
58 SparsityPattern(const IndexSet &parallel_partitioning,
59 const MPI_Comm communicator = MPI_COMM_WORLD);
60
64 virtual ~SparsityPattern() override = default;
65
69 template <typename ForwardIterator>
70 void
71 add_entries(const size_type row,
72 ForwardIterator begin,
73 ForwardIterator end,
74 const bool indices_are_sorted = false);
75
81 virtual void
82 add_row_entries(const size_type &row,
83 const ArrayView<const size_type> &columns,
84 const bool indices_are_sorted = false) override;
85
89 void
90 add(const size_type i, const size_type j);
91
93
102 void
103 compress();
104
105 private:
109 std::shared_ptr<psb_c_descriptor> psblas_descriptor;
110
111 friend class SparseMatrix;
112 };
113
114
115} // namespace PSCToolkitWrappers
116
117#endif // DEAL_II_WITH_PSBLAS
118
120
121#endif
*  iterator end()
*  *  iterator begin()
virtual void add_entries(const ArrayView< const std::pair< size_type, size_type > > &entries)
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
std::string compress(const std::string &input)
Definition utilities.cc:381
unsigned int global_dof_index
Definition types.h:92