|
Graphviz 14.0.3~dev.20251029.0425
|
#include <stdlib.h>#include <stdio.h>#include <math.h>#include <string.h>#include <assert.h>#include <util/exit.h>#include "cgraph.h"#include "globals.h"#include "arith.h"Go to the source code of this file.
Macros | |
| #define | MACHINEACC 1.0e-16 |
| #define | SQRT_MACHINEACC 1.0e-8 |
| #define | MINDIST 1.e-15 |
Enumerations | |
| enum | { UNMATCHED = -1 } |
Functions | |
| double | drand (void) |
| double * | vector_subtract_to (int n, double *x, double *y) |
| double | vector_product (int n, double *x, double *y) |
| double * | vector_saxpy (int n, double *x, double *y, double beta) |
| double * | vector_saxpy2 (int n, double *x, double *y, double beta) |
| void | vector_float_take (int n, float *v, int m, int *p, float **u) |
| void | vector_ordering (int n, double *v, int **p) |
| void | vector_sort_int (int n, int *v) |
| double | distance (double *x, int dim, int i, int j) |
| double | distance_cropped (double *x, int dim, int i, int j) |
| double | point_distance (double *p1, double *p2, int dim) |
| char * | strip_dir (char *s) |
| double distance | ( | double * | x, |
| int | dim, | ||
| int | i, | ||
| int | j | ||
| ) |
Definition at line 121 of file general.c.
Referenced by beautify_leaves(), dist_from_foci(), distance_cropped(), distance_to_group(), furtherest_point_in_list(), get_stress(), ideal_distance_matrix(), LIST(), makeDotGraph(), SparseStressMajorizationSmoother_new(), spring_electrical_embedding(), spring_electrical_embedding_fast(), spring_electrical_embedding_slow(), spring_electrical_spring_embedding(), SpringSmoother_new(), StressMajorizationSmoother2_new(), StressMajorizationSmoother_smooth(), and TriangleSmoother_new().
| double distance_cropped | ( | double * | x, |
| int | dim, | ||
| int | i, | ||
| int | j | ||
| ) |
|
extern |
Definition at line 22 of file general.c.
Referenced by make_map_from_rectangle_groups(), make_map_internal(), node_distinct_coloring_internal2(), power_method(), prolongate(), SparseStressMajorizationSmoother_new(), spring_electrical_embedding(), spring_electrical_embedding_fast(), spring_electrical_embedding_slow(), spring_electrical_spring_embedding(), and StressMajorizationSmoother_smooth().
| double point_distance | ( | double * | p1, |
| double * | p2, | ||
| int | dim | ||
| ) |
| char * strip_dir | ( | char * | s | ) |
Definition at line 137 of file general.c.
Referenced by makeDotGraph().
| void vector_float_take | ( | int | n, |
| float * | v, | ||
| int | m, | ||
| int * | p, | ||
| float ** | u | ||
| ) |
Definition at line 53 of file general.c.
References gv_calloc().
Referenced by map_optimal_coloring().
| void vector_ordering | ( | int | n, |
| double * | v, | ||
| int ** | p | ||
| ) |
Definition at line 91 of file general.c.
References comp_ascend(), free(), and gv_calloc().
Referenced by country_graph_coloring().
| double vector_product | ( | int | n, |
| double * | x, | ||
| double * | y | ||
| ) |
Definition at line 32 of file general.c.
Referenced by conjugate_gradient(), power_method(), and StressMajorizationSmoother_smooth().
| double * vector_saxpy | ( | int | n, |
| double * | x, | ||
| double * | y, | ||
| double | beta | ||
| ) |
Definition at line 39 of file general.c.
Referenced by conjugate_gradient().
| double * vector_saxpy2 | ( | int | n, |
| double * | x, | ||
| double * | y, | ||
| double | beta | ||
| ) |
Definition at line 46 of file general.c.
Referenced by conjugate_gradient().
| void vector_sort_int | ( | int | n, |
| int * | v | ||
| ) |
Definition at line 112 of file general.c.
References comp_ascend_int().
Referenced by ink().
| double * vector_subtract_to | ( | int | n, |
| double * | x, | ||
| double * | y | ||
| ) |
Definition at line 26 of file general.c.
Referenced by conjugate_gradient().