-
Notifications
You must be signed in to change notification settings - Fork 21
Documentation #265
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
base: master
Are you sure you want to change the base?
Documentation #265
Conversation
|
Files that need documentation NOTE we need to compare each header file against master branch. In case that there are comments not for documentation in master branch, we should restore them. Path:
|
97d3c78 to
f9d1980
Compare
|
Next folder to be documented: NOTE we need to compare each header file against master branch. In case that there are comments not for documentation in master branch, we should restore them.
|
There are a few functions I am uncertain if my comments are correct. I will post them on pull request so that someone can review them. There are also some template specializations in FunctionNode.cpp, which I am not sure if we need to make doxygen comment for them.
|
Hi @ilfreddy @gitpeterwind I have some problems in the documentation of FunctionNode, maybe you, or other people can help me resolve them.
|
I believe this has to do with the following design of MRChem. Each function is an adaptive grid. The terminal nodes of the grid are called leaf nodes. They contain only scaling functions (wavelet coefficients are zero at the leaves). But instead we store that information as scaling+wavelet one level up. So if you were to compute function values at a given node (and not for the children) you would miss one level of refinement and get a less precise result.
I leve this to @gitpeterwind
Here I am a bitt puzzled myself. I know where the overwrite vs add issue comes from: it has to do with operator applications (too complicated to explain here why you want both options). But I agree with you that there should be a flag for that. And it seems to be gone now.
I have not checked in detail, but I actually suspect these two functions do the very same thing...
I believe this has to do with the way we store functions and "flag" the bra side as being comp conjugate. But again, @gitpeterwind can give you a better answer here.
DITTO nr.5 :-) |
Trees have their own memory management. So dealloc will deallocate in the tree but not in the system.
The bra and ket can have a "soft" conjugate. That means that one should consider the conjugate of their values instead. Note that for the low level the functions, general explanations are required, to explain the strategy/definitions/choices made. Those should be written elsewhere, and give help understand the relationships between the functions, classes etc. |
|
Thank you, @ilfreddy and @gitpeterwind There are only two unresolved ones left. One is the documentation of functions The other is, there are template specializations in FunctionNode.cpp, I am not sure if we need to make documentation for them as well. How do you think, @moorberry : Note that these template specializations are not defined in the header file, so I am not entirely sure if we should have documentation for them. |
Conclusion: although most likely the two methods do exactly the same thing, the intention behind is different and I would be inclined to keep both. Possibly write a note about it in the documentation. |
…he function ObaraSaika_ab, so I added it with documentation
Documentation branch ready for the docathon, copied form @Christian48596
Closes #264 when merged.