From c087e1860fc1ec8faf65bc5a9af86733066577cf Mon Sep 17 00:00:00 2001 From: Christoph Groth Date: Mon, 1 Dec 2025 17:29:02 +0100 Subject: Use clearer generic dimension types --- src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index 655c906..be0571d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,10 +4,11 @@ use mdarray::{view, tensor, Slice, Dim, Const, expr::Expression}; use mdarray as md; // Indexing convention: C_ij <- A_ik * B_kj -fn matmul( - a: &Slice, - b: &Slice, - c: &mut Slice) { +fn matmul( + a: &Slice, + b: &Slice, + c: &mut Slice, +) { for (mut ci, ai) in c.rows_mut().zip(a.rows()) { for (aik, bk) in ai.zip(b.rows()) { for (cij, bkj) in ci.expr_mut().zip(bk) { -- cgit v1.2.3-74-g4815