Library-owned f64 vector returned to C.
More...
#include <core.h>
|
| double * | data |
| | Pointer to the first element, or null for an empty vector.
|
| size_t | len |
| | Number of initialized elements.
|
| size_t | capacity |
| | Allocation capacity, used only by copp_vec_f64_free.
|
Library-owned f64 vector returned to C.
C callers may read data[0..len] and must release the vector exactly once with copp_vec_f64_free.
Example
The example below reads a solver-returned vector and then releases it.
for (
size_t k = 0; k < a.
len; ++k) {
printf(
"a[%zu] = %.17g\n", k, a.
data[k]);
}
void copp_vec_f64_free(struct CoppVecF64 vec)
Release a library-owned f64 vector returned by COPP.
enum CoppStatus topp2_ra(struct Topp2Problem problem, struct Topp2RaOptions options, struct CoppVecF64 *out_a)
Solve a TOPP2-RA problem.
Library-owned f64 vector returned to C.
size_t len
Number of initialized elements.
double * data
Pointer to the first element, or null for an empty vector.
Definition at line 828 of file core.h.
◆ data
Pointer to the first element, or null for an empty vector.
Definition at line 832 of file core.h.
◆ len
Number of initialized elements.
Definition at line 836 of file core.h.
◆ capacity
| size_t CoppVecF64::capacity |
The documentation for this struct was generated from the following file:
- bindings/c/include/copp/core.h