vtf-logo

partition.h File Reference

A fair partition of an integer. More...

#include "defs.h"
#include <algorithm>
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  numerical

Functions

int numerical::partition (const int x, const int n, const int i)
 Return the i_th fair partition of x into n parts.
void numerical::partitionRange (const int x, const int n, const int i, int *a, int *b)
 Compute the i_th fair partition range of x into n ranges.


Detailed Description

A fair partition of an integer.


Generated on Fri Aug 24 12:56:05 2007 for Numerical Algorithms Package by  doxygen 1.4.7