3#if !defined(__CYGWIN__) || defined(STATIC_VERSION)
11static void s_subset(std::vector<int> &arr,
int size,
int left,
int index, std::vector<int> &
l, std::vector<std::vector<int> > &L)
40 int n = (int)(
long) u->
Data();
41 int k = (int)(
long)
v->Data();
42 std::vector<int> array(n);
43 for (
int i=0;
i<n;
i++)
45 std::vector<int> ltemp;
46 std::vector<std::vector<int> > lt;
51 for (
unsigned i=0;
i<lt.size();
i++)
53 std::vector<int> lti = lt[
i];
56 for(
unsigned j=0;
j<lti.size();
j++)
59 Lti->
m[
j].
data = (
void*)(
long)lti[
j];
62 Lt->
m[
i].
data = (
void*) Lti;
66 res->data = (
void*) Lt;
70 WerrorS(
"subsets: unexpected parameter");
Class used for (list of) interpreter objects.
INLINE_THIS void Init(int l=0)
const Variable & v
< [in] a sqrfree bivariate poly
void WerrorS(const char *s)
static int index(p_Length length, p_Ord ord)
static BOOLEAN subsets(leftv res, leftv args)
static void s_subset(std::vector< int > &arr, int size, int left, int index, std::vector< int > &l, std::vector< std::vector< int > > &L)