COPP C ABI
C interface for COPP trajectory optimization
Loading...
Searching...
No Matches
CoppMatrixF64 Struct Reference

Library-owned column-major f64 matrix returned to C. More...

#include <core.h>

Data Fields

double * data
 Pointer to the first column-major element, or null for an empty matrix.
size_t rows
 Number of matrix rows.
size_t cols
 Number of matrix columns.
size_t capacity
 Allocation capacity in number of double elements, used only by copp_matrix_f64_free.

Detailed Description

Library-owned column-major f64 matrix returned to C.

C callers may read data[0..rows * cols] using column-major indexing and must release the matrix exactly once with copp_matrix_f64_free.

Field Documentation

◆ data

double* CoppMatrixF64::data

Pointer to the first column-major element, or null for an empty matrix.

◆ rows

size_t CoppMatrixF64::rows

Number of matrix rows.

◆ cols

size_t CoppMatrixF64::cols

Number of matrix columns.

◆ capacity

size_t CoppMatrixF64::capacity

Allocation capacity in number of double elements, used only by copp_matrix_f64_free.


The documentation for this struct was generated from the following file:
  • bindings/c/include/copp/core.h