//clika-runtime/io.clika.runtime/Ops/linspace
linspace
[common]
fun linspace(start: Tensor, end: Tensor, steps: Tensor, dtype: DType = DType.FLOAT32, device: Placement? = null): Tensor
linspace(start: Tensor, end: Tensor, steps: Tensor, dtype: DType = DType.FLOAT32, device: Placement? = null): the linspace operator. steps evenly spaced values from start to end, ENDPOINTS INCLUDED. out[i] = start + i * (end - start) / (steps - 1); the last element is exactly end; steps = 1 yields just start. Contrast arange, whose upper bound is exclusive. Bounds and count are literals or 0-D Tensors (trace symbolically).
[common]
fun linspace(start: Double, end: Double, steps: Double, dtype: DType = DType.FLOAT32, device: Placement? = null): Tensor
linspace(start: Double, end: Double, steps: Double, dtype: DType = DType.FLOAT32, device: Placement? = null): the number form of linspace, start, end, steps as scalars.