Skip to content

Commit

Permalink
chore(data/matrix/block): Do not print matrix.from_blocks with dot …
Browse files Browse the repository at this point in the history
…notation (#12774)

`A.from_blocks B C D` is weird and asymmetric compared to `from_blocks A B C D`. In future we might want to introduce notation.
  • Loading branch information
eric-wieser committed Mar 18, 2022
1 parent cf8c5ff commit adcfc58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data/matrix/block.lean
Expand Up @@ -28,6 +28,7 @@ section block_matrices

/-- We can form a single large matrix by flattening smaller 'block' matrices of compatible
dimensions. -/
@[pp_nodot]
def from_blocks (A : matrix n l α) (B : matrix n m α) (C : matrix o l α) (D : matrix o m α) :
matrix (n ⊕ o) (l ⊕ m) α :=
sum.elim (λ i, sum.elim (A i) (B i))
Expand Down

0 comments on commit adcfc58

Please sign in to comment.