There is a maximum limit of the print_matrix output which, when overflowed, does not have a specific error treatment. The method must be updated to show a preview of the array (the first and last elements of each axis)
str = (char*)malloc(100000000 * sizeof(char));
Function to update
print_array(double* buffer, int ndims, int* shape, int* strides, int cur_dim, int* index, int num_elements)
There is a maximum limit of the print_matrix output which, when overflowed, does not have a specific error treatment. The method must be updated to show a preview of the array (the first and last elements of each axis)
Function to update