Go to the documentation of this file.    1 #ifndef __JTOOLS__JCOMBINATORICS__ 
    2 #define __JTOOLS__JCOMBINATORICS__ 
   58       zbuf2D.resize(numberOfIndices);
 
   60       for (
int i = 0; i != numberOfIndices; ++i) {
 
   61         zbuf2D[i].resize(numberOfIndices);
 
   64       for (
int i = 0; i != numberOfIndices; ++i) {
 
   68         for (
int j = i; ++
j != numberOfIndices; ) {
 
  108     int getIndex(
const int first, 
const int second)
 const 
  110       return zbuf2D[first][second];
 
  131     template<
class JComparator_t>
 
  132     void sort(JComparator_t comparator)
 
  134       std::stable_sort(
zbuf1D.begin(), 
zbuf1D.end(), comparator);
 
  136       for (
int i = 0; i != (int) 
zbuf1D.size(); ++i) {
 
  140         zbuf2D[pair.first][pair.second] = i;
 
  141         zbuf2D[pair.second][pair.first] = i;
 
  144       for (
int i = 0; i != (int) 
zbuf2D.size(); ++i) {
 
  157     static int getSign(
const int first, 
const int second)
 
  159       return (second >= first ? +1 : -1);
 
  171       return getSign(pair.first, pair.second);
 
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).