From 2079f94b101adc6e36b301ac7f17b5d50e94ed25 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 28 Oct 2025 16:31:21 +0100 Subject: [PATCH] chore: add constructor for TSPRandomInitializer --- codes/tsp_hw01/src/tsp.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/codes/tsp_hw01/src/tsp.rs b/codes/tsp_hw01/src/tsp.rs index b543dc439834dcdd69b817f3b5ea10d1c1d50ee1..0c445532c0cdbc5bb2a35c199a96a296878b6b8d 100644 --- a/codes/tsp_hw01/src/tsp.rs +++ b/codes/tsp_hw01/src/tsp.rs @@ -210,6 +210,16 @@ where _phantom: PhantomData } +impl TSPRandomInitializer +where + D: Dim, + DefaultAllocator: Allocator, +{ + pub fn new() -> Self { + Self { _phantom: PhantomData } + } +} + impl Initializer> for TSPRandomInitializer where D: Dim,