Just a quick follow up... >> I'm trying to create all multisets of length k=3 on sets of the form >> {1,...,n}, where n ranges from 1 to 9. So for n=1 I would expect to >> get only the multiset {{1,1,1}}; for n=2 I'd get {{1,1,1}}, {{1,1,2}}, >> {{1,2,2}}, and {{2,2,2}}. >> >> However, when I call gsl_multiset_calloc(n, 3) with n<3, I receive the >> run-time error: >>> gsl: init.c:42: ERROR: multiset length k must be an integer less than or >>> equal to n >> ... >> So my questions are (1) does anybody know why there is a check to >> ensure k<=n [in init.c at line 42] when this is not required of a multiset
The bug Michael reported in is fixed in http://bzr.savannah.gnu.org/lh/gsl/trunk/revision/4744 and a regression test was added. An additional constraint needed to be removed from gsl_multiset_valid. - Rhys _______________________________________________ Help-gsl mailing list Help-gsl@gnu.org https://lists.gnu.org/mailman/listinfo/help-gsl