menu
splat
import { splat } from "destack";
Build a tensor by repeating value.
Broadcast scalar to all lanes.
Creates a vector with all lanes set to the same scalar value.
1export declare function splat<T, const Rank: usize>(value: T, shape: Shape<Rank>, options?: TensorOutputOptions<T, Rank> | undefined): Tensor<T, Rank>1export declare function splat<T, const N: usize>(value: T): Vector<T, N>