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

Go to the source code of this file.

Macros

#define tolerance_cg   1e-3
 
#define DFLT_ITERATIONS   200
 
#define DFLT_TOLERANCE   1e-4
 
#define num_pivots_stress   40
 
#define opt_smart_init   0x4
 
#define opt_exp_flag   0x3
 

Functions

int stress_majorization_kD_mkernel (vtx_data *graph, int n, double **coords, node_t **nodes, int dim, int opts, int model, int maxi)
 
float * compute_apsp_packed (vtx_data *graph, int n)
 
float * compute_apsp_artificial_weights_packed (vtx_data *graph, int n)
 
float * circuitModel (vtx_data *graph, int nG)
 
float * mdsModel (vtx_data *graph, int nG)
 
int initLayout (int n, int dim, double **coords, node_t **nodes)
 

Macro Definition Documentation

◆ DFLT_ITERATIONS

#define DFLT_ITERATIONS   200

Definition at line 21 of file stress.h.

◆ DFLT_TOLERANCE

#define DFLT_TOLERANCE   1e-4

Definition at line 23 of file stress.h.

◆ num_pivots_stress

#define num_pivots_stress   40

Definition at line 26 of file stress.h.

◆ opt_exp_flag

#define opt_exp_flag   0x3

Definition at line 29 of file stress.h.

◆ opt_smart_init

#define opt_smart_init   0x4

Definition at line 28 of file stress.h.

◆ tolerance_cg

#define tolerance_cg   1e-3

Definition at line 19 of file stress.h.

Function Documentation

◆ circuitModel()

float * circuitModel ( vtx_data graph,
int  nG 
)
extern

Definition at line 168 of file stress.c.

References free(), free_array(), graph(), gv_calloc(), new_array(), NULL, and solveCircuit().

Referenced by stress_majorization_kD_mkernel().

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

◆ compute_apsp_artificial_weights_packed()

float * compute_apsp_artificial_weights_packed ( vtx_data graph,
int  n 
)
extern

Definition at line 718 of file stress.c.

References common_neighbors(), compute_apsp_packed(), compute_weighted_apsp_packed(), empty_neighbors_vec(), fill_neighbors_vec_unweighted(), free(), graph(), gv_calloc(), nedges, neighbor, and NULL.

Referenced by stress_majorization_kD_mkernel().

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

◆ compute_apsp_packed()

float * compute_apsp_packed ( vtx_data graph,
int  n 
)
extern

Definition at line 700 of file stress.c.

References bfs(), free(), graph(), and gv_calloc().

Referenced by compute_apsp_artificial_weights_packed(), and stress_majorization_kD_mkernel().

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

◆ initLayout()

int initLayout ( int  n,
int  dim,
double **  coords,
node_t **  nodes 
)
extern

Definition at line 130 of file stress.c.

References dim, drand48(), hasPos, isFixed, ND_pos, and orthog1().

Referenced by stress_majorization_kD_mkernel().

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

◆ mdsModel()

float * mdsModel ( vtx_data graph,
int  nG 
)
extern

Definition at line 667 of file stress.c.

References compute_weighted_apsp_packed(), delta, graph(), NULL, and Verbose.

Referenced by stress_majorization_kD_mkernel().

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

◆ stress_majorization_kD_mkernel()

int stress_majorization_kD_mkernel ( vtx_data graph,
int  n,
double **  coords,
node_t **  nodes,
int  dim,
int  opts,
int  model,
int  maxi 
)
extern

Definition at line 801 of file stress.c.

References agerr(), AGPREV, agwarningf(), circuitModel(), compute_apsp_artificial_weights_packed(), compute_apsp_packed(), compute_stressf(), compute_weighted_apsp_packed(), conjugate_gradient_mkernel(), copy_vectorf(), DegType, dim, drand48(), elapsed_sec(), Epsilon, free(), graph(), gv_calloc(), initLayout(), invert_sqrt_vec(), invert_vec(), isFixed, len(), mdsModel(), MODEL_CIRCUIT, MODEL_MDS, MODEL_SUBSET, NULL, num_pivots_stress, opt_exp_flag, opt_smart_init, opts, orthog1(), right_mult_with_vector_ff(), set_vector_valf(), sparse_stress_subspace_majorization_kD(), sqrt_vecf(), square_vec(), start_timer(), tolerance_cg, vectors_inner_productf(), and Verbose.

Referenced by majorization().

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