/
lyapdy
/
skillbox_controllers
Обзор
Документация
Войти
/
lyapdy
/
skillbox_controllers
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Project7/src/c_api.h
22 строки
654 B
danillyapunov
Second commit
09 дек 2025, 18:41
09 дек 2025, 18:41
2c9c8f9
Код
Авторство
О чём код?
#pragma once #include "export.h" #ifdef __cplusplus extern "C" { #endif typedef struct Matrix Matrix; MATRIXLIB_EXPORT Matrix* math_createMatrix(int rows, int cols); MATRIXLIB_EXPORT void math_deleteMatrix(Matrix* M); MATRIXLIB_EXPORT double math_get(const Matrix* M, int row, int col); MATRIXLIB_EXPORT void math_set(Matrix* M, int row, int col, double val); MATRIXLIB_EXPORT Matrix* math_add(const Matrix* A, const Matrix* B); MATRIXLIB_EXPORT Matrix* math_subtract(const Matrix* A, const Matrix* B); MATRIXLIB_EXPORT Matrix* math_dot(const Matrix* A, const Matrix* B); MATRIXLIB_EXPORT void math_print(const Matrix* M); #ifdef __cplusplus } #endif