~ruther/ctu-fee-eoa

2079f94b101adc6e36b301ac7f17b5d50e94ed25 — Rutherther a month ago 1c14007
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,