Home / Docs / Standard library / Prelude

matrix_filled

Release v0.4.0Edition 0.5 preview

A function of the prelude, in scope in every module. Edition 0.5 preview.

una
pub matrix_filled[T](rows: Int, columns: Int, value: T) -> Matrix[T]
  requires rows >= 0 and columns >= 0
  ensures result.rows == rows and result.columns == columns

A matrix of rows rows and columns columns, each element value (spec/29 §17). 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.