rustmex_matlab800 0.2.0

Rustmex libary to interface with the Matlab-800 MEX api
Documentation
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
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
// This file contains the bindings matlab exposes, so we shouldn't care about their style
#![allow(bad_style)]
#![allow(unused)]

use rustmex_core::raw::*;

/* automatically generated by rust-bindgen 0.60.1 */
pub type SLIndex = i64;
pub type SLSize = i64;
pub type CHAR16_T = ::std::os::raw::c_ushort;
#[doc = " MEX-file entry point type"]
pub type mxFunctionPtr = ::std::option::Option<
    unsafe extern "C" fn(
        nlhs: ::std::os::raw::c_int,
        plhs: *mut *mut mxArray,
        nrhs: ::std::os::raw::c_int,
        prhs: *mut *mut mxArray,
    ),
>;
#[doc = " Logical type"]
pub type mxLogical = bool;
#[doc = " Required for Unicode support in MATLAB"]
pub type mxChar = CHAR16_T;
pub type mxClassID = ::std::os::raw::c_uint;

#[doc = " Indicates whether floating-point mxArrays are real or complex."]
pub type mxComplexity = ::std::os::raw::c_uint;
pub type mxDouble = f64;
pub type mxSingle = f32;
pub type mxInt8 = i8;
pub type mxUint8 = u8;
pub type mxInt16 = i16;
pub type mxUint16 = u16;
pub type mxInt32 = i32;
pub type mxUint32 = u32;
pub type mxInt64 = i64;
pub type mxUint64 = u64;

pub type mxComplexDouble = ::num_complex::Complex<f64>;
pub type mxComplexSingle = ::num_complex::Complex<f32>;
pub type mxComplexInt8   = ::num_complex::Complex<i8>;
pub type mxComplexUint8  = ::num_complex::Complex<u8>;
pub type mxComplexInt16  = ::num_complex::Complex<i16>;
pub type mxComplexUint16 = ::num_complex::Complex<u16>;
pub type mxComplexInt32  = ::num_complex::Complex<i32>;
pub type mxComplexUint32 = ::num_complex::Complex<u32>;
pub type mxComplexInt64  = ::num_complex::Complex<i64>;
pub type mxComplexUint64 = ::num_complex::Complex<u64>;
type size_t = usize;

