Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
Multilevel.h File Reference
#include <sparse/SparseMatrix.h>
#include <stdbool.h>
Include dependency graph for Multilevel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Multilevel_struct
 
struct  Multilevel_control
 

Macros

#define Multilevel_is_finest(grid)   (!((grid)->prev))
 
#define Multilevel_is_coarsest(grid)   (!((grid)->next))
 

Typedefs

typedef struct Multilevel_structMultilevel
 

Enumerations

enum  { MAX_CLUSTER_SIZE = 4 }
 

Functions

void Multilevel_delete (Multilevel grid)
 
Multilevel Multilevel_new (SparseMatrix A, const Multilevel_control ctrl)
 
Multilevel Multilevel_get_coarsest (Multilevel grid)
 
void print_padding (int n)
 

Macro Definition Documentation

◆ Multilevel_is_coarsest

#define Multilevel_is_coarsest (   grid)    (!((grid)->next))

Definition at line 44 of file Multilevel.h.

◆ Multilevel_is_finest

#define Multilevel_is_finest (   grid)    (!((grid)->prev))

Definition at line 43 of file Multilevel.h.

Typedef Documentation

◆ Multilevel

typedef struct Multilevel_struct* Multilevel

Definition at line 16 of file Multilevel.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_CLUSTER_SIZE 

Definition at line 29 of file Multilevel.h.

Function Documentation

◆ Multilevel_delete()

void Multilevel_delete ( Multilevel  grid)

Definition at line 36 of file Multilevel.c.

References free(), grid, Multilevel_delete(), and SparseMatrix_delete().

Referenced by Multilevel_delete(), and multilevel_spring_electrical_embedding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Multilevel_get_coarsest()

Multilevel Multilevel_get_coarsest ( Multilevel  grid)

Definition at line 297 of file Multilevel.c.

References grid, and Multilevel_struct::next.

Referenced by multilevel_spring_electrical_embedding().

Here is the caller graph for this function:

◆ Multilevel_new()

Multilevel Multilevel_new ( SparseMatrix  A,
const Multilevel_control  ctrl 
)

Definition at line 281 of file Multilevel.c.

References A, grid, MATRIX_TYPE_REAL, Multilevel_establish(), Multilevel_init(), SparseMatrix_get_real_adjacency_matrix_symmetrized(), and SparseMatrix_is_symmetric().

Referenced by multilevel_spring_electrical_embedding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_padding()

void print_padding ( int  n)

Definition at line 240 of file Multilevel.c.

Referenced by Multilevel_establish(), and multilevel_spring_electrical_embedding().

Here is the caller graph for this function: