DDC 0.17.0
Loading...
Searching...
No Matches
strided_discrete_domain.cpp
1// Copyright (C) The DDC development team, see COPYRIGHT.md file
2//
3// SPDX-License-Identifier: MIT
4
5#include <ostream>
6#include <span>
7
11
12namespace ddc::detail {
13
14void print_strided_discrete_domain(
15 std::ostream& os,
16 bool const empty,
17 std::span<DiscreteElementType const> const front,
18 std::span<DiscreteElementType const> const back,
19 std::span<DiscreteVectorElement const> const strides)
20{
21 os << "StridedDiscreteDomain(";
22 if (empty) {
23 os << "empty";
24 } else {
25 os << "front=";
26 print_discrete_element(os, front);
27 os << ", back=";
28 print_discrete_element(os, back);
29 os << ", strides=";
30 print_discrete_vector(os, strides);
31 }
32 os << ')';
33}
34
35} // namespace ddc::detail
The top-level namespace of DDC.