//clika-runtime/io.clika.runtime/Ops/diff
diff
[common]
fun diff(input: Tensor, n: Long = 1, dim: Long = -1L, prepend: Tensor? = null, append: Tensor? = null): Tensor
diff(input: Tensor, n: Long = 1L, dim: Long = -1L, prepend: Tensor? = null, append: Tensor? = null): the diff operator. n-th order finite difference along dim. Each application shortens the axis by one, so the output's dim extent is size(dim) - n. prepend / append are concatenated onto the axis before differencing (they must match input's shape outside dim).