Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <array>
7 : #include <cstdint>
8 : #include <ostream>
9 :
10 : namespace Spectral {
11 : /*!
12 : * \brief Used to label parity, either Even or Odd.
13 : */
14 0 : enum class Parity : std::uint8_t { Uninitialized, Even, Odd };
15 :
16 : /// All possible values of Parity
17 1 : std::array<Parity, 3> all_parities();
18 :
19 : // Output operator for a Basis
20 0 : std::ostream& operator<<(std::ostream& os, const Parity& parity);
21 : } // namespace Spectral
|