1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
#![allow(non_camel_case_types)]
use crate::deps::*;
use crate::flint::*;
use crate::fmpq::fmpq;
use crate::fmpz::fmpz;
use crate::fmpz_poly::fmpz_poly_struct;
use libc::{c_int, FILE};
#[repr(C)]
#[derive(Debug, Copy, Clone, Hash)]
pub struct fmpz_mat_struct {
pub entries: *mut fmpz,
pub r: mp_limb_signed_t,
pub c: mp_limb_signed_t,
pub rows: *mut *mut fmpz,
}
pub type fmpz_mat_t = [fmpz_mat_struct; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct col_hash_t {
pub col: mp_limb_t,
pub hash: mp_limb_t,
}
extern "C" {
pub fn fmpz_mat_entry(
mat: *const fmpz_mat_struct,
i: mp_limb_signed_t,
j: mp_limb_signed_t,
) -> *mut fmpz;
pub fn fmpz_mat_nrows(mat: *const fmpz_mat_struct) -> mp_limb_signed_t;
pub fn fmpz_mat_ncols(mat: *const fmpz_mat_struct) -> mp_limb_signed_t;
pub fn fmpz_mat_init(mat: *mut fmpz_mat_struct, rows: mp_limb_signed_t, cols: mp_limb_signed_t);
pub fn fmpz_mat_init_set(mat: *mut fmpz_mat_struct, src: *const fmpz_mat_struct);
pub fn fmpz_mat_swap(mat1: *mut fmpz_mat_struct, mat2: *mut fmpz_mat_struct);
pub fn fmpz_mat_set(mat1: *mut fmpz_mat_struct, mat2: *const fmpz_mat_struct);
pub fn fmpz_mat_clear(mat: *mut fmpz_mat_struct);
pub fn fmpz_mat_equal(mat1: *const fmpz_mat_struct, mat2: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_is_zero(mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_is_one(mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_is_zero_row(mat: *const fmpz_mat_struct, i: mp_limb_signed_t) -> c_int;
pub fn fmpz_mat_col_equal(
M: *const fmpz_mat_struct,
m: mp_limb_signed_t,
n: mp_limb_signed_t,
) -> c_int;
pub fn fmpz_mat_row_equal(
M: *const fmpz_mat_struct,
m: mp_limb_signed_t,
n: mp_limb_signed_t,
) -> c_int;
pub fn fmpz_mat_is_empty(mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_is_square(mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_zero(mat: *mut fmpz_mat_struct);
pub fn fmpz_mat_one(mat: *mut fmpz_mat_struct);
pub fn fmpz_mat_window_init(
window: *mut fmpz_mat_struct,
mat: *const fmpz_mat_struct,
r1: mp_limb_signed_t,
c1: mp_limb_signed_t,
r2: mp_limb_signed_t,
c2: mp_limb_signed_t,
);
pub fn fmpz_mat_window_clear(window: *mut fmpz_mat_struct);
pub fn fmpz_mat_concat_horizontal(
res: *mut fmpz_mat_struct,
mat1: *const fmpz_mat_struct,
mat2: *const fmpz_mat_struct,
);
pub fn fmpz_mat_concat_vertical(
res: *mut fmpz_mat_struct,
mat1: *const fmpz_mat_struct,
mat2: *const fmpz_mat_struct,
);
pub fn fmpz_mat_fprint(file: *mut FILE, mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_fprint_pretty(file: *mut FILE, mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_print(mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_print_pretty(mat: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_fread(file: *const FILE, mat: *mut fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_read(mat: *mut fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_randbits(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
);
pub fn fmpz_mat_randtest(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
);
pub fn fmpz_mat_randtest_unsigned(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
);
pub fn fmpz_mat_randintrel(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
);
pub fn fmpz_mat_randsimdioph(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
bits2: mp_limb_t,
);
pub fn fmpz_mat_randntrulike(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
q: mp_limb_t,
);
pub fn fmpz_mat_randntrulike2(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
bits: mp_limb_t,
q: mp_limb_t,
);
pub fn fmpz_mat_randajtai(mat: *mut fmpz_mat_struct, state: *const flint_rand_s, alpha: f64);
pub fn fmpz_mat_randrank(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
rank: mp_limb_signed_t,
bits: mp_limb_t,
);
pub fn fmpz_mat_randdet(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
det: *const fmpz,
);
pub fn fmpz_mat_randops(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
count: mp_limb_signed_t,
);
pub fn fmpz_mat_randpermdiag(
mat: *mut fmpz_mat_struct,
state: *const flint_rand_s,
diag: *const fmpz,
n: mp_limb_signed_t,
) -> c_int;
pub fn fmpz_mat_max_bits(mat: *const fmpz_mat_struct) -> mp_limb_signed_t;
pub fn fmpz_mat_transpose(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_add(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_sub(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_neg(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_scalar_mul_fmpz(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: *const fmpz,
);
pub fn fmpz_mat_scalar_mul_si(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_signed_t,
);
pub fn fmpz_mat_scalar_mul_ui(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct, c: mp_limb_t);
pub fn fmpz_mat_scalar_addmul_fmpz(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: *const fmpz,
);
pub fn fmpz_mat_scalar_addmul_si(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_signed_t,
);
pub fn fmpz_mat_scalar_addmul_ui(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_t,
);
pub fn fmpz_mat_scalar_submul_fmpz(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: *const fmpz,
);
pub fn fmpz_mat_scalar_submul_si(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_signed_t,
);
pub fn fmpz_mat_scalar_submul_ui(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_t,
);
pub fn fmpz_mat_scalar_divexact_fmpz(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: *const fmpz,
);
pub fn fmpz_mat_scalar_divexact_si(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_signed_t,
);
pub fn fmpz_mat_scalar_divexact_ui(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
c: mp_limb_t,
);
pub fn fmpz_mat_scalar_mul_2exp(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
exp: mp_limb_t,
);
pub fn fmpz_mat_scalar_tdiv_q_2exp(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
exp: mp_limb_t,
);
pub fn fmpz_mat_scalar_smod(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct, P: *const fmpz);
pub fn fmpz_mat_scalar_mod_fmpz(
B: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
m: *const fmpz,
);
pub fn fmpz_mat_mul(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_mul_classical(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_mul_strassen(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_mul_classical_inline(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn _fmpz_mat_mul_multi_mod(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
bits: mp_limb_t,
);
pub fn fmpz_mat_mul_multi_mod(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_sqr_bodrato(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_sqr(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_pow(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct, exp: mp_limb_t);
pub fn fmpz_mat_kronecker_product(
C: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_content(ret: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_swap_rows(
mat: *mut fmpz_mat_struct,
perm: *const mp_limb_signed_t,
r: mp_limb_signed_t,
s: mp_limb_signed_t,
);
pub fn fmpz_mat_invert_rows(mat: *mut fmpz_mat_struct, perm: *const mp_limb_signed_t);
pub fn fmpz_mat_swap_cols(
mat: *mut fmpz_mat_struct,
perm: *const mp_limb_signed_t,
r: mp_limb_signed_t,
s: mp_limb_signed_t,
);
pub fn fmpz_mat_invert_cols(mat: *mut fmpz_mat_struct, perm: *const mp_limb_signed_t);
pub fn fmpz_mat_find_pivot_any(
mat: *const fmpz_mat_struct,
start_row: mp_limb_signed_t,
end_row: mp_limb_signed_t,
c: mp_limb_signed_t,
) -> mp_limb_signed_t;
pub fn fmpz_mat_find_pivot_smallest(
mat: *const fmpz_mat_struct,
start_row: mp_limb_signed_t,
end_row: mp_limb_signed_t,
c: mp_limb_signed_t,
) -> mp_limb_signed_t;
pub fn fmpz_mat_fflu(
B: *mut fmpz_mat_struct,
den: *mut fmpz,
perm: *const mp_limb_signed_t,
A: *const fmpz_mat_struct,
rank_check: c_int,
) -> mp_limb_signed_t;
pub fn fmpz_mat_rank_small_inplace(B: *mut fmpz_mat_struct) -> mp_limb_signed_t;
pub fn fmpz_mat_rref(
B: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
) -> mp_limb_signed_t;
pub fn fmpz_mat_rref_fflu(
B: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
) -> mp_limb_signed_t;
pub fn fmpz_mat_rref_mul(
B: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
) -> mp_limb_signed_t;
pub fn fmpz_mat_is_in_rref_with_rank(
A: *mut fmpz_mat_struct,
den: *mut fmpz,
rank: mp_limb_signed_t,
) -> c_int;
pub fn fmpz_mat_rref_mod(
perm: *mut mp_limb_signed_t,
A: *mut fmpz_mat_struct,
p: *const fmpz,
) -> mp_limb_signed_t;
pub fn fmpz_mat_howell_form_mod(A: *mut fmpz_mat_struct, mod_: *const fmpz)
-> mp_limb_signed_t;
pub fn fmpz_mat_strong_echelon_form_mod(A: *mut fmpz_mat_struct, mod_: *const fmpz);
pub fn fmpz_mat_trace(trace: *mut fmpz, mat: *const fmpz_mat_struct);
pub fn fmpz_mat_det(det: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_det_cofactor(det: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_det_bareiss(det: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_det_modular(det: *mut fmpz, A: *const fmpz_mat_struct, proved: c_int);
pub fn fmpz_mat_det_modular_accelerated(
det: *mut fmpz,
A: *const fmpz_mat_struct,
proved: c_int,
);
pub fn fmpz_mat_det_modular_given_divisor(
det: *mut fmpz,
A: *const fmpz_mat_struct,
d: *const fmpz,
proved: c_int,
);
pub fn fmpz_mat_det_bound(bound: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_det_bound_nonzero(bound: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_det_divisor(d: *mut fmpz, A: *const fmpz_mat_struct);
pub fn fmpz_mat_similarity(A: *mut fmpz_mat_struct, r: mp_limb_signed_t, d: *const fmpz);
pub fn _fmpz_mat_charpoly_berkowitz(rop: *mut fmpz, op: *const fmpz_mat_struct);
pub fn fmpz_mat_charpoly_berkowitz(cp: *mut fmpz_poly_struct, mat: *const fmpz_mat_struct);
pub fn _fmpz_mat_charpoly_modular(rop: *mut fmpz, op: *const fmpz_mat_struct);
pub fn fmpz_mat_charpoly_modular(cp: *mut fmpz_poly_struct, mat: *const fmpz_mat_struct);
pub fn _fmpz_mat_charpoly(cp: *mut fmpz, mat: *const fmpz_mat_struct);
pub fn fmpz_mat_charpoly(cp: *mut fmpz_poly_struct, mat: *const fmpz_mat_struct);
pub fn _fmpz_mat_minpoly_modular(
rop: *mut fmpz,
op: *const fmpz_mat_struct,
) -> mp_limb_signed_t;
pub fn fmpz_mat_minpoly_modular(cp: *mut fmpz_poly_struct, mat: *const fmpz_mat_struct);
pub fn _fmpz_mat_minpoly(cp: *mut fmpz, mat: *const fmpz_mat_struct) -> mp_limb_signed_t;
pub fn fmpz_mat_minpoly(cp: *mut fmpz_poly_struct, mat: *const fmpz_mat_struct);
pub fn fmpz_mat_rank(A: *const fmpz_mat_struct) -> mp_limb_signed_t;
pub fn fmpz_mat_solve_bound(
N: *mut fmpz,
D: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_solve(
X: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_solve_cramer(
X: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_solve_fflu(
X: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_solve_fflu_precomp(
X: *mut fmpz_mat_struct,
perm: *const mp_limb_signed_t,
FFLU: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
);
pub fn fmpz_mat_dixon_get_crt_primes(
num_primes: *mut mp_limb_signed_t,
A: *mut fmpz_mat_struct,
p: mp_limb_t,
) -> *mut mp_limb_t;
pub fn fmpz_mat_solve_dixon(
X: *mut fmpz_mat_struct,
mod_: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_solve_dixon_den(
X: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_solve_multi_mod_den(
X: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_can_solve_multi_mod_den(
X: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
B: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_nullspace(
res: *mut fmpz_mat_struct,
mat: *const fmpz_mat_struct,
) -> mp_limb_signed_t;
pub fn fmpz_mat_inv(
B: *mut fmpz_mat_struct,
den: *mut fmpz,
A: *const fmpz_mat_struct,
) -> c_int;
pub fn fmpz_mat_hnf(H: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_hnf_transform(
H: *mut fmpz_mat_struct,
U: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
);
pub fn fmpz_mat_hnf_classical(H: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_hnf_xgcd(H: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_hnf_minors(H: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_hnf_minors_transform(
H: *mut fmpz_mat_struct,
U: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
);
pub fn fmpz_mat_hnf_modular(H: *mut fmpz_mat_struct, A: *const fmpz_mat_struct, D: *const fmpz);
pub fn fmpz_mat_hnf_modular_eldiv(A: *mut fmpz_mat_struct, D: *const fmpz);
pub fn fmpz_mat_hnf_pernet_stein(
H: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
state: *const flint_rand_s,
);
pub fn fmpz_mat_is_in_hnf(A: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_snf(S: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_snf_diagonal(S: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_snf_kannan_bachem(S: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_snf_iliopoulos(
S: *mut fmpz_mat_struct,
A: *const fmpz_mat_struct,
mod_: *const fmpz,
);
pub fn fmpz_mat_is_in_snf(A: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_is_hadamard(A: *const fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_hadamard(A: *mut fmpz_mat_struct) -> c_int;
pub fn fmpz_mat_gram(B: *mut fmpz_mat_struct, A: *const fmpz_mat_struct);
pub fn fmpz_mat_is_reduced(A: *const fmpz_mat_struct, delta: f64, eta: f64) -> c_int;
pub fn fmpz_mat_is_reduced_gram(A: *const fmpz_mat_struct, delta: f64, eta: f64) -> c_int;
pub fn fmpz_mat_is_reduced_with_removal(
A: *const fmpz_mat_struct,
delta: f64,
eta: f64,
gs_B: *mut fmpz,
newd: c_int,
) -> c_int;
pub fn fmpz_mat_is_reduced_gram_with_removal(
A: *const fmpz_mat_struct,
delta: f64,
eta: f64,
gs_B: *const fmpz,
newd: c_int,
) -> c_int;
pub fn fmpz_mat_lll_original(A: *mut fmpz_mat_struct, delta: *const fmpq, eta: *const fmpq);
pub fn fmpz_mat_lll_storjohann(A: *mut fmpz_mat_struct, delta: *const fmpq, eta: *const fmpq);
pub fn fmpz_mat_col_partition(
part: *mut mp_limb_signed_t,
M: *const fmpz_mat_struct,
short_circuit: c_int,
) -> c_int;
pub fn fmpz_mat_next_col_van_hoeij(
M: *mut fmpz_mat_struct,
P: *mut fmpz,
col: *mut fmpz_mat_struct,
exp: mp_limb_signed_t,
U_exp: mp_limb_signed_t,
) -> c_int;
}