-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw exception UnstableRegularization in ConvexifiedHessian if regul…
…arization factor becomes too large + moved UnstableRegularization to its own file
- Loading branch information
Showing
4 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) 2024 Charlie Vanaret | ||
// Licensed under the MIT license. See LICENSE file in the project directory for details. | ||
|
||
#ifndef UNO_UNSTABLEREGULARIZATION_H | ||
#define UNO_UNSTABLEREGULARIZATION_H | ||
|
||
#include <exception> | ||
|
||
namespace uno { | ||
struct UnstableRegularization : public std::exception { | ||
|
||
[[nodiscard]] const char* what() const noexcept override { | ||
return "The inertia correction got unstable (delta_w > threshold)"; | ||
} | ||
}; | ||
} // namespace | ||
|
||
#endif // UNO_UNSTABLEREGULARIZATION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters