Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | List of all members
Zoltan2::SphynxProblem< Adapter > Class Template Reference

#include <Zoltan2_SphynxProblem.hpp>

Inheritance diagram for Zoltan2::SphynxProblem< Adapter >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::SphynxProblem< Adapter >:
Collaboration graph
[legend]

Public Types

using part_t = typename Adapter::part_t
 
using weight_t = typename Adapter::scalar_t
 
using scalar_t = double
 
using lno_t = typename Adapter::lno_t
 
using gno_t = typename Adapter::gno_t
 
using node_t = typename Adapter::node_t
 
using mvector_t = typename Tpetra::MultiVector< scalar_t, lno_t, gno_t, node_t >
 
typedef Adapter::base_adapter_t base_adapter_t
 
- Public Types inherited from Zoltan2::PartitioningProblem< Adapter >
typedef Adapter::scalar_t scalar_t
 
typedef Adapter::gno_t gno_t
 
typedef Adapter::lno_t lno_t
 
typedef Adapter::part_t part_t
 
typedef Adapter::user_t user_t
 
typedef Adapter::base_adapter_t base_adapter_t
 

Public Member Functions

 SphynxProblem (Adapter *A, Teuchos::ParameterList *p, RCP< Teuchos::ParameterList > sphynxParams, const RCP< const Teuchos::Comm< int > > &comm)
 
 SphynxProblem (Adapter *A, ParameterList *p, RCP< Teuchos::ParameterList > sphynxParams)
 
 ~SphynxProblem ()
 
void createAlgorithm () override
 
void processAlgorithmName (const std::string &algorithm, const std::string &defString, const std::string &model, Environment &env, bool &removeSelfEdges, bool &isGraphType, bool &needConsecutiveGlobalIds) override
 
RCP< mvector_tgetSphynxEigenvectors ()
 
void setUserEigenvectors (const RCP< mvector_t > &userEvects)
 
const PartitioningSolution
< Adapter > & 
getSolution ()
 
- Public Member Functions inherited from Zoltan2::PartitioningProblem< Adapter >
 PartitioningProblem (Adapter *A, ParameterList *p, const RCP< const Teuchos::Comm< int > > &comm)
 Constructor where Teuchos communicator is specified. More...
 
 PartitioningProblem (Adapter *A, ParameterList *p)
 Constructor where communicator is the Teuchos default. More...
 
 ~PartitioningProblem ()
 Destructor. More...
 
void solve (bool updateInputData=true)
 Direct the problem to create a solution. More...
 
const PartitioningSolution
< Adapter > & 
getSolution ()
 Get the solution to the problem. More...
 
void setPartSizes (int len, part_t *partIds, scalar_t *partSizes, bool makeCopy=true)
 Set or reset relative sizes for the parts that Zoltan2 will create. More...
 
void setPartSizesForCriteria (int criteria, int len, part_t *partIds, scalar_t *partSizes, bool makeCopy=true)
 Set or reset the relative sizes (per weight) for the parts that Zoltan2 will create. More...
 
- Public Member Functions inherited from Zoltan2::Problem< Adapter >
 Problem (const Adapter *input, ParameterList *params, const RCP< const Comm< int > > &comm)
 Constructor where Teuchos communicator is specified. More...
 
virtual ~Problem ()
 Destructor. More...
 
RCP< const Comm< int > > getComm ()
 Return the communicator used by the problem. More...
 
void resetParameters (ParameterList *params)
 Reset the list of parameters. More...
 
void printTimers () const
 Return the communicator passed to the problem. More...
 
const RCP< const Environment > & getEnvironment () const
 Get the current Environment. Useful for testing. More...
 
- Public Member Functions inherited from Zoltan2::ProblemRoot
virtual ~ProblemRoot ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Zoltan2::PartitioningProblem< Adapter >
static void getValidParameters (ParameterList &pl)
 Set up validators specific to this Problem. More...
 
- Static Public Member Functions inherited from Zoltan2::Problem< Adapter >
static void getValidParameters (ParameterList &pl)
 
- Protected Types inherited from Zoltan2::Problem< Adapter >
typedef Adapter::base_adapter_t base_adapter_t
 
- Protected Member Functions inherited from Zoltan2::PartitioningProblem< Adapter >
void initializeProblem ()
 
