Documentation

SSA.Projects.Tensor2D.Tensor2D

@[reducible, inline]

Type of tensor dimensions and indexes into tensor dimensions. NOTE: see interaction with linarith where we need to unfold Index into https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Ergonomics.3A.20linarith.20does.20not.20work.20on.20Nat.20alias/near/365631549

Equations
Instances For
    structure Tensor2D.Tensor2d' (α : Type) :

    Tensor2d with existential dimension sizes.

    Instances For
      Equations
      Instances For
        Equations
        • t.transpose = { dim₀ := t.dim₁, dim₁ := t.dim₀, mat := t.mat.transpose }
        Instances For
          theorem Tensor2D.Tensor2d'.transpose_transpose {α : Type} (t : Tensor2D.Tensor2d' α) :
          t.transpose.transpose = t
          def Tensor2D.Tensor2d'.map {α : Type} {β : Type} (f : αβ) (t : Tensor2D.Tensor2d' α) :
          Equations
          Instances For
            theorem Tensor2D.Tensor2d'.map_functorial {β : Type} {γ : Type} {α : Type} (g : βγ) (f : αβ) (t : Tensor2D.Tensor2d' α) :
            def Tensor2D.const {α : Sort u_1} {β : Sort u_2} (a : α) (_b : β) :
            α

            K combinator / constant function.

            Equations
            Instances For

              extract a submatrix of (sz₀ × sz₁) size at offset (δ₀, δ₁). Fails if this is out of bounds.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem Tensor2D.Tensor2d'.map_extract {α : Type} {β : Type} (δ₀ : ) (δ₁ : ) (sz₀ : ) (sz₁ : ) (t : Tensor2D.Tensor2d' α) (f : αβ) :

                This implies fill_extract

                theorem Tensor2D.Tensor2d'.fill_extract {α : Type} {β : Type} (δ₀ : ) (δ₁ : ) (sz₀ : ) (sz₁ : ) (t : Tensor2D.Tensor2d' α) (v : β) :
                inductive Tensor2D.Op :
                Instances For
                  inductive Tensor2D.Ty :
                  Instances For
                    Equations
                    @[reducible]
                    Equations
                    Instances For
                      Equations
                      Instances For
                        @[reducible]
                        Equations
                        • One or more equations did not get rendered due to their size.