Infer the result shape of matrix multiplication
Handles all standard matrix multiplication cases:
type Result1 = MatMulShape<[2, 3], [3, 4]> // readonly [2, 4]type Result2 = MatMulShape<[10], [10, 5]> // readonly [5]type Result3 = MatMulShape<[5, 2, 3], [5, 3, 4]> // readonly [5, 2, 4] Copy
type Result1 = MatMulShape<[2, 3], [3, 4]> // readonly [2, 4]type Result2 = MatMulShape<[10], [10, 5]> // readonly [5]type Result3 = MatMulShape<[5, 2, 3], [5, 3, 4]> // readonly [5, 2, 4]
Infer the result shape of matrix multiplication
Handles all standard matrix multiplication cases: