10 #ifndef _LOSC_INCLUDE_C_LOSC_MATRIX_H_ 11 #define _LOSC_INCLUDE_C_LOSC_MATRIX_H_ 49 #define losc_matrix_free(ptr) _losc_matrix_free(&(ptr)) 50 void _losc_matrix_free(losc_matrix **pptr_m);
const double * losc_matrix_data_const(const losc_matrix *m)
Return the const pointer that points to the head of matrix data.
struct losc_matrix losc_matirx
losc_matrix
Definition: matrix.h:22
size_t losc_matrix_rows(const losc_matrix *m)
Return the number of rows.
double * losc_matrix_data(losc_matrix *m)
Return the pointer that points to the head of matrix data.
losc_matrix * losc_matrix_create_from_data(size_t row, size_t col, double *data)
Create a LOSC matrix object with data owned externally.
losc_matrix * losc_matrix_create(size_t row, size_t col)
Create a LOSC matrix object with data allocated.
size_t losc_matrix_cols(const losc_matrix *m)
Return the number of columns.