feat(python-eos): work on python eos module
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user