You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `JOIN(INT|STR: a1,INT|STR: a2, ...,INT|STR: aN):INT|STR` ; `INT` -> concatenate binary spellings with consistent sign; `STR` -> concatenate strings; mixing `INT` and `STR` or supplying tensors raises an error
456
-
- `PROD(INT: a1, ...,INT: aN):INT` ; product of the arguments
457
456
- `PROD(INT|FLT: a1, ...,INT|FLT: aN):INT|FLT` ; product of the arguments (no mixing INT/FLT)
458
457
459
458
### Tensor operations
460
459
- `SHAPE(TNS: tensor):TNS` — Returns the tensor's shape as a 1D `TNS` (vector) of `INT` lengths (one entry per dimension).
461
460
- `TLEN(TNS: tensor,INT: dim):INT` — Returns the length of the specified 1-based dimension. Errors if `dim` is out of range.
462
461
- `FLIP(INT|STR: obj):INT|STR` — For `INT` input, returns an `INT` whose binary-digit spelling is the reverse of the absolute-value binary spelling of `obj` (sign is preserved). For `STR` input, returns the character-reversed `STR`.
463
462
- `TFLIP(TNS: obj,INT: dim):TNS` — Returns a new `TNS` with the elements along 1-based dimension `dim` reversed. Errors if `dim` is out of range.
464
-
- `SCATTER(TNS: src,TNS: dst,TNS: ind):TNS` — Returns a copy of `dst` with a rectangular slice replaced by `src`. `ind` must be a 2D tensor of `INT` pairs with shape `[TLEN(dst,1),10]` (binary `10` = decimal 2), i.e., one `[lo,hi]` row per destination dimension (rank; for example `rank=TLEN(SHAPE(dst),1)`). Indices are 1-based; negatives follow the tensor indexing rules (for example, `-1` is the last element) and `0` is invalid. For each dimension, the inclusive span `hi-lo+1` must equal the corresponding `src` dimension length, and all bounds must fall within `dst`. Elements outside the slice are copied from `dst` unchanged.
463
+
- `SCAT(TNS: src,TNS: dst,TNS: ind):TNS` — Returns a copy of `dst` with a rectangular slice replaced by `src`. `ind` must be a 2D tensor of `INT` pairs with shape `[TLEN(dst,1),10]` (binary `10` = decimal 2), i.e., one `[lo,hi]` row per destination dimension (rank; for example `rank=TLEN(SHAPE(dst),1)`). Indices are 1-based; negatives follow the tensor indexing rules (for example, `-1` is the last element) and `0` is invalid. For each dimension, the inclusive span `hi-lo+1` must equal the corresponding `src` dimension length, and all bounds must fall within `dst`. Elements outside the slice are copied from `dst` unchanged.
465
464
- `FILL(TNS: tensor,ANY: value):TNS` — Returns a new tensor with the same shape as `tensor`, filled with `value`. The supplied value`stypemustmatchtheexistingelementtypeateveryposition.
0 commit comments