feat(python-eos): work on python eos module

This commit is contained in:
2025-05-13 14:18:38 -04:00
parent bc36dd459d
commit b5980ea57a
9 changed files with 81 additions and 21 deletions

View File

@@ -43,8 +43,11 @@
using namespace std;
double** heap_allocate_contiguous_2D_memory(int rows, int cols) {
double **array = new double*[rows];
double** heap_allocate_contiguous_2D_memory(const int rows, const int cols) {
if (rows <= 0 || cols <= 0) {
throw std::invalid_argument("Rows and columns must be positive integers.");
}
auto array = new double*[rows];
array[0] = new double[rows * cols];
for (int i = 1; i < rows; i++) {