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

developping vector #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

developping vector #1

wants to merge 2 commits into from

Conversation

jalalium
Copy link
Member

No description provided.

@@ -33,11 +29,12 @@ def is_zero(x):
class FiniteVectorSpace(Basic):
"""
"""
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.

1 participant