00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00021
00022 #ifndef STRESS_H
00023 #define STRESS_H
00024
00025 #include "defs.h"
00026
00027 #define tolerance_cg 1e-3
00028
00029 #define DFLT_ITERATIONS 200
00030
00031 #define DFLT_TOLERANCE 1e-4
00032
00033
00034 #define num_pivots_stress 40
00035 #define num_pivots_smart_ini 0
00036 #define num_pivots_no_ini 50
00037
00038
00039
00040
00041
00042
00043 #define neighborhood_radius_unrestricted 4
00044 #define neighborhood_radius_subspace 0
00045
00046
00047
00048
00049 extern int stress_majorization_kD_mkernel(vtx_data * graph,
00050 int n,
00051 int nedges_graph,
00052 double **coords,
00053 int dim,
00054 int smart_ini,
00055 int model,
00056 int maxi
00057 );
00058
00059 extern float *compute_apsp_packed(vtx_data * graph, int n);
00060 extern float *compute_apsp_artifical_weights_packed(vtx_data * graph, int n);
00061 extern float* circuitModel(vtx_data * graph, int nG);
00062 extern int initLayout(vtx_data * graph, int n, int dim, double **coords);
00063
00064 #endif
00065
00066 #ifdef __cplusplus
00067 }
00068 #endif