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

[ENH] Add LevelProperty public attribute to all the levels #22

Merged
merged 9 commits into from Jun 6, 2023

Conversation

adam2392
Copy link
Contributor

@adam2392 adam2392 commented May 31, 2023

Towards: #19

Adds LevelProperty() constexpr function to allow each class access to the levelproperties during compile time, without explicitly writing the class type.

Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
test/source/dense_test.cpp Outdated Show resolved Hide resolved
Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Copy link
Contributor Author

@adam2392 adam2392 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added unit-tests to check for these properties, and also added a BaseCase test where possible

Signed-off-by: Adam Li <adam2392@gmail.com>
Signed-off-by: Adam Li <adam2392@gmail.com>
Copy link
Contributor Author

@adam2392 adam2392 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll clean up the commented code in the unit-tests once you both have a chance to review the code

Signed-off-by: Adam Li <adam2392@gmail.com>
@adam2392
Copy link
Contributor Author

adam2392 commented Jun 2, 2023

If this is good design, then I can revisit the PR on co iteration.

Signed-off-by: Adam Li <adam2392@gmail.com>
@hameerabbasi
Copy link
Owner

hameerabbasi commented Jun 6, 2023

@bharath2438 Could you give this a shallow review? I'll merge on your approval.

Copy link
Collaborator

@bharath2438 bharath2438 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these look good.

@hameerabbasi hameerabbasi merged commit 9f47a2c into hameerabbasi:main Jun 6, 2023
5 checks passed
@adam2392 adam2392 deleted the levelprops branch June 6, 2023 13:36
@hameerabbasi
Copy link
Owner

Merging, thanks for the fixes, @adam2392!

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.

None yet

3 participants