45 #ifndef _ZOLTAN2_ALGRANDOM_HPP_
46 #define _ZOLTAN2_ALGRANDOM_HPP_
60 template <
typename Adapter>
65 const RCP<Teuchos::ParameterList> &pl,
66 const RCP<Teuchos::Comm<int> > &comm
81 const size_t n = model->getLocalNumIdentifiers();
83 perm = (lno_t *) (solution->getPermutationRCP().getRawPtr());
85 for (
size_t i=0; i<n; i++){
95 for (lno_t i=n-1; i>0; i--){
Defines the OrderingSolution class.
Defines the IdentifierModel interface.
int AlgRandom(const RCP< IdentifierModel< Adapter > > &model, const RCP< OrderingSolution< typename Adapter::gid_t, typename Adapter::lno_t > > &solution, const RCP< Teuchos::ParameterList > &pl, const RCP< Teuchos::Comm< int > > &comm)
IdentifierModel defines the interface for all identifier models.
The class containing ordering solutions and metrics.