We need to be able to call the friend function getParametricDMD for any derived class of DMD and create that specific derived class of DMD depending on what type of DMD was used to train with.
Making getParametricDMD a templated function is a good way to do this.
We need to be able to call the friend function getParametricDMD for any derived class of DMD and create that specific derived class of DMD depending on what type of DMD was used to train with.
Making getParametricDMD a templated function is a good way to do this.