Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
power.c File Reference
#include <cgraph/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().