3 //-----------------------------------------------------------------------------
5 // Encapsulate stack values in a vector
7 // Input: n Number of values on stack
9 // tos-n Start of value
11 // Output: Vector on stack
13 //-----------------------------------------------------------------------------
26 p1
->u
.tensor
->ndim
= 1;
27 p1
->u
.tensor
->dim
[0] = n
;
29 for (i
= 0; i
< n
; i
++)
30 p1
->u
.tensor
->elem
[i
] = stack
[tos
- n
+ i
];