Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/d9/d59/la_2utils_8h_source.html
DOLFINx 0.7.3
DOLFINx C++ interface
Loading...
Searching...
No Matches
utils.h
1// Copyright (C) 2018-2022 Garth N. Wells
2//
3// This file is part of DOLFINx (https://www.fenicsproject.org)
4//
5// SPDX-License-Identifier: LGPL-3.0-or-later
6
7#pragma once
8
9#include <concepts>
10#include <cstdint>
11#include <span>
12
13namespace dolfinx::la
14{
16enum class Norm
17{
18 l1,
19 l2,
20 linf,
21 frobenius
22};
23
26template <class U, class T>
27concept MatSet
28 = std::invocable<U, std::span<const std::int32_t>,
29 std::span<const std::int32_t>, std::span<const T>>;
30} // namespace dolfinx::la
Matrix accumulate/set concept for functions that can be used in assemblers to accumulate or set value...
Definition utils.h:28
Linear algebra interface.
Definition sparsitybuild.h:15
Norm
Norm types.
Definition utils.h:17