extern "C" {
    pub fn mxMalloc_800(n: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mxCalloc_800(n: size_t, size: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mxFree_800(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn mxRealloc_800(
        ptr: *mut ::std::os::raw::c_void,
        size: size_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mxGetNumberOfDimensions_800(pa: *const mxArray) -> mwSize;
}
extern "C" {
    pub fn mxGetDimensions_800(pa: *const mxArray) -> *const mwSize;
}
extern "C" {
    pub fn mxGetM_800(pa: *const mxArray) -> size_t;
}
extern "C" {
    pub fn mxGetIr_800(pa: *const mxArray) -> *mut mwIndex;
}
extern "C" {
    pub fn mxGetJc_800(pa: *const mxArray) -> *mut mwIndex;
}
extern "C" {
    pub fn mxGetNzmax_800(pa: *const mxArray) -> mwSize;
}
extern "C" {
    pub fn mxSetNzmax_800(pa: *mut mxArray, nzmax: mwSize);
}
extern "C" {
    pub fn mxGetFieldNameByNumber_800(
        pa: *const mxArray,
        n: ::std::os::raw::c_int,
    ) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn mxGetFieldByNumber_800(
        pa: *const mxArray,
        i: mwIndex,
        fieldnum: ::std::os::raw::c_int,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxGetCell_800(pa: *const mxArray, i: mwIndex) -> *mut mxArray;
}
extern "C" {
    pub fn mxGetClassID_800(pa: *const mxArray) -> mxClassID;
}
extern "C" {
    pub fn mxGetData_800(pa: *const mxArray) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn mxSetData_800(pa: *mut mxArray, newdata: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn mxIsNumeric_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsCell_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsLogical_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsScalar_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsChar_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsStruct_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsOpaque_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsFunctionHandle_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsObject_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsComplex_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsSparse_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsDouble_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsSingle_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsInt8_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsUint8_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsInt16_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsUint16_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsInt32_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsUint32_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsInt64_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsUint64_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxGetNumberOfElements_800(pa: *const mxArray) -> size_t;
}
extern "C" {
    pub fn mxGetChars_800(pa: *const mxArray) -> *mut mxChar;
}
extern "C" {
    pub fn mxGetUserBits_800(pa: *const mxArray) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxSetUserBits_800(pa: *mut mxArray, value: ::std::os::raw::c_int);
}
extern "C" {
    pub fn mxGetScalar_800(pa: *const mxArray) -> f64;
}
extern "C" {
    pub fn mxIsFromGlobalWS_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxSetFromGlobalWS_800(pa: *mut mxArray, global: bool);
}
extern "C" {
    pub fn mxSetM_800(pa: *mut mxArray, m: mwSize);
}
extern "C" {
    pub fn mxGetN_800(pa: *const mxArray) -> size_t;
}
extern "C" {
    pub fn mxIsEmpty_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxGetFieldNumber_800(
        pa: *const mxArray,
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxSetIr_800(pa: *mut mxArray, newir: *mut mwIndex);
}
extern "C" {
    pub fn mxSetJc_800(pa: *mut mxArray, newjc: *mut mwIndex);
}
extern "C" {
    pub fn mxGetPr_800(pa: *const mxArray) -> *mut f64;
}
extern "C" {
    pub fn mxSetPr_800(pa: *mut mxArray, newdata: *mut f64);
}
extern "C" {
    pub fn mxGetElementSize_800(pa: *const mxArray) -> size_t;
}
extern "C" {
    pub fn mxCalcSingleSubscript_800(
        pa: *const mxArray,
        nsubs: mwSize,
        subs: *const mwIndex,
    ) -> mwIndex;
}
extern "C" {
    pub fn mxGetNumberOfFields_800(pa: *const mxArray) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxSetCell_800(pa: *mut mxArray, i: mwIndex, value: *mut mxArray);
}
extern "C" {
    pub fn mxSetFieldByNumber_800(
        pa: *mut mxArray,
        i: mwIndex,
        fieldnum: ::std::os::raw::c_int,
        value: *mut mxArray,
    );
}
extern "C" {
    pub fn mxGetField_800(
        pa: *const mxArray,
        i: mwIndex,
        fieldname: *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxSetField_800(
        pa: *mut mxArray,
        i: mwIndex,
        fieldname: *const ::std::os::raw::c_char,
        value: *mut mxArray,
    );
}
extern "C" {
    pub fn mxGetProperty_800(
        pa: *const mxArray,
        i: mwIndex,
        propname: *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxSetProperty_800(
        pa: *mut mxArray,
        i: mwIndex,
        propname: *const ::std::os::raw::c_char,
        value: *const mxArray,
    );
}
extern "C" {
    pub fn mxGetClassName_800(pa: *const mxArray) -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn mxIsClass_800(pa: *const mxArray, name: *const ::std::os::raw::c_char) -> bool;
}
extern "C" {
    pub fn mxCreateNumericMatrix_800(
        m: mwSize,
        n: mwSize,
        classid: mxClassID,
        flag: mxComplexity,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateUninitNumericMatrix_800(
        m: size_t,
        n: size_t,
        classid: mxClassID,
        flag: mxComplexity,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateUninitNumericArray_800(
        ndim: size_t,
        dims: *mut size_t,
        classid: mxClassID,
        flag: mxComplexity,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxSetN_800(pa: *mut mxArray, n: mwSize);
}
extern "C" {
    pub fn mxSetDimensions_800(
        pa: *mut mxArray,
        pdims: *const mwSize,
        ndims: mwSize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxDestroyArray_800(pa: *mut mxArray);
}
extern "C" {
    pub fn mxCreateNumericArray_800(
        ndim: mwSize,
        dims: *const mwSize,
        classid: mxClassID,
        flag: mxComplexity,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateCharArray_800(ndim: mwSize, dims: *const mwSize) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateDoubleMatrix_800(m: mwSize, n: mwSize, flag: mxComplexity) -> *mut mxArray;
}
extern "C" {
    pub fn mxGetLogicals_800(pa: *const mxArray) -> *mut mxLogical;
}
extern "C" {
    pub fn mxCreateLogicalArray_800(ndim: mwSize, dims: *const mwSize) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateLogicalMatrix_800(m: mwSize, n: mwSize) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateLogicalScalar_800(value: bool) -> *mut mxArray;
}
extern "C" {
    pub fn mxIsLogicalScalar_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxIsLogicalScalarTrue_800(pa: *const mxArray) -> bool;
}
extern "C" {
    pub fn mxCreateDoubleScalar_800(value: f64) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateSparse_800(
        m: mwSize,
        n: mwSize,
        nzmax: mwSize,
        flag: mxComplexity,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateSparseLogicalMatrix_800(m: mwSize, n: mwSize, nzmax: mwSize) -> *mut mxArray;
}
extern "C" {
    pub fn mxGetNChars_800(pa: *const mxArray, buf: *mut ::std::os::raw::c_char, nChars: mwSize);
}
extern "C" {
    pub fn mxGetString_800(
        pa: *const mxArray,
        buf: *mut ::std::os::raw::c_char,
        buflen: mwSize,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxArrayToString_800(pa: *const mxArray) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mxArrayToUTF8String_800(pa: *const mxArray) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn mxCreateStringFromNChars_800(
        str_: *const ::std::os::raw::c_char,
        n: mwSize,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateString_800(str_: *const ::std::os::raw::c_char) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateCharMatrixFromStrings_800(
        m: mwSize,
        str_: *mut *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateCellMatrix_800(m: mwSize, n: mwSize) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateCellArray_800(ndim: mwSize, dims: *const mwSize) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateStructMatrix_800(
        m: mwSize,
        n: mwSize,
        nfields: ::std::os::raw::c_int,
        fieldnames: *mut *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxCreateStructArray_800(
        ndim: mwSize,
        dims: *const mwSize,
        nfields: ::std::os::raw::c_int,
        fieldnames: *mut *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mxDuplicateArray_800(in_: *const mxArray) -> *mut mxArray;
}
extern "C" {
    pub fn mxSetClassName_800(
        pa: *mut mxArray,
        classname: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxAddField_800(
        pa: *mut mxArray,
        fieldname: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxRemoveField_800(pa: *mut mxArray, field: ::std::os::raw::c_int);
}
extern "C" {
    pub fn mxGetEps_800() -> f64;
}
extern "C" {
    pub fn mxGetInf_800() -> f64;
}
extern "C" {
    pub fn mxGetNaN_800() -> f64;
}
extern "C" {
    pub fn mxIsFinite_800(x: f64) -> bool;
}
extern "C" {
    pub fn mxIsInf_800(x: f64) -> bool;
}
extern "C" {
    pub fn mxIsNaN_800(x: f64) -> bool;
}
extern "C" {
    pub fn mxGetDoubles_800(arg1: *const mxArray) -> *mut mxDouble;
}
extern "C" {
    pub fn mxSetDoubles_800(arg1: *mut mxArray, arg2: *mut mxDouble) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexDoubles_800(arg1: *const mxArray) -> *mut mxComplexDouble;
}
extern "C" {
    pub fn mxSetComplexDoubles_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexDouble,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetSingles_800(arg1: *const mxArray) -> *mut mxSingle;
}
extern "C" {
    pub fn mxSetSingles_800(arg1: *mut mxArray, arg2: *mut mxSingle) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexSingles_800(arg1: *const mxArray) -> *mut mxComplexSingle;
}
extern "C" {
    pub fn mxSetComplexSingles_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexSingle,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetInt8s_800(arg1: *const mxArray) -> *mut mxInt8;
}
extern "C" {
    pub fn mxSetInt8s_800(arg1: *mut mxArray, arg2: *mut mxInt8) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexInt8s_800(arg1: *const mxArray) -> *mut mxComplexInt8;
}
extern "C" {
    pub fn mxSetComplexInt8s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexInt8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetUint8s_800(arg1: *const mxArray) -> *mut mxUint8;
}
extern "C" {
    pub fn mxSetUint8s_800(arg1: *mut mxArray, arg2: *mut mxUint8) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexUint8s_800(arg1: *const mxArray) -> *mut mxComplexUint8;
}
extern "C" {
    pub fn mxSetComplexUint8s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexUint8,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetInt16s_800(arg1: *const mxArray) -> *mut mxInt16;
}
extern "C" {
    pub fn mxSetInt16s_800(arg1: *mut mxArray, arg2: *mut mxInt16) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexInt16s_800(arg1: *const mxArray) -> *mut mxComplexInt16;
}
extern "C" {
    pub fn mxSetComplexInt16s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexInt16,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetUint16s_800(arg1: *const mxArray) -> *mut mxUint16;
}
extern "C" {
    pub fn mxSetUint16s_800(arg1: *mut mxArray, arg2: *mut mxUint16) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexUint16s_800(arg1: *const mxArray) -> *mut mxComplexUint16;
}
extern "C" {
    pub fn mxSetComplexUint16s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexUint16,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetInt32s_800(arg1: *const mxArray) -> *mut mxInt32;
}
extern "C" {
    pub fn mxSetInt32s_800(arg1: *mut mxArray, arg2: *mut mxInt32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexInt32s_800(arg1: *const mxArray) -> *mut mxComplexInt32;
}
extern "C" {
    pub fn mxSetComplexInt32s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexInt32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetUint32s_800(arg1: *const mxArray) -> *mut mxUint32;
}
extern "C" {
    pub fn mxSetUint32s_800(arg1: *mut mxArray, arg2: *mut mxUint32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexUint32s_800(arg1: *const mxArray) -> *mut mxComplexUint32;
}
extern "C" {
    pub fn mxSetComplexUint32s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexUint32,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetInt64s_800(arg1: *const mxArray) -> *mut mxInt64;
}
extern "C" {
    pub fn mxSetInt64s_800(arg1: *mut mxArray, arg2: *mut mxInt64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexInt64s_800(arg1: *const mxArray) -> *mut mxComplexInt64;
}
extern "C" {
    pub fn mxSetComplexInt64s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexInt64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetUint64s_800(arg1: *const mxArray) -> *mut mxUint64;
}
extern "C" {
    pub fn mxSetUint64s_800(arg1: *mut mxArray, arg2: *mut mxUint64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxGetComplexUint64s_800(arg1: *const mxArray) -> *mut mxComplexUint64;
}
extern "C" {
    pub fn mxSetComplexUint64s_800(
        arg1: *mut mxArray,
        arg2: *mut mxComplexUint64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxMakeArrayReal_800(arg1: *mut mxArray) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mxMakeArrayComplex_800(arg1: *mut mxArray) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn __assert_fail(
        __assertion: *const ::std::os::raw::c_char,
        __file: *const ::std::os::raw::c_char,
        __line: ::std::os::raw::c_uint,
        __function: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn __assert_perror_fail(
        __errnum: ::std::os::raw::c_int,
        __file: *const ::std::os::raw::c_char,
        __line: ::std::os::raw::c_uint,
        __function: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn __assert(
        __assertion: *const ::std::os::raw::c_char,
        __file: *const ::std::os::raw::c_char,
        __line: ::std::os::raw::c_int,
    );
}
pub type mex_exit_fn = ::std::option::Option<unsafe extern "C" fn()>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mexGlobalTableEntry_Tag {
    pub name: *const ::std::os::raw::c_char,
    pub variable: *mut *mut mxArray,
}
#[test]
fn bindgen_test_layout_mexGlobalTableEntry_Tag() {
    assert_eq!(
        ::std::mem::size_of::<mexGlobalTableEntry_Tag>(),
        16usize,
        concat!("Size of: ", stringify!(mexGlobalTableEntry_Tag))
    );
    assert_eq!(
        ::std::mem::align_of::<mexGlobalTableEntry_Tag>(),
        8usize,
        concat!("Alignment of ", stringify!(mexGlobalTableEntry_Tag))
    );
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexGlobalTableEntry_Tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(mexGlobalTableEntry_Tag),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_variable() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexGlobalTableEntry_Tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).variable) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(mexGlobalTableEntry_Tag),
                "::",
                stringify!(variable)
            )
        );
    }
    test_field_variable();
}
pub type mexGlobalTableEntry = mexGlobalTableEntry_Tag;
pub type mexGlobalTable = *mut mexGlobalTableEntry_Tag;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mexFunctionTableEntry_tag {
    pub name: *const ::std::os::raw::c_char,
    pub f: mxFunctionPtr,
    pub nargin: ::std::os::raw::c_int,
    pub nargout: ::std::os::raw::c_int,
    pub local_function_table: *mut _mexLocalFunctionTable,
}
#[test]
fn bindgen_test_layout_mexFunctionTableEntry_tag() {
    assert_eq!(
        ::std::mem::size_of::<mexFunctionTableEntry_tag>(),
        32usize,
        concat!("Size of: ", stringify!(mexFunctionTableEntry_tag))
    );
    assert_eq!(
        ::std::mem::align_of::<mexFunctionTableEntry_tag>(),
        8usize,
        concat!("Alignment of ", stringify!(mexFunctionTableEntry_tag))
    );
    fn test_field_name() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexFunctionTableEntry_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(mexFunctionTableEntry_tag),
                "::",
                stringify!(name)
            )
        );
    }
    test_field_name();
    fn test_field_f() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexFunctionTableEntry_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(mexFunctionTableEntry_tag),
                "::",
                stringify!(f)
            )
        );
    }
    test_field_f();
    fn test_field_nargin() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexFunctionTableEntry_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).nargin) as usize - ptr as usize
            },
            16usize,
            concat!(
                "Offset of field: ",
                stringify!(mexFunctionTableEntry_tag),
                "::",
                stringify!(nargin)
            )
        );
    }
    test_field_nargin();
    fn test_field_nargout() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexFunctionTableEntry_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).nargout) as usize - ptr as usize
            },
            20usize,
            concat!(
                "Offset of field: ",
                stringify!(mexFunctionTableEntry_tag),
                "::",
                stringify!(nargout)
            )
        );
    }
    test_field_nargout();
    fn test_field_local_function_table() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<mexFunctionTableEntry_tag>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).local_function_table) as usize - ptr as usize
            },
            24usize,
            concat!(
                "Offset of field: ",
                stringify!(mexFunctionTableEntry_tag),
                "::",
                stringify!(local_function_table)
            )
        );
    }
    test_field_local_function_table();
}
pub type mexFunctionTableEntry = mexFunctionTableEntry_tag;
pub type mexFunctionTable = *mut mexFunctionTableEntry_tag;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _mexLocalFunctionTable {
    pub length: size_t,
    pub entries: mexFunctionTable,
}
#[test]
fn bindgen_test_layout__mexLocalFunctionTable() {
    assert_eq!(
        ::std::mem::size_of::<_mexLocalFunctionTable>(),
        16usize,
        concat!("Size of: ", stringify!(_mexLocalFunctionTable))
    );
    assert_eq!(
        ::std::mem::align_of::<_mexLocalFunctionTable>(),
        8usize,
        concat!("Alignment of ", stringify!(_mexLocalFunctionTable))
    );
    fn test_field_length() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_mexLocalFunctionTable>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_mexLocalFunctionTable),
                "::",
                stringify!(length)
            )
        );
    }
    test_field_length();
    fn test_field_entries() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_mexLocalFunctionTable>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).entries) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_mexLocalFunctionTable),
                "::",
                stringify!(entries)
            )
        );
    }
    test_field_entries();
}
pub type mexLocalFunctionTable = *mut _mexLocalFunctionTable;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _mexInitTermTableEntry {
    pub initialize: ::std::option::Option<unsafe extern "C" fn()>,
    pub terminate: ::std::option::Option<unsafe extern "C" fn()>,
}
#[test]
fn bindgen_test_layout__mexInitTermTableEntry() {
    assert_eq!(
        ::std::mem::size_of::<_mexInitTermTableEntry>(),
        16usize,
        concat!("Size of: ", stringify!(_mexInitTermTableEntry))
    );
    assert_eq!(
        ::std::mem::align_of::<_mexInitTermTableEntry>(),
        8usize,
        concat!("Alignment of ", stringify!(_mexInitTermTableEntry))
    );
    fn test_field_initialize() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_mexInitTermTableEntry>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).initialize) as usize - ptr as usize
            },
            0usize,
            concat!(
                "Offset of field: ",
                stringify!(_mexInitTermTableEntry),
                "::",
                stringify!(initialize)
            )
        );
    }
    test_field_initialize();
    fn test_field_terminate() {
        assert_eq!(
            unsafe {
                let uninit = ::std::mem::MaybeUninit::<_mexInitTermTableEntry>::uninit();
                let ptr = uninit.as_ptr();
                ::std::ptr::addr_of!((*ptr).terminate) as usize - ptr as usize
            },
            8usize,
            concat!(
                "Offset of field: ",
                stringify!(_mexInitTermTableEntry),
                "::",
                stringify!(terminate)
            )
        );
    }
    test_field_terminate();
}
pub type mexInitTermTableEntry = *mut _mexInitTermTableEntry;
pub type fn_clean_up_after_error = ::std::option::Option<unsafe extern "C" fn()>;
pub type fn_simple_function_to_string =
    ::std::option::Option<unsafe extern "C" fn(f: mxFunctionPtr) -> *const ::std::os::raw::c_char>;