void createPartitioningProblem (bool newData)
 
- Protected Attributes inherited from Zoltan2::PartitioningProblem< Adapter >
RCP< PartitioningSolution
< Adapter > > 
solution_
 
BaseAdapterType inputType_
 
modelFlag_t graphFlags_
 
modelFlag_t idFlags_
 
modelFlag_t coordFlags_
 
std::string algName_
 
int numberOfWeights_
 
ArrayRCP< ArrayRCP< part_t > > partIds_
 
ArrayRCP< ArrayRCP< scalar_t > > partSizes_
 
int numberOfCriteria_
 
ArrayRCP< int > levelNumberParts_
 
bool hierarchical_
 
- Protected Attributes inherited from Zoltan2::Problem< Adapter >
RCP< const Adapter > inputAdapter_
 
RCP< const base_adapter_tbaseInputAdapter_
 
RCP< Algorithm< Adapter > > algorithm_
 
RCP< ParameterList > params_
 
RCP< const Comm< int > > comm_
 
RCP< Environmentenv_
 
RCP< const EnvironmentenvConst_
 
RCP< TimerManagertimer_
 

Detailed Description

template<typename Adapter>
class Zoltan2::SphynxProblem< Adapter >

Definition at line 135 of file Zoltan2_SphynxProblem.hpp.

Member Typedef Documentation

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::part_t = typename Adapter::part_t

Definition at line 140 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::weight_t = typename Adapter::scalar_t

Definition at line 141 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::scalar_t = double

Definition at line 142 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::lno_t = typename Adapter::lno_t

Definition at line 143 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::gno_t = typename Adapter::gno_t

Definition at line 144 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::node_t = typename Adapter::node_t

Definition at line 145 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
using Zoltan2::SphynxProblem< Adapter >::mvector_t = typename Tpetra::MultiVector<scalar_t, lno_t, gno_t, node_t>

Definition at line 146 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
typedef Adapter::base_adapter_t Zoltan2::SphynxProblem< Adapter >::base_adapter_t

Definition at line 147 of file Zoltan2_SphynxProblem.hpp.

Constructor & Destructor Documentation

template<typename Adapter >
Zoltan2::SphynxProblem< Adapter >::SphynxProblem ( Adapter *  A,
Teuchos::ParameterList *  p,
RCP< Teuchos::ParameterList >  sphynxParams,
const RCP< const Teuchos::Comm< int > > &  comm 
)
inline

Definition at line 154 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
Zoltan2::SphynxProblem< Adapter >::SphynxProblem ( Adapter *  A,
ParameterList *  p,
RCP< Teuchos::ParameterList >  sphynxParams 
)
inline

Definition at line 192 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
Zoltan2::SphynxProblem< Adapter >::~SphynxProblem ( )
inline

Definition at line 197 of file Zoltan2_SphynxProblem.hpp.

Member Function Documentation

template<typename Adapter >
void Zoltan2::SphynxProblem< Adapter >::createAlgorithm ( )
overridevirtual

Reimplemented from Zoltan2::PartitioningProblem< Adapter >.

Definition at line 243 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
void Zoltan2::SphynxProblem< Adapter >::processAlgorithmName ( const std::string &  algorithm,
const std::string &  defString,
const std::string &  model,
Environment env,
bool &  removeSelfEdges,
bool &  isGraphType,
bool &  needConsecutiveGlobalIds 
)
overridevirtual

Reimplemented from Zoltan2::PartitioningProblem< Adapter >.

Definition at line 234 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
Teuchos::RCP< Tpetra::MultiVector< double, typename Adapter::lno_t, typename Adapter::gno_t, typename Adapter::node_t > > Zoltan2::SphynxProblem< Adapter >::getSphynxEigenvectors ( )

Definition at line 277 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
void Zoltan2::SphynxProblem< Adapter >::setUserEigenvectors ( const RCP< mvector_t > &  userEvects)

Definition at line 267 of file Zoltan2_SphynxProblem.hpp.

template<typename Adapter >
const PartitioningSolution<Adapter>& Zoltan2::SphynxProblem< Adapter >::getSolution ( )
inline

Definition at line 214 of file Zoltan2_SphynxProblem.hpp.


The documentation for this class was generated from the following file: