Returns a tensor with elements in an axis added (pushed in).
The tensor
The axis, starting from 0 for the outermost axis
The index at which to insert the elements
The elements to push
const result = Chalkboard.tens.push([[[1, 2]]], 1, 1, [[3, 4]]); // Returns [[[1, 2], [3, 4]]] Copy
const result = Chalkboard.tens.push([[[1, 2]]], 1, 1, [[3, 4]]); // Returns [[[1, 2], [3, 4]]]
Returns a tensor with elements in an axis added (pushed in).