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

convenience constructor for Particle #11

Open
chrhck opened this issue Dec 5, 2023 · 1 comment
Open

convenience constructor for Particle #11

chrhck opened this issue Dec 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@chrhck
Copy link
Member

chrhck commented Dec 5, 2023

Currently all numeric fields for Particle have to be of same type in the constructor.
Add a convenience constructor that uses T = promote_type(args..) on all numerics arguments to create a Particle{T}

@chrhck chrhck added the enhancement New feature or request label Dec 5, 2023
@chrhck
Copy link
Member Author

chrhck commented Dec 5, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants