pub type size_t = ::std::os::raw::c_ulong;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
pub __bindgen_padding_0: u64,
pub __clang_max_align_nonce2: u128,
}
#[test]
fn bindgen_test_layout_max_align_t() {
assert_eq!(
::std::mem::size_of::<max_align_t>(),
32usize,
concat!("Size of: ", stringify!(max_align_t))
);
assert_eq!(
::std::mem::align_of::<max_align_t>(),
16usize,
concat!("Alignment of ", stringify!(max_align_t))
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
},
0usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce1)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
},
16usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce2)
)
);
}
pub const SpglibError_SPGLIB_SUCCESS: SpglibError = 0;
pub const SpglibError_SPGERR_SPACEGROUP_SEARCH_FAILED: SpglibError = 1;
pub const SpglibError_SPGERR_CELL_STANDARDIZATION_FAILED: SpglibError = 2;
pub const SpglibError_SPGERR_SYMMETRY_OPERATION_SEARCH_FAILED: SpglibError = 3;
pub const SpglibError_SPGERR_ATOMS_TOO_CLOSE: SpglibError = 4;
pub const SpglibError_SPGERR_POINTGROUP_NOT_FOUND: SpglibError = 5;
pub const SpglibError_SPGERR_NIGGLI_FAILED: SpglibError = 6;
pub const SpglibError_SPGERR_DELAUNAY_FAILED: SpglibError = 7;
pub const SpglibError_SPGERR_ARRAY_SIZE_SHORTAGE: SpglibError = 8;
pub const SpglibError_SPGERR_NONE: SpglibError = 9;
pub type SpglibError = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SpglibDataset {
pub spacegroup_number: ::std::os::raw::c_int,
pub hall_number: ::std::os::raw::c_int,
pub international_symbol: [::std::os::raw::c_char; 11usize],
pub hall_symbol: [::std::os::raw::c_char; 17usize],
pub choice: [::std::os::raw::c_char; 6usize],
pub transformation_matrix: [[f64; 3usize]; 3usize],
pub origin_shift: [f64; 3usize],
pub n_operations: ::std::os::raw::c_int,
pub rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
pub translations: *mut [f64; 3usize],
pub n_atoms: ::std::os::raw::c_int,
pub wyckoffs: *mut ::std::os::raw::c_int,
pub site_symmetry_symbols: *mut [::std::os::raw::c_char; 7usize],
pub equivalent_atoms: *mut ::std::os::raw::c_int,
pub crystallographic_orbits: *mut ::std::os::raw::c_int,
pub primitive_lattice: [[f64; 3usize]; 3usize],
pub mapping_to_primitive: *mut ::std::os::raw::c_int,
pub n_std_atoms: ::std::os::raw::c_int,
pub std_lattice: [[f64; 3usize]; 3usize],
pub std_types: *mut ::std::os::raw::c_int,
pub std_positions: *mut [f64; 3usize],
pub std_rotation_matrix: [[f64; 3usize]; 3usize],
pub std_mapping_to_primitive: *mut ::std::os::raw::c_int,
pub pointgroup_symbol: [::std::os::raw::c_char; 6usize],
}
#[test]
fn bindgen_test_layout_SpglibDataset() {
assert_eq!(
::std::mem::size_of::<SpglibDataset>(),
472usize,
concat!("Size of: ", stringify!(SpglibDataset))
);
assert_eq!(
::std::mem::align_of::<SpglibDataset>(),
8usize,
concat!("Alignment of ", stringify!(SpglibDataset))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).spacegroup_number as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(spacegroup_number)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).hall_number as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(hall_number)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).international_symbol as *const _ as usize
},
8usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(international_symbol)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).hall_symbol as *const _ as usize },
19usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(hall_symbol)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).choice as *const _ as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(choice)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).transformation_matrix as *const _ as usize
},
48usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(transformation_matrix)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).origin_shift as *const _ as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(origin_shift)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).n_operations as *const _ as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(n_operations)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).rotations as *const _ as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(rotations)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).translations as *const _ as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(translations)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).n_atoms as *const _ as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(n_atoms)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).wyckoffs as *const _ as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(wyckoffs)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).site_symmetry_symbols as *const _ as usize
},
184usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(site_symmetry_symbols)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).equivalent_atoms as *const _ as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(equivalent_atoms)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).crystallographic_orbits as *const _ as usize
},
200usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(crystallographic_orbits)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).primitive_lattice as *const _ as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(primitive_lattice)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).mapping_to_primitive as *const _ as usize
},
280usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(mapping_to_primitive)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).n_std_atoms as *const _ as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(n_std_atoms)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).std_lattice as *const _ as usize },
296usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(std_lattice)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).std_types as *const _ as usize },
368usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(std_types)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).std_positions as *const _ as usize },
376usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(std_positions)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).std_rotation_matrix as *const _ as usize
},
384usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(std_rotation_matrix)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibDataset>())).std_mapping_to_primitive as *const _ as usize
},
456usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(std_mapping_to_primitive)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibDataset>())).pointgroup_symbol as *const _ as usize },
464usize,
concat!(
"Offset of field: ",
stringify!(SpglibDataset),
"::",
stringify!(pointgroup_symbol)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SpglibSpacegroupType {
pub number: ::std::os::raw::c_int,
pub international_short: [::std::os::raw::c_char; 11usize],
pub international_full: [::std::os::raw::c_char; 20usize],
pub international: [::std::os::raw::c_char; 32usize],
pub schoenflies: [::std::os::raw::c_char; 7usize],
pub hall_symbol: [::std::os::raw::c_char; 17usize],
pub choice: [::std::os::raw::c_char; 6usize],
pub pointgroup_international: [::std::os::raw::c_char; 6usize],
pub pointgroup_schoenflies: [::std::os::raw::c_char; 4usize],
pub arithmetic_crystal_class_number: ::std::os::raw::c_int,
pub arithmetic_crystal_class_symbol: [::std::os::raw::c_char; 7usize],
}
#[test]
fn bindgen_test_layout_SpglibSpacegroupType() {
assert_eq!(
::std::mem::size_of::<SpglibSpacegroupType>(),
120usize,
concat!("Size of: ", stringify!(SpglibSpacegroupType))
);
assert_eq!(
::std::mem::align_of::<SpglibSpacegroupType>(),
4usize,
concat!("Alignment of ", stringify!(SpglibSpacegroupType))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibSpacegroupType>())).number as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(number)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).international_short as *const _
as usize
},
4usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(international_short)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).international_full as *const _ as usize
},
15usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(international_full)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).international as *const _ as usize
},
35usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(international)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).schoenflies as *const _ as usize
},
67usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(schoenflies)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).hall_symbol as *const _ as usize
},
74usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(hall_symbol)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SpglibSpacegroupType>())).choice as *const _ as usize },
91usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(choice)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).pointgroup_international as *const _
as usize
},
97usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(pointgroup_international)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).pointgroup_schoenflies as *const _
as usize
},
103usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(pointgroup_schoenflies)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).arithmetic_crystal_class_number
as *const _ as usize
},
108usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(arithmetic_crystal_class_number)
)
);
assert_eq!(
unsafe {
&(*(::std::ptr::null::<SpglibSpacegroupType>())).arithmetic_crystal_class_symbol
as *const _ as usize
},
112usize,
concat!(
"Offset of field: ",
stringify!(SpglibSpacegroupType),
"::",
stringify!(arithmetic_crystal_class_symbol)
)
);
}
extern "C" {
pub fn spg_get_major_version() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_minor_version() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_micro_version() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_error_code() -> SpglibError;
}
extern "C" {
pub fn spg_get_error_message(spglib_error: SpglibError) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn spg_get_dataset(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> *mut SpglibDataset;
}
extern "C" {
pub fn spgat_get_dataset(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> *mut SpglibDataset;
}
extern "C" {
pub fn spg_get_dataset_with_hall_number(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
hall_number: ::std::os::raw::c_int,
symprec: f64,
) -> *mut SpglibDataset;
}
extern "C" {
pub fn spgat_get_dataset_with_hall_number(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
hall_number: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> *mut SpglibDataset;
}
extern "C" {
pub fn spg_free_dataset(dataset: *mut SpglibDataset);
}
extern "C" {
pub fn spg_get_symmetry(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
max_size: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_get_symmetry(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
max_size: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_symmetry_with_collinear_spin(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
equivalent_atoms: *mut ::std::os::raw::c_int,
max_size: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
spins: *const f64,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_get_symmetry_with_collinear_spin(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
equivalent_atoms: *mut ::std::os::raw::c_int,
max_size: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
spins: *const f64,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_symmetry_with_site_tensors(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
equivalent_atoms: *mut ::std::os::raw::c_int,
primitive_lattice: *mut [f64; 3usize],
spin_flips: *mut ::std::os::raw::c_int,
num_operations: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
tensors: *const f64,
tensor_rank: ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
is_magnetic: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_get_symmetry_with_site_tensors(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
equivalent_atoms: *mut ::std::os::raw::c_int,
primitive_lattice: *mut [f64; 3usize],
spin_flips: *mut ::std::os::raw::c_int,
num_operations: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
tensors: *const f64,
tensor_rank: ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
is_magnetic: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_hall_number_from_symmetry(
rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translation: *mut [f64; 3usize],
num_operations: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_multiplicity(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_get_multiplicity(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_international(
symbol: *mut ::std::os::raw::c_char,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_get_international(
symbol: *mut ::std::os::raw::c_char,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_schoenflies(
symbol: *mut ::std::os::raw::c_char,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_get_schoenflies(
symbol: *mut ::std::os::raw::c_char,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_pointgroup(
symbol: *mut ::std::os::raw::c_char,
trans_mat: *mut [::std::os::raw::c_int; 3usize],
rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
num_rotations: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_symmetry_from_database(
rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
translations: *mut [f64; 3usize],
hall_number: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_spacegroup_type(hall_number: ::std::os::raw::c_int) -> SpglibSpacegroupType;
}
extern "C" {
pub fn spg_standardize_cell(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *mut ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
to_primitive: ::std::os::raw::c_int,
no_idealize: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_standardize_cell(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *mut ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
to_primitive: ::std::os::raw::c_int,
no_idealize: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_find_primitive(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *mut ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_find_primitive(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *mut ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_refine_cell(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *mut ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spgat_refine_cell(
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *mut ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
angle_tolerance: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_delaunay_reduce(lattice: *mut [f64; 3usize], symprec: f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_grid_point_from_address(
grid_address: *const ::std::os::raw::c_int,
mesh: *const ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_dense_grid_point_from_address(
grid_address: *const ::std::os::raw::c_int,
mesh: *const ::std::os::raw::c_int,
) -> size_t;
}
extern "C" {
pub fn spg_get_ir_reciprocal_mesh(
grid_address: *mut [::std::os::raw::c_int; 3usize],
ir_mapping_table: *mut ::std::os::raw::c_int,
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
is_time_reversal: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_dense_ir_reciprocal_mesh(
grid_address: *mut [::std::os::raw::c_int; 3usize],
ir_mapping_table: *mut size_t,
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
is_time_reversal: ::std::os::raw::c_int,
lattice: *mut [f64; 3usize],
position: *mut [f64; 3usize],
types: *const ::std::os::raw::c_int,
num_atom: ::std::os::raw::c_int,
symprec: f64,
) -> size_t;
}
extern "C" {
pub fn spg_get_stabilized_reciprocal_mesh(
grid_address: *mut [::std::os::raw::c_int; 3usize],
ir_mapping_table: *mut ::std::os::raw::c_int,
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
is_time_reversal: ::std::os::raw::c_int,
num_rot: ::std::os::raw::c_int,
rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
num_q: ::std::os::raw::c_int,
qpoints: *mut [f64; 3usize],
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_get_dense_stabilized_reciprocal_mesh(
grid_address: *mut [::std::os::raw::c_int; 3usize],
ir_mapping_table: *mut size_t,
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
is_time_reversal: ::std::os::raw::c_int,
num_rot: ::std::os::raw::c_int,
rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
num_q: ::std::os::raw::c_int,
qpoints: *mut [f64; 3usize],
) -> size_t;
}
extern "C" {
pub fn spg_get_grid_points_by_rotations(
rot_grid_points: *mut ::std::os::raw::c_int,
address_orig: *const ::std::os::raw::c_int,
num_rot: ::std::os::raw::c_int,
rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
);
}
extern "C" {
pub fn spg_get_dense_grid_points_by_rotations(
rot_grid_points: *mut size_t,
address_orig: *const ::std::os::raw::c_int,
num_rot: ::std::os::raw::c_int,
rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
);
}
extern "C" {
pub fn spg_get_BZ_grid_points_by_rotations(
rot_grid_points: *mut ::std::os::raw::c_int,
address_orig: *const ::std::os::raw::c_int,
num_rot: ::std::os::raw::c_int,
rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
bz_map: *const ::std::os::raw::c_int,
);
}
extern "C" {
pub fn spg_get_dense_BZ_grid_points_by_rotations(
rot_grid_points: *mut size_t,
address_orig: *const ::std::os::raw::c_int,
num_rot: ::std::os::raw::c_int,
rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
mesh: *const ::std::os::raw::c_int,
is_shift: *const ::std::os::raw::c_int,
bz_map: *const size_t,
);
}
extern "C" {
pub fn spg_relocate_BZ_grid_address(
bz_grid_address: *mut [::std::os::raw::c_int; 3usize],
bz_map: *mut ::std::os::raw::c_int,
grid_address: *mut [::std::os::raw::c_int; 3usize],
mesh: *const ::std::os::raw::c_int,
rec_lattice: *mut [f64; 3usize],
is_shift: *const ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn spg_relocate_dense_BZ_grid_address(
bz_grid_address: *mut [::std::os::raw::c_int; 3usize],
bz_map: *mut size_t,
grid_address: *mut [::std::os::raw::c_int; 3usize],
mesh: *const ::std::os::raw::c_int,
rec_lattice: *mut [f64; 3usize],
is_shift: *const ::std::os::raw::c_int,
) -> size_t;
}
extern "C" {
pub fn spg_niggli_reduce(lattice: *mut [f64; 3usize], symprec: f64) -> ::std::os::raw::c_int;
}