[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Why must k be less than n in a multiset?

From: Rhys Ulerich
Subject: Re: [Help-gsl] Why must k be less than n in a multiset?
Date: Mon, 12 Sep 2011 17:23:42 -0500

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 and a
regression test was added.  An additional constraint needed to be
removed from gsl_multiset_valid.

- Rhys

reply via email to

[Prev in Thread] Current Thread [Next in Thread]