chore: add constructor for TSPRandomInitializer
1 files changed, 10 insertions(+), 0 deletions(-) M codes/tsp_hw01/src/tsp.rs
M codes/tsp_hw01/src/tsp.rs => codes/tsp_hw01/src/tsp.rs +10 -0
@@ 210,6 210,16 @@ where _phantom: PhantomData<D> } +impl<D> TSPRandomInitializer<D> +where + D: Dim, + DefaultAllocator: Allocator<D, D>, +{ + pub fn new() -> Self { + Self { _phantom: PhantomData } + } +} + impl<D> Initializer<D, NodePermutation<D>> for TSPRandomInitializer<D> where D: Dim,