-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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): | |||
|
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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'): |
There was a problem hiding this comment.
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?
No description provided.