type ProductFacts

bendtorch-core@0.1.0.0 · src/tensor/contracts/product_proof.bend:29

import bendtorch-core@0.1.0.0/src/tensor/contracts/product_proof.bend as ProductProof
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/matmul.bend as Matrix

29type ProductFacts<-lo: Matrix.Order, -ro: Matrix.Order, -left: Shape.Shape, -right: Shape.Shape, -output: Shape.Shape,
30  -rows: U32, -inner: U32, -right_inner: U32, -columns: U32> is Data:
31  ProductFacts{left_dimensions: {Shape.dimensions(left) == Matrix.arranged(lo, rows, inner) : List<&2, U32>},
32    right_dimensions: {Shape.dimensions(right) == Matrix.arranged(ro, columns, right_inner) : List<&2, U32>},
33    output_dimensions: {Shape.dimensions(output) == [rows, columns] : List<&2, U32>},
34    compatible: {U32.to_nat(inner) == U32.to_nat(right_inner) : Nat}}

Uses (8)

Used by (11)