Core status, memory, matrix, and shared solver option types. More...
#include <stddef.h>#include <stdbool.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | CoppClarabelLinearSolverInfo |
| Linear solver metadata reported by Clarabel. More... | |
| struct | CoppClarabelSettings |
| Advanced raw Clarabel solver settings. More... | |
| struct | CoppClarabelOptions |
| Shared Clarabel options for COPP SOCP solvers. More... | |
| struct | CoppMatrixViewF64 |
| Borrowed immutable f64 matrix passed from C to COPP. More... | |
| struct | CoppSliceF64 |
| Borrowed immutable f64 slice passed from C to COPP. More... | |
| struct | CoppSliceMutF64 |
| Borrowed mutable f64 slice passed from C to COPP. More... | |
| struct | CoppVecF64 |
| Library-owned f64 vector returned to C. More... | |
| struct | CoppVecUsize |
| Library-owned usize vector returned to C. More... | |
| struct | CoppMatrixF64 |
| Library-owned column-major f64 matrix returned to C. More... | |
Macros | |
| #define | COPP_MATRIX_VIEW_F64_COLUMN_MAJOR(data_, rows_, cols_) |
| Build a contiguous column-major matrix view. | |
| #define | COPP_MATRIX_VIEW_F64_ROW_MAJOR(data_, rows_, cols_) |
| Build a contiguous row-major matrix view. | |
Functions | |
| const char * | copp_status_message (enum CoppStatus status) |
| Return a short static message for a COPP status code. | |
| enum CoppStatus | copp_last_error_code (void) |
| Return the status code associated with the current thread's last error. | |
| const char * | copp_last_error_message (void) |
| Return the current thread's last detailed error message as UTF-8. | |
| size_t | copp_last_error_message_len (void) |
| Return the length in bytes of the current thread's last UTF-8 error message. | |
| enum CoppStatus | copp_last_error_message_copy (char *buffer, size_t capacity, size_t *out_len) |
| Copy the current thread's last UTF-8 error message into a caller buffer. | |
| void | copp_clear_last_error (void) |
| Clear the current thread's last detailed error message. | |
| enum CoppStatus | copp_set_last_error_message (enum CoppStatus status, const char *message) |
| Set the current thread's last detailed error message from a C string. | |
| enum CoppStatus | copp_set_last_error_message_n (enum CoppStatus status, const char *message, size_t len) |
| Set the current thread's last detailed error message from a byte slice. | |
| const char * | copp_version (void) |
| Return the COPP library version. | |
| enum CoppStatus | copp_clarabel_default_options (struct CoppClarabelOptions *out_options) |
| Write default shared Clarabel options into out_options. | |
| void | copp_vec_f64_free (struct CoppVecF64 vec) |
| Release a library-owned f64 vector returned by COPP. | |
| void | copp_vec_usize_free (struct CoppVecUsize vec) |
| Release a library-owned usize vector returned by COPP. | |
| void | copp_matrix_f64_free (struct CoppMatrixF64 matrix) |
| Release a library-owned f64 matrix returned by COPP. | |
| enum CoppStatus | copp_clarabel_solution_to_profile_2nd (size_t s_len, struct CoppSliceF64 x, struct CoppVecF64 *out_a) |
| Extract a second-order COPP profile from a Clarabel primal solution. | |
| enum CoppStatus | copp_clarabel_solution_to_profile_3rd (struct CoppSliceF64 s, struct CoppSliceF64 x, size_t num_stationary_start, size_t num_stationary_end, struct CoppProfile3rd *out_profile) |
| Extract a third-order COPP profile from a Clarabel primal solution. | |
Core status, memory, matrix, and shared solver option types.