´

makevectorofpart

synopsis: INT makevectorofpart(OP n, result)

description:

n must be an INTEGER object, and result becomes a VECTOR object of PARTITION objects. The order is according to the order of next(). [Nijenhuis/Wilf]

example:

#include "def.h"
#include "macro.h"
 main()
 {
 OP a,b;
 anfang();
 a = callocobject();
 b = callocobject();

 scan(INTEGER,a);
 makevectorofpart(a,b);
 println(b);
 println(s_v_i(b,s_v_li(b)-1L));

 freeall(a);
 freeall(b);
 ende();
 }





Send comments or suggestions to:
symmetrica (at) symmetrica.de

this page was automatically generated on So Jan 4 10:35:49 CET 2009 on the machine btn6xf

University of Bayreuth -