DOLFINx
0.11.0
DOLFINx C++
Toggle main menu visibility
Loading...
Searching...
No Matches
dolfinx
la
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
13
namespace
dolfinx::la
14
{
16
enum class
Norm
: std::int8_t
17
{
18
l1,
19
l2,
20
linf,
21
frobenius
22
};
23
26
template
<
class
U,
class
T>
27
concept
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
dolfinx::la::MatSet
Matrix accumulate/set concept for functions that can be used in assemblers to accumulate or set value...
Definition
utils.h:28
dolfinx::la
Linear algebra interface.
Definition
dolfinx_la.h:7
dolfinx::la::Norm
Norm
Norm types.
Definition
utils.h:17
Generated by
1.17.0