Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets #328

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Sets #328

wants to merge 3 commits into from

Conversation

cbm755
Copy link
Collaborator

@cbm755 cbm755 commented Jan 22, 2016

No description provided.

Seems obvious but it might be dangerous: maybe somewhere in the
code assumes isempty means one dimension of an array is zero (as
is the case for matrices).

For example: `e = finiteset()`, now `size(e)` gives `[1 1]` but
`isempty(e)` is true.

Also: `length(e)` gives 1.  Maybe we need to overload `e` as well.
@cbm755
Copy link
Collaborator Author

cbm755 commented Jan 22, 2016

Lots of questions now that we have sets! Here is special treatment for isempty. What about numel, and size and length and... and ...

@latot latot mentioned this pull request Sep 6, 2016
@cbm755
Copy link
Collaborator Author

cbm755 commented Sep 14, 2016

#542 is a thread which proposes something like @symset, a subclass of @sym to deal with the specific features of Sets, Intervals, etc (such as those highlighted above). This is somewhat comparable to how @symfun overrides the behaviour of ()-indexing.

I'm uncertain whether this is a good idea or not. @symfuns are already troublesome (but needed for SMT compat).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant