Page 1 of 1

Create multiple subobjects using rules

Posted: 27 May 2012, 23:41
by lkastner
I was wondering if it is possible to set multiple using rules. For example for Ideals we want to compute the primary decomposition which is a set of ideals. We introduced this as a multiple subobject, but it doesn't seem to be possible to add multiple subobjects in rules. Is there some workaround for this? We can't introduce an array of ideals instead, since arrays don't work for polymake objects.
Cheers,
Lars

Re: Create multiple subobjects using rules

Posted: 29 May 2012, 11:53
by gawrilow
You have poked at two long-term construction sites, unfortunately. In your case, multiple subobjects are not appropriate, because the individual instances are not related to each other, they can be even deleted at the user's will. You need indeed the Array<perl::Object>. The number of the ticket devoted to it is embarrassingly low :-) I'll try to find some interim solution in the coming days.

Re: Create multiple subobjects using rules

Posted: 29 May 2012, 14:42
by lkastner
Right now I am using a user_function to set these values from the outside as an interim solution. This is not very pretty, but it works fine, so take your time.
Thanks, Lars