Chi-Tech
chi::LinearGraphPartitioner Class Reference

#include <LinearGraphPartitioner.h>

Inheritance diagram for chi::LinearGraphPartitioner:
chi::GraphPartitioner ChiObject

Public Member Functions

 LinearGraphPartitioner (const InputParameters &params)
 
std::vector< int64_t > Partition (const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > &centroids, int number_of_parts) override
 
virtual std::vector< int64_t > Partition (const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > &centroids, int number_of_parts)=0
 
- Public Member Functions inherited from ChiObject
 ChiObject ()
 
 ChiObject (const chi::InputParameters &params)
 
void SetStackID (size_t stack_id)
 
size_t StackID () const
 
virtual void PushOntoStack (std::shared_ptr< ChiObject > &new_object)
 
virtual ~ChiObject ()=default
 

Static Public Member Functions

static InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from ChiObject
static chi::InputParameters GetInputParameters ()
 

Protected Attributes

const int all_to_rank_
 

Additional Inherited Members

- Protected Member Functions inherited from chi::GraphPartitioner
 GraphPartitioner (const InputParameters &params)
 
- Static Protected Member Functions inherited from chi::GraphPartitioner
static InputParameters GetInputParameters ()
 

Detailed Description

Definition at line 9 of file LinearGraphPartitioner.h.

Constructor & Destructor Documentation

◆ LinearGraphPartitioner()

chi::LinearGraphPartitioner::LinearGraphPartitioner ( const InputParameters params)
explicit

Definition at line 37 of file LinearGraphPartitioner.cc.

Member Function Documentation

◆ GetInputParameters()

InputParameters chi::LinearGraphPartitioner::GetInputParameters ( )
static

Definition at line 15 of file LinearGraphPartitioner.cc.

◆ Partition()

std::vector< int64_t > chi::LinearGraphPartitioner::Partition ( const std::vector< std::vector< uint64_t > > &  graph,
const std::vector< chi_mesh::Vector3 > &  centroids,
int  number_of_parts 
)
overridevirtual

Given a graph. Returns the partition ids of each row in the graph.

Implements chi::GraphPartitioner.

Definition at line 44 of file LinearGraphPartitioner.cc.

Field Documentation

◆ all_to_rank_

const int chi::LinearGraphPartitioner::all_to_rank_
protected

Definition at line 21 of file LinearGraphPartitioner.h.


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