Loading...
Searching...
No Matches
utils.h
// Copyright (C) 2018-2022 Garth N. Wells
//
// This file is part of DOLFINx (https://www.fenicsproject.org)
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#pragma once
#include <concepts>
#include <cstdint>
#include <span>
namespace dolfinx::la
{
enum class Norm : std::int8_t
{
l1,
l2,
linf,
frobenius
};
template <class U, class T>
concept MatSet
= std::invocable<U, std::span<const std::int32_t>,
std::span<const std::int32_t>, std::span<const T>>;
} // 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 sparsitybuild.h:15
dolfinx::la::Norm
Norm
Norm types.
Definition utils.h:17