Exemple #1
0
 internal static void igraph_matrix_scale(igraph_matrix_t matrix, double by)
 {
     if (X86)
     {
         igraph_matrix_scale_x86(matrix, by);
     }
     else
     {
         igraph_matrix_scale_x64(matrix, by);
     }
 }
Exemple #2
0
 internal static void igraph_matrix_destroy(igraph_matrix_t matrix)
 {
     if (X86)
     {
         igraph_matrix_destroy_x86(matrix);
     }
     else
     {
         igraph_matrix_destroy_x64(matrix);
     }
 }
Exemple #3
0
 internal static void igraph_matrix_fill(igraph_matrix_t matrix, double v)
 {
     if (X86)
     {
         igraph_matrix_fill_x86(matrix, v);
     }
     else
     {
         igraph_matrix_fill_x64(matrix, v);
     }
 }
Exemple #4
0
 internal static void igraph_matrix_set(igraph_matrix_t matrix, int row, int col, double value)
 {
     if (X86)
     {
         igraph_matrix_set_x86(matrix, row, col, value);
     }
     else
     {
         igraph_matrix_set_x64(matrix, row, col, value);
     }
 }
Exemple #5
0
 private static extern int igraph_matrix_scale_x64([In, Out] igraph_matrix_t matrix, double by);
Exemple #6
0
 private static extern int igraph_matrix_transpose_x64([In, Out] igraph_matrix_t matrix);
Exemple #7
0
 private static extern void igraph_matrix_fill_x64([In, Out] igraph_matrix_t matrix, double v);
Exemple #8
0
 private static extern int igraph_layout_davidson_harel_x64(igraph_t graph, [In, Out] igraph_matrix_t res, bool use_seed, int maxiter, int fineiter, double cool_fact, double weight_node_dist, double weight_border, double weight_edge_lengths, double weight_edge_crossings, double weight_node_edge_dist);
Exemple #9
0
 private static extern int igraph_layout_fruchterman_reingold_x64(igraph_t graph, [In, Out] igraph_matrix_t res, bool use_seed, int niter, double start_temp, igraph_layout_grid_t grid, igraph_vector_t weights, igraph_vector_t minx, igraph_vector_t maxx, igraph_vector_t miny, igraph_vector_t maxy);
Exemple #10
0
 internal static int igraph_layout_davidson_harel(igraph_t graph, igraph_matrix_t res, bool use_seed, int maxiter, int fineiter, double cool_fact, double weight_node_dist, double weight_border, double weight_edge_lengths, double weight_edge_crossings, double weight_node_edge_dist)
 {
     return(X86 ? igraph_layout_davidson_harel_x86(graph, res, use_seed, maxiter, fineiter, cool_fact, weight_node_dist, weight_border, weight_edge_lengths, weight_edge_crossings, weight_node_edge_dist) : igraph_layout_davidson_harel_x64(graph, res, use_seed, maxiter, fineiter, cool_fact, weight_node_dist, weight_border, weight_edge_lengths, weight_edge_crossings, weight_node_edge_dist));
 }
Exemple #11
0
 private static extern int igraph_matrix_init_x64([In, Out] igraph_matrix_t matrix, int nrow, int ncol);
Exemple #12
0
 internal static int igraph_matrix_transpose(igraph_matrix_t matrix)
 {
     return(X86 ? igraph_matrix_transpose_x86(matrix) : igraph_matrix_transpose_x64(matrix));
 }
Exemple #13
0
 internal static double igraph_matrix_e(igraph_matrix_t matrix, int row, int col)
 {
     return(X86 ? igraph_matrix_e_x86(matrix, row, col) : igraph_matrix_e_x64(matrix, row, col));
 }
Exemple #14
0
 internal static int igraph_matrix_copy(igraph_matrix_t to, igraph_matrix_t from)
 {
     return(X86 ? igraph_matrix_copy_x86(to, from) : igraph_matrix_copy_x64(to, from));
 }
Exemple #15
0
 internal static int igraph_layout_fruchterman_reingold(igraph_t graph, igraph_matrix_t res, bool use_seed, int niter, double start_temp, igraph_layout_grid_t grid, igraph_vector_t weights, igraph_vector_t minx, igraph_vector_t maxx, igraph_vector_t miny, igraph_vector_t maxy)
 {
     return(X86 ? igraph_layout_fruchterman_reingold_x86(graph, res, use_seed, niter, start_temp, grid, weights, minx, maxx, miny, maxy) : igraph_layout_fruchterman_reingold_x64(graph, res, use_seed, niter, start_temp, grid, weights, minx, maxx, miny, maxy));
 }
Exemple #16
0
 private static extern void igraph_matrix_destroy_x64([In, Out] igraph_matrix_t matrix);
Exemple #17
0
 internal static int igraph_layout_kamada_kawai(igraph_t graph, igraph_matrix_t res, bool use_seed, int maxiter, double epsilon, double kkconst, igraph_vector_t weights, igraph_vector_t minx, igraph_vector_t maxx, igraph_vector_t miny, igraph_vector_t maxy)
 {
     return(X86 ? igraph_layout_kamada_kawai_x86(graph, res, use_seed, maxiter, epsilon, kkconst, weights, minx, maxx, miny, maxy) : igraph_layout_kamada_kawai_x64(graph, res, use_seed, maxiter, epsilon, kkconst, weights, minx, maxx, miny, maxy));
 }
Exemple #18
0
 private static extern double igraph_matrix_e_x64(igraph_matrix_t matrix, int row, int col);
Exemple #19
0
 internal static int igraph_layout_mds(igraph_t graph, igraph_matrix_t res, igraph_matrix_t dist = null, int dim = 2)
 {
     return(MarshalIfExistsAndCall(GetDefaultArpackOptions(), ptr => X86 ? igraph_layout_mds_x86(graph, res, dist, dim, ptr) : igraph_layout_mds_x64(graph, res, dist, dim, ptr)));
 }
Exemple #20
0
 private static extern double igraph_matrix_set_x64([In, Out] igraph_matrix_t matrix, int row, int col, double value);
Exemple #21
0
 private static extern int igraph_layout_kamada_kawai_x64(igraph_t graph, [In, Out] igraph_matrix_t res, bool use_seed, int maxiter, double epsilon, double kkconst, igraph_vector_t weights, igraph_vector_t minx, igraph_vector_t maxx, igraph_vector_t miny, igraph_vector_t maxy);
Exemple #22
0
 private static extern int igraph_matrix_copy_x64([In, Out] igraph_matrix_t to, igraph_matrix_t from);
Exemple #23
0
 private static extern int igraph_layout_mds_x64(igraph_t graph, [In, Out] igraph_matrix_t res, igraph_matrix_t dist, int dim, IntPtr options);
Exemple #24
0
 internal static int igraph_matrix_init(igraph_matrix_t matrix, int nrows, int ncols)
 {
     return(X86 ? igraph_matrix_init_x86(matrix, nrows, ncols) : igraph_matrix_init_x64(matrix, nrows, ncols));
 }