Diagonal vectors
Content created by Fredrik Bakke, Jonathan Prieto-Cubides and Egbert Rijke.
Created on 2022-03-21.
Last modified on 2023-03-13.
module linear-algebra.constant-vectors where
Imports
open import elementary-number-theory.natural-numbers open import foundation.universe-levels open import linear-algebra.vectors
Idea
Diagonal vectors are vectors on the diagonal, i.e., they are vectors of which all coefficients are equal.
Definition
constant-vec : {l : Level} {A : UU l} {n : ℕ} → A → vec A n constant-vec {n = zero-ℕ} _ = empty-vec constant-vec {n = succ-ℕ n} x = x ∷ (constant-vec x)
Recent changes
- 2023-03-13. Jonathan Prieto-Cubides. More maintenance (#506).
- 2023-03-10. Fredrik Bakke. Additions to
fix-import
(#497). - 2023-03-09. Jonathan Prieto-Cubides. Add hooks (#495).
- 2023-03-07. Fredrik Bakke. Add blank lines between
<details>
tags and markdown syntax (#490). - 2023-03-07. Jonathan Prieto-Cubides. Show module declarations (#488).