Home / Docs / Standard library / Prelude
tensor_filled
Release v0.4.0Edition 0.5 preview
A function of the prelude, in scope in every module. Edition 0.5 preview.
una
pub tensor_filled[T](shape: List[Int], value: T) -> Tensor[T]A tensor of the lengths in shape, a list literal of 1 to 8 of them, each element value (spec/29 §17): requires every length >= 0, ensures the rank and the lengths, as for tensor. O(n).
Specification
Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.