From 36670ee0f2f54a54f85af3115d3442d66a6d0970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Tue, 17 Dec 2024 16:59:56 +0100 Subject: [PATCH] refactor(laplace): make `fn compute` private --- examples/demo/src/laplace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/demo/src/laplace.rs b/examples/demo/src/laplace.rs index 2f081fc85..88f22020b 100644 --- a/examples/demo/src/laplace.rs +++ b/examples/demo/src/laplace.rs @@ -89,7 +89,7 @@ fn iteration(cur: &[f64], next: &mut [f64], size_x: usize, size_y: usize) { }); } -pub fn compute(matrix: &mut [f64], size_x: usize, size_y: usize) -> (usize, f64) { +fn compute(matrix: &mut [f64], size_x: usize, size_y: usize) -> (usize, f64) { let mut clone = matrix.to_vec(); let mut current = matrix;