Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 5
0
 private static extern int igraph_matrix_scale_x64([In, Out] igraph_matrix_t matrix, double by);
Ejemplo n.º 6
0
 private static extern int igraph_matrix_transpose_x64([In, Out] igraph_matrix_t matrix);
Ejemplo n.º 7
0
 private static extern void igraph_matrix_fill_x64([In, Out] igraph_matrix_t matrix, double v);
Ejemplo n.º 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);
Ejemplo n.º 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);
Ejemplo n.º 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));
 }
Ejemplo n.º 11
0
 private static extern int igraph_matrix_init_x64([In, Out] igraph_matrix_t matrix, int nrow, int ncol);
Ejemplo n.º 12
0
 internal static int igraph_matrix_transpose(igraph_matrix_t matrix)
 {
     return(X86 ? igraph_matrix_transpose_x86(matrix) : igraph_matrix_transpose_x64(matrix));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 16
0
 private static extern void igraph_matrix_destroy_x64([In, Out] igraph_matrix_t matrix);
Ejemplo n.º 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));
 }
Ejemplo n.º 18
0
 private static extern double igraph_matrix_e_x64(igraph_matrix_t matrix, int row, int col);
Ejemplo n.º 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)));
 }
Ejemplo n.º 20
0
 private static extern double igraph_matrix_set_x64([In, Out] igraph_matrix_t matrix, int row, int col, double value);
Ejemplo n.º 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);
Ejemplo n.º 22
0
 private static extern int igraph_matrix_copy_x64([In, Out] igraph_matrix_t to, igraph_matrix_t from);
Ejemplo n.º 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);
Ejemplo n.º 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));
 }