Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
power.c File Reference
#include <util/alloc.h>
#include "power.h"
#include <sparse/SparseMatrix.h>
Include dependency graph for power.c:

Go to the source code of this file.

Functions

double * power_method (void *A, int n, int random_seed)
 

Variables

static const int maxit = 100
 
static const double tolerance = 0.00001
 

Function Documentation

◆ power_method()

double * power_method ( void *  A,
int  n,
int  random_seed 
)

Definition at line 21 of file power.c.

References A, drand(), free(), gv_calloc(), maxit, SparseMatrix_multiply_vector(), tolerance, and vector_product().

Referenced by country_graph_coloring().

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

Variable Documentation

◆ maxit

const int maxit = 100
static

◆ tolerance

const double tolerance = 0.00001
static

Definition at line 19 of file power.c.

Referenced by power_method().