Returns a tensor with a value set at a specific index.
The tensor
Between one and rank, in-bounds indices
A tensor matching the shape after the indexed axes, or a number or null at a full index
const result = Chalkboard.tens.set([[1, 2], [3, 4]], [0, 1], 9); // Returns [[1, 9], [3, 4]] Copy
const result = Chalkboard.tens.set([[1, 2], [3, 4]], [0, 1], 9); // Returns [[1, 9], [3, 4]]
Returns a tensor with a value set at a specific index.