DDC 0.15.0
Loading...
Searching...
No Matches
spline_builder_closures.cpp
1// Copyright (C) The DDC development team, see COPYRIGHT.md file
2//
3// SPDX-License-Identifier: MIT
4
5#include <ostream>
6#include <stdexcept>
7
9
10namespace ddc {
11
12std::ostream& operator<<(std::ostream& os, ddc::SplineBuilderClosure const sbc)
13{
15 return os << "PERIODIC";
16 }
17
19 return os << "HERMITE";
20 }
21
23 return os << "HOMOGENEOUS_HERMITE";
24 }
25
27 return os << "GREVILLE";
28 }
29
30 throw std::runtime_error("ddc::SplineBuilderClosure not handled");
31}
32
33} // namespace ddc
The top-level namespace of DDC.
SplineBuilderClosure
An enum representing a spline closure relation.
@ HOMOGENEOUS_HERMITE
Homogeneous Hermite closure relation (derivatives are 0)
@ GREVILLE
Use Greville points instead of conditions on derivative for B-Spline interpolation.
@ HERMITE
Hermite closure relation.
@ PERIODIC
Periodic closure relation u(1)=u(n)