Utils¶
Logger¶
- spdlog::logger& ipc::logger()¶
Retrieves the current logger.
- Returns:¶
A const reference to the logger object.
Setup a logger object.
Calling this function with other function is not thread-safe.
New logger object to be used.
Positive Semi-Definite Projection¶
-
template <typename _Scalar, int _Rows, int _Cols, int _Options,
int _MaxRows, int _MaxCols>
Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>
ipc::project_to_psd(const Eigen::Matrix<_Scalar, _Rows, _Cols,
_Options, _MaxRows, _MaxCols>& A,
const PSDProjectionMethod method = PSDProjectionMethod::CLAMP)¶ Matrix projection onto positive semi-definite cone.
-
template <typename _Scalar, int _Rows, int _Cols, int _Options,
int _MaxRows, int _MaxCols>
Eigen::Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols>
ipc::project_to_pd(const Eigen::Matrix<_Scalar, _Rows, _Cols,
_Options, _MaxRows, _MaxCols>& A,
double eps = 1e-8)¶ Matrix projection onto positive definite cone.
- enum class ipc::PSDProjectionMethod¶
Enumeration of implemented PSD projection methods.
Values:
- enumerator NONE¶
No PSD projection.
- enumerator CLAMP¶
Clamp negative eigenvalues to zero.
- enumerator ABS¶
Flip negative eigenvalues to positive.
Last update:
Nov 16, 2024