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

Constructor using struct #156

Open
LeonardJohard opened this issue Oct 18, 2020 · 0 comments
Open

Constructor using struct #156

LeonardJohard opened this issue Oct 18, 2020 · 0 comments

Comments

@LeonardJohard
Copy link

It would be convenient to have a StructArray constructor based on an existing struct, for example:

structarray = StructArray(struct)

where struct is any struct. Any non-numerical fields would be ignored and not added to the new struct.

Application could be in various types of data storage, for example in simulations, where a struct contains all the information of some object, while StructArray constructor prepares the numerical fields for efficient numerical operations.

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

No branches or pull requests

1 participant