pub type fn_mex_get_local_function_table =
    ::std::option::Option<unsafe extern "C" fn() -> mexLocalFunctionTable>;
pub type fn_mex_set_local_function_table = ::std::option::Option<
    unsafe extern "C" fn(arg1: mexLocalFunctionTable) -> mexLocalFunctionTable,
>;
extern "C" {
    pub fn mexErrMsgTxt_800(error_msg: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn mexErrMsgIdAndTxt_800(
        identifier: *const ::std::os::raw::c_char,
        err_msg: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn mexWarnMsgTxt_800(warn_msg: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn mexWarnMsgIdAndTxt_800(
        identifier: *const ::std::os::raw::c_char,
        warn_msg: *const ::std::os::raw::c_char,
        ...
    );
}
extern "C" {
    pub fn mexPrintf_800(fmt: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mexMakeArrayPersistent_800(pa: *mut mxArray);
}
extern "C" {
    pub fn mexMakeMemoryPersistent_800(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn mexCallMATLAB_800(
        nlhs: ::std::os::raw::c_int,
        plhs: *mut *mut mxArray,
        nrhs: ::std::os::raw::c_int,
        prhs: *mut *mut mxArray,
        fcn_name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mexCallMATLABWithTrap_800(
        nlhs: ::std::os::raw::c_int,
        plhs: *mut *mut mxArray,
        nrhs: ::std::os::raw::c_int,
        prhs: *mut *mut mxArray,
        fcn_name: *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mexPrintAssertion_800(
        test: *const ::std::os::raw::c_char,
        fname: *const ::std::os::raw::c_char,
        linenum: ::std::os::raw::c_int,
        message: *const ::std::os::raw::c_char,
    );
}
extern "C" {
    pub fn mexIsGlobal_800(pA: *const mxArray) -> bool;
}
extern "C" {
    pub fn mexPutVariable_800(
        workspace: *const ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        parray: *const mxArray,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mexGetVariablePtr_800(
        workspace: *const ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
    ) -> *const mxArray;
}
extern "C" {
    pub fn mexGetVariable_800(
        workspace: *const ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
    ) -> *mut mxArray;
}
extern "C" {
    pub fn mexLock_800();
}
extern "C" {
    pub fn mexUnlock_800();
}
extern "C" {
    pub fn mexIsLocked_800() -> bool;
}
extern "C" {
    pub fn mexFunctionName_800() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn mexEvalString_800(str_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mexEvalStringWithTrap_800(str_: *const ::std::os::raw::c_char) -> *mut mxArray;
}
extern "C" {
    pub fn mexAtExit_800(exit_fcn: mex_exit_fn) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn mexFunction(
        nlhs: ::std::os::raw::c_int,
        plhs: *mut *mut mxArray,
        nrhs: ::std::os::raw::c_int,
        prhs: *mut *const mxArray,
    );
}