Avoiding need for a templated member function of GeneralDistMatrix.