Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit dc4caa3

Browse files
CArray_Print break line for 3D tensors
1 parent b0230fb commit dc4caa3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/carray.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,12 @@ _print_recursive(CArray * array, CArrayIterator * iterator, int * index, int cur
11371137
*index = 0;
11381138
for (i = *index; i < array->dimensions[current_dim]; i++) {
11391139
if (iterator->index >= CArray_DIMS(array)[CArray_NDIM(array)-1] && !current_dim) {
1140+
1141+
// Break line for 2D stacks
1142+
if (CArray_NDIM(array) == 3) {
1143+
php_printf("\n");
1144+
}
1145+
11401146
for (j = 0; j < current_dim + 1; j++) {
11411147
php_printf(" ");
11421148
}

0 commit comments

Comments
 (0)