#include "Singular/libsingular.h"
#include <vector>
Go to the source code of this file.
◆ s_subset()
static void s_subset |
( |
std::vector< int > & |
arr, |
|
|
int |
size, |
|
|
int |
left, |
|
|
int |
index, |
|
|
std::vector< int > & |
l, |
|
|
std::vector< std::vector< int > > & |
L |
|
) |
| |
|
static |
Definition at line 11 of file subsets.cc.
12{
13 if(left==0)
14 {
16 return;
17 }
18
20 {
24 }
25}
static int index(p_Length length, p_Ord ord)
static void s_subset(std::vector< int > &arr, int size, int left, int index, std::vector< int > &l, std::vector< std::vector< int > > &L)
◆ subsets() [1/2]
Definition at line 32 of file subsets.cc.
33{
36 {
39 {
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;
48
51 for (
unsigned i=0;
i<lt.size();
i++)
52 {
53 std::vector<int> lti = lt[
i];
56 for(
unsigned j=0;
j<lti.size();
j++)
57 {
59 Lti->
m[
j].
data = (
void*)(
long)lti[
j];
60 }
62 Lt->
m[
i].
data = (
void*) Lti;
63 }
64
66 res->data = (
void*) Lt;
68 }
69 }
70 WerrorS(
"subsets: unexpected parameter");
72}
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)
◆ subsets() [2/2]
Definition at line 76 of file subsets.cc.
77{
80}
static BOOLEAN subsets(leftv res, leftv args)