Skip to content

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.

2 participants