main function
void
main()
Implementation
void main() {
const M = 4;
const K = 3;
const N = 4;
// Matrix A (4x3)
final matrixA = Tensor(
[4, 3],
[
1, 2, 3, // row 0
4, 5, 6, // row 1
7, 8, 9, // row 2
1, 1, 1, // row 3
],
);
// Matrix B (3x4)
final matrixB = Tensor(
[3, 4],
[
9, 8, 7, 6, // row 0
5, 4, 3, 2, // row 1
1, 2, 3, 4, // row 2
],
);
final out = matrixA.matMul(matrixB);
}