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);¶ 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.