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); } }
internal static void igraph_matrix_destroy(igraph_matrix_t matrix) { if (X86) { igraph_matrix_destroy_x86(matrix); } else { igraph_matrix_destroy_x64(matrix); } }
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); } }
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); } }
private static extern int igraph_matrix_scale_x64([In, Out] igraph_matrix_t matrix, double by);
private static extern int igraph_matrix_transpose_x64([In, Out] igraph_matrix_t matrix);
private static extern void igraph_matrix_fill_x64([In, Out] igraph_matrix_t matrix, double v);
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);
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);
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)); }
private static extern int igraph_matrix_init_x64([In, Out] igraph_matrix_t matrix, int nrow, int ncol);
internal static int igraph_matrix_transpose(igraph_matrix_t matrix) { return(X86 ? igraph_matrix_transpose_x86(matrix) : igraph_matrix_transpose_x64(matrix)); }
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)); }
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)); }
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)); }
private static extern void igraph_matrix_destroy_x64([In, Out] igraph_matrix_t matrix);
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)); }
private static extern double igraph_matrix_e_x64(igraph_matrix_t matrix, int row, int col);
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))); }
private static extern double igraph_matrix_set_x64([In, Out] igraph_matrix_t matrix, int row, int col, double value);
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);
private static extern int igraph_matrix_copy_x64([In, Out] igraph_matrix_t to, igraph_matrix_t from);
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);
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)); }