Skip to content

Conversation

@jalalium
Copy link
Member

No description provided.

"""
def __new__(cls, name, shape=None):
def __new__(cls, name, dimension=None, field=None):

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we inform the dimension and field of a vector space? or should we inject that information later?
I think dimension should be used here instead of shape as it is the case in Psydac.

return self._field

@property
def dtype(self):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For code generation, the data type can be infered from the field of the vector space if this information is not provided

obj = Symbol.__new__(cls, name)
obj._space = space
obj._discretizable = False
if assumptions.get('values'):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the way to go to discretize vector?

@jalalium jalalium requested a review from ratnania December 20, 2022 14:55
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