deal.II version GIT relicensing-6963-gc25d64af46 2026-10-23 04:50: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: Apache-2.0 WITH LLVM-exception OR 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// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_psblas_sparsity_h
14#define dealii_psblas_sparsity_h
15
17
18#ifdef DEAL_II_WITH_PSBLAS
20#endif
21
23
24#ifdef DEAL_II_WITH_PSBLAS
25namespace PSCToolkitWrappers
26{
27
44 {
45 public:
47
51 SparsityPattern() = default;
52
56 SparsityPattern(const IndexSet &parallel_partitioning,
57 const MPI_Comm communicator = MPI_COMM_WORLD);
58
62 virtual ~SparsityPattern() override = default;
63
67 template <typename ForwardIterator>
68 void
69 add_entries(const size_type row,
70 ForwardIterator begin,
71 ForwardIterator end,
72 const bool indices_are_sorted = false);
73
79 virtual void
80 add_row_entries(const size_type &row,
81 const ArrayView<const size_type> &columns,
82 const bool indices_are_sorted = false) override;
83
87 void
88 add(const size_type i, const size_type j);
89
91
100 void
101 compress();
102
103 private:
107 std::shared_ptr<psb_c_descriptor> psblas_descriptor;
108
109 friend class SparseMatrix;
110 };
111
112
113} // namespace PSCToolkitWrappers
114
115#endif // DEAL_II_WITH_PSBLAS
116
118
119#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