forked from devpouya/FastSpectralClustering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
construct_graph.h
executable file
·22 lines (19 loc) · 1.41 KB
/
construct_graph.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _CONSTRUCT_GRAPH_H
#define _CONSTRUCT_GRAPH_H
#define EPS 2
void construct_fully_connected_matrix(double *points, int lines, int dim, double *ret);
void construct_eps_neighborhood_matrix(double *points, int lines, int dim, double *ret);
void construct_normalized_laplacian_sym_matrix(double *weighted_adj_matrix, int num_points, double *ret);
void construct_normalized_laplacian_rw_matrix(double *weighted_adj_matrix, int num_points, double *ret);
void construct_unnormalized_laplacian(double *graph, int n, double *ret);
void construct_knn_matrix(double *points, int lines, int dim, int k, double *ret);
void oneshot_unnormalized_laplacian(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_lowdim(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_lowdim_blocked(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_lowdim_vec_blocked(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_blocked_vec(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_blocked(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_base(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_vec(double *points, int n, int dim, double *ret);
void oneshot_unnormalized_laplacian_vec_blocked(double *points, int n, int dim, double *ret);
#endif