-
Notifications
You must be signed in to change notification settings - Fork 0
/
perm16.cpp
31 lines (26 loc) · 1.49 KB
/
perm16.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/******************************************************************************/
/* Copyright (C) 2014 Florent Hivert <Florent.Hivert@lri.fr>, */
/* */
/* Distributed under the terms of the GNU General Public License (GPL) */
/* */
/* This code is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
/* General Public License for more details. */
/* */
/* The full text of the GPL is available at: */
/* */
/* http://www.gnu.org/licenses/ */
/******************************************************************************/
#include "perm16.hpp"
#include <iostream>
namespace IVMPG {
// Definition since previously *only* declared
const constexpr size_t Vect16::Size;
std::ostream & operator<<(std::ostream & stream, Vect16 const &term) {
stream << "[" << unsigned(term[0]);
for (unsigned i=1; i < Vect16::Size; i++) stream << "," << unsigned(term[i]);
stream << "]";
return stream;
}
} // namespace IVMPG