Skip to content

developping vector#1

Open
jalalium wants to merge 2 commits into
mainfrom
pr1
Open

developping vector#1
jalalium wants to merge 2 commits into
mainfrom
pr1

Conversation

@jalalium
Copy link
Copy Markdown
Member

No description provided.

Comment thread symla/kronecker.py
"""
def __new__(cls, name, shape=None):
def __new__(cls, name, dimension=None, field=None):

Copy link
Copy Markdown
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.

Comment thread symla/kronecker.py
return self._field

@property
def dtype(self):
Copy link
Copy Markdown
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

Comment thread symla/kronecker.py
obj = Symbol.__new__(cls, name)
obj._space = space
obj._discretizable = False
if assumptions.get('values'):
Copy link
Copy Markdown
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.

1 participant