-
Notifications
You must be signed in to change notification settings - Fork 34
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
Tupek/trust region subspace solver #1288
Conversation
/style |
c8d6425
to
92e28a2
Compare
/style |
1 similar comment
/style |
/style |
im not too familiar with petsc/ mfem, but could a lot of the petsc wrapper stuff use mfem's petsc wrapper classes? https://github.com/mfem/mfem/blob/master/linalg/petsc.hpp ? also https://github.com/mfem/mfem/blob/master/linalg/slepc.hpp |
The mfem wrappers are intended for 'parallel' across processor things. The new wrapper is for local, small, dense things. In general, many coding experts recommend creating internal abstractions to external library wrappers anyways, but in this case, the mfem one doesn't even really fit the purpose. |
0858469
to
f7164f3
Compare
/style |
Subspace trust region solver using petsc.
… info on algorithmic counts.
0da6a06
to
b0e61ee
Compare
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.
thanks @tupek2
auto eigh(const DenseMat& Adense) | ||
{ | ||
auto [isize, jsize] = Adense.size(); | ||
SLIC_ERROR_IF(isize != jsize, "Eig must be called for symmetric matrices"); |
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.
SLIC_ERROR_IF(isize != jsize, "Eig must be called for symmetric matrices"); | |
SLIC_ERROR_IF(isize != jsize, "'eigh' must be called for symmetric matrices"); |
?
* @brief compute the quadratic energy from small dense matrices and vectors | ||
* @param A The stiffness matrix | ||
* @param b The rhs vector | ||
* @param x The current solution vector |
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.
Does the doxygen check not throw a warning/error on missing the return parameter documentation?
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.
it does not seem to error. Presumably our functions should be named such that the return is often obvious.
/style |
No description provided.