-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathwrappers.jl
3972 lines (3108 loc) · 163 KB
/
wrappers.jl
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
function SuiteSparse_time()
@ccall libsuitesparseconfig.SuiteSparse_time()::Cdouble
end
function SuiteSparse_config_printf_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_printf_func_get()::Ptr{Cvoid}
end
function cholmod_version(version)
@ccall libcholmod.cholmod_version(version::Ptr{Cint})::Cint
end
function cholmod_l_version(version)
@ccall libcholmod.cholmod_l_version(version::Ptr{Cint})::Cint
end
function SuiteSparse_config_malloc_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_malloc_func_get()::Ptr{Cvoid}
end
function SuiteSparse_config_calloc_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_calloc_func_get()::Ptr{Cvoid}
end
function SuiteSparse_config_realloc_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_realloc_func_get()::Ptr{Cvoid}
end
function SuiteSparse_config_free_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_free_func_get()::Ptr{Cvoid}
end
function SuiteSparse_config_hypot_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_hypot_func_get()::Ptr{Cvoid}
end
function SuiteSparse_config_divcomplex_func_get()
@ccall libsuitesparseconfig.SuiteSparse_config_divcomplex_func_get()::Ptr{Cvoid}
end
function SuiteSparse_config_malloc_func_set(malloc_func)
@ccall libsuitesparseconfig.SuiteSparse_config_malloc_func_set(malloc_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_calloc_func_set(calloc_func)
@ccall libsuitesparseconfig.SuiteSparse_config_calloc_func_set(calloc_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_realloc_func_set(realloc_func)
@ccall libsuitesparseconfig.SuiteSparse_config_realloc_func_set(realloc_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_free_func_set(free_func)
@ccall libsuitesparseconfig.SuiteSparse_config_free_func_set(free_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_printf_func_set(printf_func)
@ccall libsuitesparseconfig.SuiteSparse_config_printf_func_set(printf_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_hypot_func_set(hypot_func)
@ccall libsuitesparseconfig.SuiteSparse_config_hypot_func_set(hypot_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_divcomplex_func_set(divcomplex_func)
@ccall libsuitesparseconfig.SuiteSparse_config_divcomplex_func_set(divcomplex_func::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_malloc(s)
@ccall libsuitesparseconfig.SuiteSparse_config_malloc(s::Csize_t)::Ptr{Cvoid}
end
function SuiteSparse_config_calloc(n, s)
@ccall libsuitesparseconfig.SuiteSparse_config_calloc(n::Csize_t,
s::Csize_t)::Ptr{Cvoid}
end
function SuiteSparse_config_realloc(arg1, s)
@ccall libsuitesparseconfig.SuiteSparse_config_realloc(arg1::Ptr{Cvoid},
s::Csize_t)::Ptr{Cvoid}
end
function SuiteSparse_config_free(arg1)
@ccall libsuitesparseconfig.SuiteSparse_config_free(arg1::Ptr{Cvoid})::Cvoid
end
function SuiteSparse_config_hypot(x, y)
@ccall libsuitesparseconfig.SuiteSparse_config_hypot(x::Cdouble, y::Cdouble)::Cdouble
end
function SuiteSparse_config_divcomplex(xr, xi, yr, yi, zr, zi)
@ccall libsuitesparseconfig.SuiteSparse_config_divcomplex(xr::Cdouble, xi::Cdouble,
yr::Cdouble, yi::Cdouble,
zr::Ptr{Cdouble},
zi::Ptr{Cdouble})::Cint
end
function SuiteSparse_start()
@ccall libsuitesparseconfig.SuiteSparse_start()::Cvoid
end
function SuiteSparse_finish()
@ccall libsuitesparseconfig.SuiteSparse_finish()::Cvoid
end
function SuiteSparse_malloc(nitems, size_of_item)
@ccall libsuitesparseconfig.SuiteSparse_malloc(nitems::Csize_t,
size_of_item::Csize_t)::Ptr{Cvoid}
end
function SuiteSparse_calloc(nitems, size_of_item)
@ccall libsuitesparseconfig.SuiteSparse_calloc(nitems::Csize_t,
size_of_item::Csize_t)::Ptr{Cvoid}
end
function SuiteSparse_realloc(nitems_new, nitems_old, size_of_item, p, ok)
@ccall libsuitesparseconfig.SuiteSparse_realloc(nitems_new::Csize_t,
nitems_old::Csize_t,
size_of_item::Csize_t, p::Ptr{Cvoid},
ok::Ptr{Cint})::Ptr{Cvoid}
end
function SuiteSparse_free(p)
@ccall libsuitesparseconfig.SuiteSparse_free(p::Ptr{Cvoid})::Ptr{Cvoid}
end
function SuiteSparse_tic(tic)
@ccall libsuitesparseconfig.SuiteSparse_tic(tic::Ptr{Cdouble})::Cvoid
end
function SuiteSparse_toc(tic)
@ccall libsuitesparseconfig.SuiteSparse_toc(tic::Ptr{Cdouble})::Cdouble
end
function SuiteSparse_hypot(x, y)
@ccall libsuitesparseconfig.SuiteSparse_hypot(x::Cdouble, y::Cdouble)::Cdouble
end
function SuiteSparse_divcomplex(ar, ai, br, bi, cr, ci)
@ccall libsuitesparseconfig.SuiteSparse_divcomplex(ar::Cdouble, ai::Cdouble,
br::Cdouble, bi::Cdouble,
cr::Ptr{Cdouble},
ci::Ptr{Cdouble})::Cint
end
function SuiteSparse_version(version)
@ccall libsuitesparseconfig.SuiteSparse_version(version::Ptr{Cint})::Cint
end
function SuiteSparse_BLAS_library()
@ccall libsuitesparseconfig.SuiteSparse_BLAS_library()::Ptr{Cchar}
end
function SuiteSparse_BLAS_integer_size()
@ccall libsuitesparseconfig.SuiteSparse_BLAS_integer_size()::Csize_t
end
struct cholmod_method_struct
lnz::Cdouble
fl::Cdouble
prune_dense::Cdouble
prune_dense2::Cdouble
nd_oksep::Cdouble
other_1::NTuple{4,Cdouble}
nd_small::Csize_t
other_2::NTuple{4,Cdouble}
aggressive::Cint
order_for_lu::Cint
nd_compress::Cint
nd_camd::Cint
nd_components::Cint
ordering::Cint
other_3::NTuple{4,Csize_t}
end
mutable struct cholmod_common_struct
dbound::Cdouble
grow0::Cdouble
grow1::Cdouble
grow2::Csize_t
maxrank::Csize_t
supernodal_switch::Cdouble
supernodal::Cint
final_asis::Cint
final_super::Cint
final_ll::Cint
final_pack::Cint
final_monotonic::Cint
final_resymbol::Cint
zrelax::NTuple{3,Cdouble}
nrelax::NTuple{3,Csize_t}
prefer_zomplex::Cint
prefer_upper::Cint
quick_return_if_not_posdef::Cint
prefer_binary::Cint
print::Cint
precise::Cint
try_catch::Cint
error_handler::Ptr{Cvoid}
nmethods::Cint
current::Cint
selected::Cint
method::NTuple{10,cholmod_method_struct}
postorder::Cint
default_nesdis::Cint
metis_memory::Cdouble
metis_dswitch::Cdouble
metis_nswitch::Csize_t
nrow::Csize_t
mark::Int64
iworksize::Csize_t
xworkbytes::Csize_t
Flag::Ptr{Cvoid}
Head::Ptr{Cvoid}
Xwork::Ptr{Cvoid}
Iwork::Ptr{Cvoid}
itype::Cint
other_5::Cint
no_workspace_reallocate::Cint
status::Cint
fl::Cdouble
lnz::Cdouble
anz::Cdouble
modfl::Cdouble
malloc_count::Csize_t
memory_usage::Csize_t
memory_inuse::Csize_t
nrealloc_col::Cdouble
nrealloc_factor::Cdouble
ndbounds_hit::Cdouble
rowfacfl::Cdouble
aatfl::Cdouble
called_nd::Cint
blas_ok::Cint
SPQR_grain::Cdouble
SPQR_small::Cdouble
SPQR_shrink::Cint
SPQR_nthreads::Cint
SPQR_flopcount::Cdouble
SPQR_analyze_time::Cdouble
SPQR_factorize_time::Cdouble
SPQR_solve_time::Cdouble
SPQR_flopcount_bound::Cdouble
SPQR_tol_used::Cdouble
SPQR_norm_E_fro::Cdouble
SPQR_istat::NTuple{8,Int64}
nsbounds_hit::Cdouble
sbound::Cfloat
other_6::Cfloat
useGPU::Cint
maxGpuMemBytes::Csize_t
maxGpuMemFraction::Cdouble
gpuMemorySize::Csize_t
gpuKernelTime::Cdouble
gpuFlops::Int64
gpuNumKernelLaunches::Cint
cublasHandle::Ptr{Cvoid}
gpuStream::NTuple{8,Ptr{Cvoid}}
cublasEventPotrf::NTuple{3,Ptr{Cvoid}}
updateCKernelsComplete::Ptr{Cvoid}
updateCBuffersFree::NTuple{8,Ptr{Cvoid}}
dev_mempool::Ptr{Cvoid}
dev_mempool_size::Csize_t
host_pinned_mempool::Ptr{Cvoid}
host_pinned_mempool_size::Csize_t
devBuffSize::Csize_t
ibuffer::Cint
syrkStart::Cdouble
cholmod_cpu_gemm_time::Cdouble
cholmod_cpu_syrk_time::Cdouble
cholmod_cpu_trsm_time::Cdouble
cholmod_cpu_potrf_time::Cdouble
cholmod_gpu_gemm_time::Cdouble
cholmod_gpu_syrk_time::Cdouble
cholmod_gpu_trsm_time::Cdouble
cholmod_gpu_potrf_time::Cdouble
cholmod_assemble_time::Cdouble
cholmod_assemble_time2::Cdouble
cholmod_cpu_gemm_calls::Csize_t
cholmod_cpu_syrk_calls::Csize_t
cholmod_cpu_trsm_calls::Csize_t
cholmod_cpu_potrf_calls::Csize_t
cholmod_gpu_gemm_calls::Csize_t
cholmod_gpu_syrk_calls::Csize_t
cholmod_gpu_trsm_calls::Csize_t
cholmod_gpu_potrf_calls::Csize_t
chunk::Cdouble
nthreads_max::Cint
cholmod_common_struct() = new()
end
const cholmod_common = cholmod_common_struct
function cholmod_start(Common)
@ccall libcholmod.cholmod_start(Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_start(arg1)
@ccall libcholmod.cholmod_l_start(arg1::Ptr{cholmod_common})::Cint
end
function cholmod_finish(Common)
@ccall libcholmod.cholmod_finish(Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_finish(arg1)
@ccall libcholmod.cholmod_l_finish(arg1::Ptr{cholmod_common})::Cint
end
function cholmod_defaults(Common)
@ccall libcholmod.cholmod_defaults(Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_defaults(arg1)
@ccall libcholmod.cholmod_l_defaults(arg1::Ptr{cholmod_common})::Cint
end
function cholmod_maxrank(n, Common)
@ccall libcholmod.cholmod_maxrank(n::Csize_t, Common::Ptr{cholmod_common})::Csize_t
end
function cholmod_l_maxrank(arg1, arg2)
@ccall libcholmod.cholmod_l_maxrank(arg1::Csize_t, arg2::Ptr{cholmod_common})::Csize_t
end
function cholmod_allocate_work(nrow, iworksize, xworksize, Common)
@ccall libcholmod.cholmod_allocate_work(nrow::Csize_t, iworksize::Csize_t,
xworksize::Csize_t,
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_allocate_work(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_allocate_work(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t,
arg4::Ptr{cholmod_common})::Cint
end
function cholmod_alloc_work(nrow, iworksize, xworksize, dtype, Common)
@ccall libcholmod.cholmod_alloc_work(nrow::Csize_t, iworksize::Csize_t,
xworksize::Csize_t, dtype::Cint,
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_alloc_work(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_alloc_work(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t,
arg4::Cint, arg5::Ptr{cholmod_common})::Cint
end
function cholmod_free_work(Common)
@ccall libcholmod.cholmod_free_work(Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_free_work(arg1)
@ccall libcholmod.cholmod_l_free_work(arg1::Ptr{cholmod_common})::Cint
end
function cholmod_clear_flag(Common)
@ccall libcholmod.cholmod_clear_flag(Common::Ptr{cholmod_common})::Int64
end
function cholmod_l_clear_flag(arg1)
@ccall libcholmod.cholmod_l_clear_flag(arg1::Ptr{cholmod_common})::Int64
end
function cholmod_error(status, file, line, message, Common)
@ccall libcholmod.cholmod_error(status::Cint, file::Ptr{Cchar}, line::Cint,
message::Ptr{Cchar}, Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_error(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_error(arg1::Cint, arg2::Ptr{Cchar}, arg3::Cint,
arg4::Ptr{Cchar}, arg5::Ptr{cholmod_common})::Cint
end
function cholmod_dbound(arg1, arg2)
@ccall libcholmod.cholmod_dbound(arg1::Cdouble, arg2::Ptr{cholmod_common})::Cdouble
end
function cholmod_l_dbound(arg1, arg2)
@ccall libcholmod.cholmod_l_dbound(arg1::Cdouble, arg2::Ptr{cholmod_common})::Cdouble
end
function cholmod_sbound(arg1, arg2)
@ccall libcholmod.cholmod_sbound(arg1::Cfloat, arg2::Ptr{cholmod_common})::Cfloat
end
function cholmod_l_sbound(arg1, arg2)
@ccall libcholmod.cholmod_l_sbound(arg1::Cfloat, arg2::Ptr{cholmod_common})::Cfloat
end
function cholmod_hypot(x, y)
@ccall libcholmod.cholmod_hypot(x::Cdouble, y::Cdouble)::Cdouble
end
function cholmod_l_hypot(arg1, arg2)
@ccall libcholmod.cholmod_l_hypot(arg1::Cdouble, arg2::Cdouble)::Cdouble
end
function cholmod_divcomplex(ar, ai, br, bi, cr, ci)
@ccall libcholmod.cholmod_divcomplex(ar::Cdouble, ai::Cdouble, br::Cdouble, bi::Cdouble,
cr::Ptr{Cdouble}, ci::Ptr{Cdouble})::Cint
end
function cholmod_l_divcomplex(arg1, arg2, arg3, arg4, arg5, arg6)
@ccall libcholmod.cholmod_l_divcomplex(arg1::Cdouble, arg2::Cdouble, arg3::Cdouble,
arg4::Cdouble, arg5::Ptr{Cdouble},
arg6::Ptr{Cdouble})::Cint
end
mutable struct cholmod_sparse_struct
nrow::Csize_t
ncol::Csize_t
nzmax::Csize_t
p::Ptr{Cvoid}
i::Ptr{Cvoid}
nz::Ptr{Cvoid}
x::Ptr{Cvoid}
z::Ptr{Cvoid}
stype::Cint
itype::Cint
xtype::Cint
dtype::Cint
sorted::Cint
packed::Cint
cholmod_sparse_struct() = new()
end
const cholmod_sparse = cholmod_sparse_struct
function cholmod_allocate_sparse(nrow, ncol, nzmax, sorted, packed, stype, xdtype, Common)
@ccall libcholmod.cholmod_allocate_sparse(nrow::Csize_t, ncol::Csize_t, nzmax::Csize_t,
sorted::Cint, packed::Cint, stype::Cint,
xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_allocate_sparse(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
@ccall libcholmod.cholmod_l_allocate_sparse(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t,
arg4::Cint, arg5::Cint, arg6::Cint,
arg7::Cint,
arg8::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_free_sparse(A, Common)
@ccall libcholmod.cholmod_free_sparse(A::Ptr{Ptr{cholmod_sparse}},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_free_sparse(arg1, arg2)
@ccall libcholmod.cholmod_l_free_sparse(arg1::Ptr{Ptr{cholmod_sparse}},
arg2::Ptr{cholmod_common})::Cint
end
function cholmod_reallocate_sparse(nznew, A, Common)
@ccall libcholmod.cholmod_reallocate_sparse(nznew::Csize_t, A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_reallocate_sparse(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_reallocate_sparse(arg1::Csize_t, arg2::Ptr{cholmod_sparse},
arg3::Ptr{cholmod_common})::Cint
end
function cholmod_nnz(A, Common)
@ccall libcholmod.cholmod_nnz(A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Int64
end
function cholmod_l_nnz(arg1, arg2)
@ccall libcholmod.cholmod_l_nnz(arg1::Ptr{cholmod_sparse},
arg2::Ptr{cholmod_common})::Int64
end
function cholmod_speye(nrow, ncol, xdtype, Common)
@ccall libcholmod.cholmod_speye(nrow::Csize_t, ncol::Csize_t, xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_speye(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_speye(arg1::Csize_t, arg2::Csize_t, arg3::Cint,
arg4::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_spzeros(nrow, ncol, nzmax, xdtype, Common)
@ccall libcholmod.cholmod_spzeros(nrow::Csize_t, ncol::Csize_t, nzmax::Csize_t,
xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_spzeros(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_spzeros(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t,
arg4::Cint,
arg5::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_transpose(A, mode, Common)
@ccall libcholmod.cholmod_transpose(A::Ptr{cholmod_sparse}, mode::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_transpose(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_transpose(arg1::Ptr{cholmod_sparse}, arg2::Cint,
arg3::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_transpose_unsym(A, mode, Perm, fset, fsize, C, Common)
@ccall libcholmod.cholmod_transpose_unsym(A::Ptr{cholmod_sparse}, mode::Cint,
Perm::Ptr{Int32}, fset::Ptr{Int32},
fsize::Csize_t, C::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_transpose_unsym(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
@ccall libcholmod.cholmod_l_transpose_unsym(arg1::Ptr{cholmod_sparse}, arg2::Cint,
arg3::Ptr{Int64}, arg4::Ptr{Int64},
arg5::Csize_t, arg6::Ptr{cholmod_sparse},
arg7::Ptr{cholmod_common})::Cint
end
function cholmod_transpose_sym(A, mode, Perm, C, Common)
@ccall libcholmod.cholmod_transpose_sym(A::Ptr{cholmod_sparse}, mode::Cint,
Perm::Ptr{Int32}, C::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_transpose_sym(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_transpose_sym(arg1::Ptr{cholmod_sparse}, arg2::Cint,
arg3::Ptr{Int64}, arg4::Ptr{cholmod_sparse},
arg5::Ptr{cholmod_common})::Cint
end
function cholmod_ptranspose(A, mode, Perm, fset, fsize, Common)
@ccall libcholmod.cholmod_ptranspose(A::Ptr{cholmod_sparse}, mode::Cint,
Perm::Ptr{Int32}, fset::Ptr{Int32}, fsize::Csize_t,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_ptranspose(arg1, arg2, arg3, arg4, arg5, arg6)
@ccall libcholmod.cholmod_l_ptranspose(arg1::Ptr{cholmod_sparse}, arg2::Cint,
arg3::Ptr{Int64}, arg4::Ptr{Int64},
arg5::Csize_t,
arg6::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_sort(A, Common)
@ccall libcholmod.cholmod_sort(A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_sort(arg1, arg2)
@ccall libcholmod.cholmod_l_sort(arg1::Ptr{cholmod_sparse},
arg2::Ptr{cholmod_common})::Cint
end
function cholmod_band_nnz(A, k1, k2, ignore_diag, Common)
@ccall libcholmod.cholmod_band_nnz(A::Ptr{cholmod_sparse}, k1::Int64, k2::Int64,
ignore_diag::Bool,
Common::Ptr{cholmod_common})::Int64
end
function cholmod_l_band_nnz(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_band_nnz(arg1::Ptr{cholmod_sparse}, arg2::Int64,
arg3::Int64, arg4::Bool,
arg5::Ptr{cholmod_common})::Int64
end
function cholmod_band(A, k1, k2, mode, Common)
@ccall libcholmod.cholmod_band(A::Ptr{cholmod_sparse}, k1::Int64, k2::Int64, mode::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_band(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_band(arg1::Ptr{cholmod_sparse}, arg2::Int64, arg3::Int64,
arg4::Cint,
arg5::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_band_inplace(k1, k2, mode, A, Common)
@ccall libcholmod.cholmod_band_inplace(k1::Int64, k2::Int64, mode::Cint,
A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_band_inplace(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_band_inplace(arg1::Int64, arg2::Int64, arg3::Cint,
arg4::Ptr{cholmod_sparse},
arg5::Ptr{cholmod_common})::Cint
end
function cholmod_aat(A, fset, fsize, mode, Common)
@ccall libcholmod.cholmod_aat(A::Ptr{cholmod_sparse}, fset::Ptr{Int32}, fsize::Csize_t,
mode::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_aat(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_aat(arg1::Ptr{cholmod_sparse}, arg2::Ptr{Int64},
arg3::Csize_t, arg4::Cint,
arg5::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_copy_sparse(A, Common)
@ccall libcholmod.cholmod_copy_sparse(A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_copy_sparse(arg1, arg2)
@ccall libcholmod.cholmod_l_copy_sparse(arg1::Ptr{cholmod_sparse},
arg2::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_copy(A, stype, mode, Common)
@ccall libcholmod.cholmod_copy(A::Ptr{cholmod_sparse}, stype::Cint, mode::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_copy(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_copy(arg1::Ptr{cholmod_sparse}, arg2::Cint, arg3::Cint,
arg4::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_add(A, B, alpha, beta, mode, sorted, Common)
@ccall libcholmod.cholmod_add(A::Ptr{cholmod_sparse}, B::Ptr{cholmod_sparse},
alpha::Ptr{Cdouble}, beta::Ptr{Cdouble}, mode::Cint,
sorted::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_add(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
@ccall libcholmod.cholmod_l_add(arg1::Ptr{cholmod_sparse}, arg2::Ptr{cholmod_sparse},
arg3::Ptr{Cdouble}, arg4::Ptr{Cdouble}, arg5::Cint,
arg6::Cint,
arg7::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_sparse_xtype(to_xdtype, A, Common)
@ccall libcholmod.cholmod_sparse_xtype(to_xdtype::Cint, A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_sparse_xtype(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_sparse_xtype(arg1::Cint, arg2::Ptr{cholmod_sparse},
arg3::Ptr{cholmod_common})::Cint
end
mutable struct cholmod_factor_struct
n::Csize_t
minor::Csize_t
Perm::Ptr{Cvoid}
ColCount::Ptr{Cvoid}
IPerm::Ptr{Cvoid}
nzmax::Csize_t
p::Ptr{Cvoid}
i::Ptr{Cvoid}
x::Ptr{Cvoid}
z::Ptr{Cvoid}
nz::Ptr{Cvoid}
next::Ptr{Cvoid}
prev::Ptr{Cvoid}
nsuper::Csize_t
ssize::Csize_t
xsize::Csize_t
maxcsize::Csize_t
maxesize::Csize_t
super::Ptr{Cvoid}
pi::Ptr{Cvoid}
px::Ptr{Cvoid}
s::Ptr{Cvoid}
ordering::Cint
is_ll::Cint
is_super::Cint
is_monotonic::Cint
itype::Cint
xtype::Cint
dtype::Cint
useGPU::Cint
cholmod_factor_struct() = new()
end
const cholmod_factor = cholmod_factor_struct
function cholmod_allocate_factor(n, Common)
@ccall libcholmod.cholmod_allocate_factor(n::Csize_t,
Common::Ptr{cholmod_common})::Ptr{cholmod_factor}
end
function cholmod_l_allocate_factor(arg1, arg2)
@ccall libcholmod.cholmod_l_allocate_factor(arg1::Csize_t,
arg2::Ptr{cholmod_common})::Ptr{cholmod_factor}
end
function cholmod_alloc_factor(n, dtype, Common)
@ccall libcholmod.cholmod_alloc_factor(n::Csize_t, dtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_factor}
end
function cholmod_l_alloc_factor(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_alloc_factor(arg1::Csize_t, arg2::Cint,
arg3::Ptr{cholmod_common})::Ptr{cholmod_factor}
end
function cholmod_free_factor(L, Common)
@ccall libcholmod.cholmod_free_factor(L::Ptr{Ptr{cholmod_factor}},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_free_factor(arg1, arg2)
@ccall libcholmod.cholmod_l_free_factor(arg1::Ptr{Ptr{cholmod_factor}},
arg2::Ptr{cholmod_common})::Cint
end
function cholmod_reallocate_factor(nznew, L, Common)
@ccall libcholmod.cholmod_reallocate_factor(nznew::Csize_t, L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_reallocate_factor(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_reallocate_factor(arg1::Csize_t, arg2::Ptr{cholmod_factor},
arg3::Ptr{cholmod_common})::Cint
end
function cholmod_change_factor(to_xtype, to_ll, to_super, to_packed, to_monotonic, L,
Common)
@ccall libcholmod.cholmod_change_factor(to_xtype::Cint, to_ll::Cint, to_super::Cint,
to_packed::Cint, to_monotonic::Cint,
L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_change_factor(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
@ccall libcholmod.cholmod_l_change_factor(arg1::Cint, arg2::Cint, arg3::Cint,
arg4::Cint, arg5::Cint,
arg6::Ptr{cholmod_factor},
arg7::Ptr{cholmod_common})::Cint
end
function cholmod_pack_factor(L, Common)
@ccall libcholmod.cholmod_pack_factor(L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_pack_factor(arg1, arg2)
@ccall libcholmod.cholmod_l_pack_factor(arg1::Ptr{cholmod_factor},
arg2::Ptr{cholmod_common})::Cint
end
function cholmod_reallocate_column(j, need, L, Common)
@ccall libcholmod.cholmod_reallocate_column(j::Csize_t, need::Csize_t,
L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_reallocate_column(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_reallocate_column(arg1::Csize_t, arg2::Csize_t,
arg3::Ptr{cholmod_factor},
arg4::Ptr{cholmod_common})::Cint
end
function cholmod_factor_to_sparse(L, Common)
@ccall libcholmod.cholmod_factor_to_sparse(L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_factor_to_sparse(arg1, arg2)
@ccall libcholmod.cholmod_l_factor_to_sparse(arg1::Ptr{cholmod_factor},
arg2::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_copy_factor(L, Common)
@ccall libcholmod.cholmod_copy_factor(L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Ptr{cholmod_factor}
end
function cholmod_l_copy_factor(arg1, arg2)
@ccall libcholmod.cholmod_l_copy_factor(arg1::Ptr{cholmod_factor},
arg2::Ptr{cholmod_common})::Ptr{cholmod_factor}
end
function cholmod_factor_xtype(to_xdtype, L, Common)
@ccall libcholmod.cholmod_factor_xtype(to_xdtype::Cint, L::Ptr{cholmod_factor},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_factor_xtype(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_factor_xtype(arg1::Cint, arg2::Ptr{cholmod_factor},
arg3::Ptr{cholmod_common})::Cint
end
mutable struct cholmod_dense_struct
nrow::Csize_t
ncol::Csize_t
nzmax::Csize_t
d::Csize_t
x::Ptr{Cvoid}
z::Ptr{Cvoid}
xtype::Cint
dtype::Cint
cholmod_dense_struct() = new()
end
const cholmod_dense = cholmod_dense_struct
function cholmod_allocate_dense(nrow, ncol, d, xdtype, Common)
@ccall libcholmod.cholmod_allocate_dense(nrow::Csize_t, ncol::Csize_t, d::Csize_t,
xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_allocate_dense(arg1, arg2, arg3, arg4, arg5)
@ccall libcholmod.cholmod_l_allocate_dense(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t,
arg4::Cint,
arg5::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_zeros(nrow, ncol, xdtype, Common)
@ccall libcholmod.cholmod_zeros(nrow::Csize_t, ncol::Csize_t, xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_zeros(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_zeros(arg1::Csize_t, arg2::Csize_t, arg3::Cint,
arg4::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_ones(nrow, ncol, xdtype, Common)
@ccall libcholmod.cholmod_ones(nrow::Csize_t, ncol::Csize_t, xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_ones(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_ones(arg1::Csize_t, arg2::Csize_t, arg3::Cint,
arg4::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_eye(nrow, ncol, xdtype, Common)
@ccall libcholmod.cholmod_eye(nrow::Csize_t, ncol::Csize_t, xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_eye(arg1, arg2, arg3, arg4)
@ccall libcholmod.cholmod_l_eye(arg1::Csize_t, arg2::Csize_t, arg3::Cint,
arg4::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_free_dense(X, Common)
@ccall libcholmod.cholmod_free_dense(X::Ptr{Ptr{cholmod_dense}},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_free_dense(arg1, arg2)
@ccall libcholmod.cholmod_l_free_dense(arg1::Ptr{Ptr{cholmod_dense}},
arg2::Ptr{cholmod_common})::Cint
end
function cholmod_ensure_dense(X, nrow, ncol, d, xdtype, Common)
@ccall libcholmod.cholmod_ensure_dense(X::Ptr{Ptr{cholmod_dense}}, nrow::Csize_t,
ncol::Csize_t, d::Csize_t, xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_ensure_dense(arg1, arg2, arg3, arg4, arg5, arg6)
@ccall libcholmod.cholmod_l_ensure_dense(arg1::Ptr{Ptr{cholmod_dense}}, arg2::Csize_t,
arg3::Csize_t, arg4::Csize_t, arg5::Cint,
arg6::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_sparse_to_dense(A, Common)
@ccall libcholmod.cholmod_sparse_to_dense(A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_sparse_to_dense(arg1, arg2)
@ccall libcholmod.cholmod_l_sparse_to_dense(arg1::Ptr{cholmod_sparse},
arg2::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_dense_nnz(X, Common)
@ccall libcholmod.cholmod_dense_nnz(X::Ptr{cholmod_dense},
Common::Ptr{cholmod_common})::Int64
end
function cholmod_l_dense_nnz(arg1, arg2)
@ccall libcholmod.cholmod_l_dense_nnz(arg1::Ptr{cholmod_dense},
arg2::Ptr{cholmod_common})::Int64
end
function cholmod_dense_to_sparse(X, mode, Common)
@ccall libcholmod.cholmod_dense_to_sparse(X::Ptr{cholmod_dense}, mode::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_dense_to_sparse(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_dense_to_sparse(arg1::Ptr{cholmod_dense}, arg2::Cint,
arg3::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_copy_dense(X, Common)
@ccall libcholmod.cholmod_copy_dense(X::Ptr{cholmod_dense},
Common::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_l_copy_dense(arg1, arg2)
@ccall libcholmod.cholmod_l_copy_dense(arg1::Ptr{cholmod_dense},
arg2::Ptr{cholmod_common})::Ptr{cholmod_dense}
end
function cholmod_copy_dense2(X, Y, Common)
@ccall libcholmod.cholmod_copy_dense2(X::Ptr{cholmod_dense}, Y::Ptr{cholmod_dense},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_copy_dense2(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_copy_dense2(arg1::Ptr{cholmod_dense},
arg2::Ptr{cholmod_dense},
arg3::Ptr{cholmod_common})::Cint
end
function cholmod_dense_xtype(to_xdtype, X, Common)
@ccall libcholmod.cholmod_dense_xtype(to_xdtype::Cint, X::Ptr{cholmod_dense},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_dense_xtype(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_dense_xtype(arg1::Cint, arg2::Ptr{cholmod_dense},
arg3::Ptr{cholmod_common})::Cint
end
mutable struct cholmod_triplet_struct
nrow::Csize_t
ncol::Csize_t
nzmax::Csize_t
nnz::Csize_t
i::Ptr{Cvoid}
j::Ptr{Cvoid}
x::Ptr{Cvoid}
z::Ptr{Cvoid}
stype::Cint
itype::Cint
xtype::Cint
dtype::Cint
cholmod_triplet_struct() = new()
end
const cholmod_triplet = cholmod_triplet_struct
function cholmod_allocate_triplet(nrow, ncol, nzmax, stype, xdtype, Common)
@ccall libcholmod.cholmod_allocate_triplet(nrow::Csize_t, ncol::Csize_t, nzmax::Csize_t,
stype::Cint, xdtype::Cint,
Common::Ptr{cholmod_common})::Ptr{cholmod_triplet}
end
function cholmod_l_allocate_triplet(arg1, arg2, arg3, arg4, arg5, arg6)
@ccall libcholmod.cholmod_l_allocate_triplet(arg1::Csize_t, arg2::Csize_t,
arg3::Csize_t, arg4::Cint, arg5::Cint,
arg6::Ptr{cholmod_common})::Ptr{cholmod_triplet}
end
function cholmod_free_triplet(T, Common)
@ccall libcholmod.cholmod_free_triplet(T::Ptr{Ptr{cholmod_triplet}},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_free_triplet(arg1, arg2)
@ccall libcholmod.cholmod_l_free_triplet(arg1::Ptr{Ptr{cholmod_triplet}},
arg2::Ptr{cholmod_common})::Cint
end
function cholmod_reallocate_triplet(nznew, T, Common)
@ccall libcholmod.cholmod_reallocate_triplet(nznew::Csize_t, T::Ptr{cholmod_triplet},
Common::Ptr{cholmod_common})::Cint
end
function cholmod_l_reallocate_triplet(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_reallocate_triplet(arg1::Csize_t,
arg2::Ptr{cholmod_triplet},
arg3::Ptr{cholmod_common})::Cint
end
function cholmod_sparse_to_triplet(A, Common)
@ccall libcholmod.cholmod_sparse_to_triplet(A::Ptr{cholmod_sparse},
Common::Ptr{cholmod_common})::Ptr{cholmod_triplet}
end
function cholmod_l_sparse_to_triplet(arg1, arg2)
@ccall libcholmod.cholmod_l_sparse_to_triplet(arg1::Ptr{cholmod_sparse},
arg2::Ptr{cholmod_common})::Ptr{cholmod_triplet}
end
function cholmod_triplet_to_sparse(T, nzmax, Common)
@ccall libcholmod.cholmod_triplet_to_sparse(T::Ptr{cholmod_triplet}, nzmax::Csize_t,
Common::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_l_triplet_to_sparse(arg1, arg2, arg3)
@ccall libcholmod.cholmod_l_triplet_to_sparse(arg1::Ptr{cholmod_triplet}, arg2::Csize_t,
arg3::Ptr{cholmod_common})::Ptr{cholmod_sparse}
end
function cholmod_copy_triplet(T, Common)
@ccall libcholmod.cholmod_copy_triplet(T::Ptr{cholmod_triplet},
Common::Ptr{cholmod_common})::Ptr{cholmod_triplet}