1#![allow(non_camel_case_types)]
2
3use crate::deps::*;
6use crate::flint::*;
7use crate::fq_nmod::{fq_nmod_ctx_struct, fq_nmod_struct};
8use crate::nmod_poly::nmod_poly_struct;
9use libc::{c_int, FILE};
10
11extern "C" {
12 pub fn _fq_nmod_vec_init(
13 len: mp_limb_signed_t,
14 ctx: *mut fq_nmod_ctx_struct,
15 ) -> *mut fq_nmod_struct;
16 pub fn _fq_nmod_vec_clear(
17 vec: *mut fq_nmod_struct,
18 len: mp_limb_signed_t,
19 ctx: *mut fq_nmod_ctx_struct,
20 );
21 pub fn _fq_nmod_vec_randtest(
22 f: *mut fq_nmod_struct,
23 state: *mut flint_rand_s,
24 len: mp_limb_signed_t,
25 ctx: *mut fq_nmod_ctx_struct,
26 );
27 pub fn _fq_nmod_vec_fprint(
28 file: *mut FILE,
29 vec: *const fq_nmod_struct,
30 len: mp_limb_signed_t,
31 ctx: *mut fq_nmod_ctx_struct,
32 ) -> c_int;
33 pub fn _fq_nmod_vec_print(
34 vec: *const fq_nmod_struct,
35 len: mp_limb_signed_t,
36 ctx: *mut fq_nmod_ctx_struct,
37 ) -> c_int;
38 pub fn _fq_nmod_vec_set(
39 v: *mut fq_nmod_struct,
40 f: *const fq_nmod_struct,
41 len: mp_limb_signed_t,
42 ctx: *mut fq_nmod_ctx_struct,
43 );
44 pub fn _fq_nmod_vec_swap(
45 vec1: *mut fq_nmod_struct,
46 vec2: *mut fq_nmod_struct,
47 len2: mp_limb_signed_t,
48 ctx: *mut fq_nmod_ctx_struct,
49 );
50 pub fn _fq_nmod_vec_zero(
51 v: *mut fq_nmod_struct,
52 len: mp_limb_signed_t,
53 ctx: *mut fq_nmod_ctx_struct,
54 );
55 pub fn _fq_nmod_vec_neg(
56 vec1: *mut fq_nmod_struct,
57 vec2: *const fq_nmod_struct,
58 len2: mp_limb_signed_t,
59 ctx: *mut fq_nmod_ctx_struct,
60 );
61 pub fn _fq_nmod_vec_is_zero(
62 vec: *const fq_nmod_struct,
63 len: mp_limb_signed_t,
64 ctx: *mut fq_nmod_ctx_struct,
65 ) -> c_int;
66 pub fn _fq_nmod_vec_equal(
67 vec1: *const fq_nmod_struct,
68 vec2: *const fq_nmod_struct,
69 len: mp_limb_signed_t,
70 ctx: *mut fq_nmod_ctx_struct,
71 ) -> c_int;
72 pub fn _fq_nmod_vec_add(
73 res: *mut fq_nmod_struct,
74 vec1: *const fq_nmod_struct,
75 vec2: *const fq_nmod_struct,
76 len2: mp_limb_signed_t,
77 ctx: *mut fq_nmod_ctx_struct,
78 );
79 pub fn _fq_nmod_vec_sub(
80 res: *mut fq_nmod_struct,
81 vec1: *const fq_nmod_struct,
82 vec2: *const fq_nmod_struct,
83 len2: mp_limb_signed_t,
84 ctx: *mut fq_nmod_ctx_struct,
85 );
86 pub fn _fq_nmod_vec_scalar_addmul_fq_nmod(
87 poly1: *mut fq_nmod_struct,
88 poly2: *const fq_nmod_struct,
89 len2: mp_limb_signed_t,
90 x: *mut nmod_poly_struct,
91 ctx: *mut fq_nmod_ctx_struct,
92 );
93 pub fn _fq_nmod_vec_scalar_submul_fq_nmod(
94 poly1: *mut fq_nmod_struct,
95 poly2: *const fq_nmod_struct,
96 len2: mp_limb_signed_t,
97 x: *mut nmod_poly_struct,
98 ctx: *mut fq_nmod_ctx_struct,
99 );
100 pub fn _fq_nmod_vec_scalar_mul_fq_nmod(
101 poly1: *mut fq_nmod_struct,
102 poly2: *const fq_nmod_struct,
103 len2: mp_limb_signed_t,
104 x: *mut nmod_poly_struct,
105 ctx: *mut fq_nmod_ctx_struct,
106 );
107 pub fn _fq_nmod_vec_dot(
108 res: *mut nmod_poly_struct,
109 vec1: *const fq_nmod_struct,
110 vec2: *const fq_nmod_struct,
111 len2: mp_limb_signed_t,
112 ctx: *mut fq_nmod_ctx_struct,
113 );
114}