seams-core v2.14.2
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
iralib_interf.h
Go to the documentation of this file.
1/* Public C API of Iterative Rotations and Assignments / SOFI.
2 * Copyright (c) Miha Gunde and contributors.
3 * Apache-2.0. Upstream: mammasmias/IterativeRotationsAssignments.
4 * Vendored so a build can link libira without the Fortran module path.
5 */
6#ifndef IRALIB_H
7#define IRALIB_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13void libira_cshda(int nat1, int *typ1, double *coords1, int nat2, int *typ2,
14 double *coords2, double thr, int **found, double **dists);
15
16void libira_cshda_from_cost(int n1, int n2, double *cost, int **found,
17 double **dists);
18
19void libira_cshda_pbc(int nat1, int *typ1, double *coords1, int nat2, int *typ2,
20 double *coords2, double *lat2, double thr, int **found,
21 double **dists);
22
23void libira_match(int nat1, int *typ1, double *coords1, int *cand1, int nat2,
24 int *typ2, double *coords2, int *cand2, double km_factor,
25 double **rmat, double **tr, int **perm, double *hd,
26 int *cerr);
27
28void libira_svdrot(int nat1, int *typ1, double *coords1, int nat2, int *typ2,
29 double *coords2, double **rotation, double **translation,
30 int *ierr);
31
32void libira_cshda_svd(int nat1, int *typ1, double *coords1, int nat2, int *typ2,
33 double *coords2, double dthr, int recenter, int **perm,
34 double **dists, double **rmat, double **tr, int *ierr);
35
36void libira_get_version(char *string, long *date);
37
38void libira_compute_all(int nat, int *typ, double *coords, double sym_thr,
39 int prescreen_ih, int *n_mat, double **mat_data,
40 int **perm_data, char **op_data, int **n_data,
41 int **p_data, double **ax_data, double **angle_data,
42 double **dHausdorff_data, char **pg, int *n_prin_ax,
43 double **prin_ax, int *cerr);
44
45void libira_get_symm_ops(int nat, int *typ, double *coords, double sym_thr,
46 int prescreen_ih, int *nmat, double **mat_data,
47 int *cerr);
48
49void libira_get_pg(int n_mat, double *mat_data, char **pg, int *n_prin_ax,
50 double **prin_ax, int verb, int *cerr);
51
52void libira_unique_ax_angle(int nmat, double *mat_data, char **op_data,
53 double **ax_data, double **angle_data, int *cerr);
54
55void libira_analmat(double *mat, char **op, int *n, int *p, double **ax,
56 double *angle, int *cerr);
57
58void libira_get_perm(int nat, int *typ, double *coords, int nmat,
59 double *mat_data, int **perm_data,
60 double **dHausdorff_data);
61
62void libira_get_combos(int nat, int *typ, double *coords, int nmat,
63 double *mat_data, int *nmat_out, double **mat_out,
64 int *cerr);
65
66void libira_try_mat(int nat, int *typ, double *coords, double *rmat, double *dh,
67 int **perm);
68
69void libira_construct_operation(char *op, double *axis, double angle,
70 double **rmat, int *cerr);
71
72void libira_mat_combos(int nmat, double *mat_data, int *nmat_out,
73 double **mat_out);
74
75void libira_ext_bfield(int nmat, double *mat_data, double *b_vec, int *nmat_out,
76 double **mat_out);
77
78void libira_get_err_msg(int ierr, char **msg);
79
80void libira_matrix_distance(const double *mat1, const double *mat2,
81 double *dist);
82
83void libira_check_collinear(int nat, double *coords, int *collinear,
84 double **ax);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif
void libira_matrix_distance(const double *mat1, const double *mat2, double *dist)
void libira_try_mat(int nat, int *typ, double *coords, double *rmat, double *dh, int **perm)
void libira_cshda_pbc(int nat1, int *typ1, double *coords1, int nat2, int *typ2, double *coords2, double *lat2, double thr, int **found, double **dists)
void libira_get_combos(int nat, int *typ, double *coords, int nmat, double *mat_data, int *nmat_out, double **mat_out, int *cerr)
void libira_compute_all(int nat, int *typ, double *coords, double sym_thr, int prescreen_ih, int *n_mat, double **mat_data, int **perm_data, char **op_data, int **n_data, int **p_data, double **ax_data, double **angle_data, double **dHausdorff_data, char **pg, int *n_prin_ax, double **prin_ax, int *cerr)
void libira_check_collinear(int nat, double *coords, int *collinear, double **ax)
void libira_unique_ax_angle(int nmat, double *mat_data, char **op_data, double **ax_data, double **angle_data, int *cerr)
void libira_get_symm_ops(int nat, int *typ, double *coords, double sym_thr, int prescreen_ih, int *nmat, double **mat_data, int *cerr)
void libira_analmat(double *mat, char **op, int *n, int *p, double **ax, double *angle, int *cerr)
void libira_match(int nat1, int *typ1, double *coords1, int *cand1, int nat2, int *typ2, double *coords2, int *cand2, double km_factor, double **rmat, double **tr, int **perm, double *hd, int *cerr)
void libira_get_version(char *string, long *date)
void libira_get_perm(int nat, int *typ, double *coords, int nmat, double *mat_data, int **perm_data, double **dHausdorff_data)
void libira_get_err_msg(int ierr, char **msg)
void libira_svdrot(int nat1, int *typ1, double *coords1, int nat2, int *typ2, double *coords2, double **rotation, double **translation, int *ierr)
void libira_cshda(int nat1, int *typ1, double *coords1, int nat2, int *typ2, double *coords2, double thr, int **found, double **dists)
void libira_construct_operation(char *op, double *axis, double angle, double **rmat, int *cerr)
void libira_get_pg(int n_mat, double *mat_data, char **pg, int *n_prin_ax, double **prin_ax, int verb, int *cerr)
void libira_cshda_from_cost(int n1, int n2, double *cost, int **found, double **dists)
void libira_ext_bfield(int nmat, double *mat_data, double *b_vec, int *nmat_out, double **mat_out)
void libira_cshda_svd(int nat1, int *typ1, double *coords1, int nat2, int *typ2, double *coords2, double dthr, int recenter, int **perm, double **dists, double **rmat, double **tr, int *ierr)
void libira_mat_combos(int nmat, double *mat_data, int *nmat_out, double **mat_out)