-
Notifications
You must be signed in to change notification settings - Fork 4
/
nimlapack.nim
4452 lines (4435 loc) · 319 KB
/
nimlapack.nim
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
when defined(windows):
const
libSuffix = ".dll"
libPrefix = "(lib|)"
lapack {.strdefine.} = "(lapack|openblas|mkl_intel_lp64)"
elif defined(macosx):
const
libSuffix = ".dylib"
libPrefix = "lib"
lapack {.strdefine.} = "(lapack|openblas)"
else:
const
libSuffix = ".so(|.3|.2|.1|.0)"
libPrefix = "lib"
lapack {.strdefine.} = "lapack"
const
libName = libPrefix & lapack & libSuffix
{.hint:
if '|' in libName:
"Using LAPACK library matching pattern: " & libName
else:
"Using LAPACK library with name: " & libName
.}
type
lapack_complex_float* = object
re*, im*: cfloat
lapack_complex_double* = object
re*, im*: cdouble
## LAPACK 3.3.0
## LAPACK 3.4.0
## LAPACK 3.X.X
## ****************************************************************************
## Copyright (c) 2010, Intel Corp.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
##
## Redistributions of source code must retain the above copyright notice,
## this list of conditions and the following disclaimer.
## Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in the
## documentation and/or other materials provided with the distribution.
## Neither the name of Intel Corporation nor the names of its contributors
## may be used to endorse or promote products derived from this software
## without specific prior written permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
## ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
## LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
## THE POSSIBILITY OF SUCH DAMAGE.
## *****************************************************************************
## Contents: Native C interface to LAPACK
## Author: Intel Corporation
## Generated November, 2011
## ***************************************************************************
##
## Turn on HAVE_LAPACK_CONFIG_H to redefine C-LAPACK datatypes
##
## Complex types are structures equivalent to the
## Fortran complex types COMPLEX(4) and COMPLEX(8).
##
## One can also redefine the types with his own types
## for example by including in the code definitions like
##
## #define lapack_complex_float std::complex<float>
## #define lapack_complex_double std::complex<double>
##
## or define these types in the command line:
##
## -Dlapack_complex_float="std::complex<float>"
## -Dlapack_complex_double="std::complex<double>"
##
template C2INT*(x: untyped): untyped =
(int)((cast[ptr cfloat](addr(x)))[])
template Z2INT*(x: untyped): untyped =
(int)((cast[ptr cdouble](addr(x)))[])
const
ROW_MAJOR* = 101
COL_MAJOR* = 102
WORK_MEMORY_ERROR* = - 1010
TRANSPOSE_MEMORY_ERROR* = - 1011
## Callback logical functions of one, two, or three arguments are used
## to select eigenvalues to sort to the top left of the Schur form.
## The value is selected if function returns TRUE (non-zero).
type
S_SELECT2* = proc (a2: ptr cfloat; a3: ptr cfloat): cint {.cdecl.}
S_SELECT3* = proc (a2: ptr cfloat; a3: ptr cfloat; a4: ptr cfloat): cint {.cdecl.}
D_SELECT2* = proc (a2: ptr cdouble; a3: ptr cdouble): cint {.cdecl.}
D_SELECT3* = proc (a2: ptr cdouble; a3: ptr cdouble; a4: ptr cdouble): cint {.cdecl.}
C_SELECT1* = proc (a2: ptr lapack_complex_float): cint {.cdecl.}
C_SELECT2* = proc (a2: ptr lapack_complex_float; a3: ptr lapack_complex_float): cint {.
cdecl.}
Z_SELECT1* = proc (a2: ptr lapack_complex_double): cint {.cdecl.}
Z_SELECT2* = proc (a2: ptr lapack_complex_double; a3: ptr lapack_complex_double): cint {.
cdecl.}
proc sgetrf*(m: ptr cint; n: ptr cint; a: ptr cfloat; lda: ptr cint; ipiv: ptr cint;
info: ptr cint) {.cdecl, importc: "sgetrf_", dynlib: libName.}
proc dgetrf*(m: ptr cint; n: ptr cint; a: ptr cdouble; lda: ptr cint; ipiv: ptr cint;
info: ptr cint) {.cdecl, importc: "dgetrf_", dynlib: libName.}
proc cgetrf*(m: ptr cint; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "cgetrf_", dynlib: libName.}
proc zgetrf*(m: ptr cint; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "zgetrf_", dynlib: libName.}
proc sgbtrf*(m: ptr cint; n: ptr cint; kl: ptr cint; ku: ptr cint; ab: ptr cfloat;
ldab: ptr cint; ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "sgbtrf_",
dynlib: libName.}
proc dgbtrf*(m: ptr cint; n: ptr cint; kl: ptr cint; ku: ptr cint; ab: ptr cdouble;
ldab: ptr cint; ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "dgbtrf_",
dynlib: libName.}
proc cgbtrf*(m: ptr cint; n: ptr cint; kl: ptr cint; ku: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint; ipiv: ptr cint; info: ptr cint) {.
cdecl, importc: "cgbtrf_", dynlib: libName.}
proc zgbtrf*(m: ptr cint; n: ptr cint; kl: ptr cint; ku: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint; ipiv: ptr cint; info: ptr cint) {.
cdecl, importc: "zgbtrf_", dynlib: libName.}
proc sgttrf*(n: ptr cint; dl: ptr cfloat; d: ptr cfloat; du: ptr cfloat; du2: ptr cfloat;
ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "sgttrf_", dynlib: libName.}
proc dgttrf*(n: ptr cint; dl: ptr cdouble; d: ptr cdouble; du: ptr cdouble; du2: ptr cdouble;
ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "dgttrf_", dynlib: libName.}
proc cgttrf*(n: ptr cint; dl: ptr lapack_complex_float; d: ptr lapack_complex_float;
du: ptr lapack_complex_float; du2: ptr lapack_complex_float;
ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "cgttrf_", dynlib: libName.}
proc zgttrf*(n: ptr cint; dl: ptr lapack_complex_double; d: ptr lapack_complex_double;
du: ptr lapack_complex_double; du2: ptr lapack_complex_double;
ipiv: ptr cint; info: ptr cint) {.cdecl, importc: "zgttrf_", dynlib: libName.}
proc spotrf*(uplo: cstring; n: ptr cint; a: ptr cfloat; lda: ptr cint; info: ptr cint) {.cdecl,
importc: "spotrf_", dynlib: libName.}
proc dpotrf*(uplo: cstring; n: ptr cint; a: ptr cdouble; lda: ptr cint; info: ptr cint) {.
cdecl, importc: "dpotrf_", dynlib: libName.}
proc cpotrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
info: ptr cint) {.cdecl, importc: "cpotrf_", dynlib: libName.}
proc zpotrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
info: ptr cint) {.cdecl, importc: "zpotrf_", dynlib: libName.}
proc dpstrf*(uplo: cstring; n: ptr cint; a: ptr cdouble; lda: ptr cint; piv: ptr cint;
rank: ptr cint; tol: ptr cdouble; work: ptr cdouble; info: ptr cint) {.cdecl,
importc: "dpstrf_", dynlib: libName.}
proc spstrf*(uplo: cstring; n: ptr cint; a: ptr cfloat; lda: ptr cint; piv: ptr cint;
rank: ptr cint; tol: ptr cfloat; work: ptr cfloat; info: ptr cint) {.cdecl,
importc: "spstrf_", dynlib: libName.}
proc zpstrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
piv: ptr cint; rank: ptr cint; tol: ptr cdouble; work: ptr cdouble;
info: ptr cint) {.cdecl, importc: "zpstrf_", dynlib: libName.}
proc cpstrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
piv: ptr cint; rank: ptr cint; tol: ptr cfloat; work: ptr cfloat; info: ptr cint) {.
cdecl, importc: "cpstrf_", dynlib: libName.}
proc dpftrf*(transr: cstring; uplo: cstring; n: ptr cint; a: ptr cdouble; info: ptr cint) {.
cdecl, importc: "dpftrf_", dynlib: libName.}
proc spftrf*(transr: cstring; uplo: cstring; n: ptr cint; a: ptr cfloat; info: ptr cint) {.
cdecl, importc: "spftrf_", dynlib: libName.}
proc zpftrf*(transr: cstring; uplo: cstring; n: ptr cint; a: ptr lapack_complex_double;
info: ptr cint) {.cdecl, importc: "zpftrf_", dynlib: libName.}
proc cpftrf*(transr: cstring; uplo: cstring; n: ptr cint; a: ptr lapack_complex_float;
info: ptr cint) {.cdecl, importc: "cpftrf_", dynlib: libName.}
proc spptrf*(uplo: cstring; n: ptr cint; ap: ptr cfloat; info: ptr cint) {.cdecl,
importc: "spptrf_", dynlib: libName.}
proc dpptrf*(uplo: cstring; n: ptr cint; ap: ptr cdouble; info: ptr cint) {.cdecl,
importc: "dpptrf_", dynlib: libName.}
proc cpptrf*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_float; info: ptr cint) {.
cdecl, importc: "cpptrf_", dynlib: libName.}
proc zpptrf*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_double; info: ptr cint) {.
cdecl, importc: "zpptrf_", dynlib: libName.}
proc spbtrf*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr cfloat; ldab: ptr cint;
info: ptr cint) {.cdecl, importc: "spbtrf_", dynlib: libName.}
proc dpbtrf*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr cdouble; ldab: ptr cint;
info: ptr cint) {.cdecl, importc: "dpbtrf_", dynlib: libName.}
proc cpbtrf*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr lapack_complex_float;
ldab: ptr cint; info: ptr cint) {.cdecl, importc: "cpbtrf_", dynlib: libName.}
proc zpbtrf*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr lapack_complex_double;
ldab: ptr cint; info: ptr cint) {.cdecl, importc: "zpbtrf_", dynlib: libName.}
proc spttrf*(n: ptr cint; d: ptr cfloat; e: ptr cfloat; info: ptr cint) {.cdecl,
importc: "spttrf_", dynlib: libName.}
proc dpttrf*(n: ptr cint; d: ptr cdouble; e: ptr cdouble; info: ptr cint) {.cdecl,
importc: "dpttrf_", dynlib: libName.}
proc cpttrf*(n: ptr cint; d: ptr cfloat; e: ptr lapack_complex_float; info: ptr cint) {.
cdecl, importc: "cpttrf_", dynlib: libName.}
proc zpttrf*(n: ptr cint; d: ptr cdouble; e: ptr lapack_complex_double; info: ptr cint) {.
cdecl, importc: "zpttrf_", dynlib: libName.}
proc ssytrf*(uplo: cstring; n: ptr cint; a: ptr cfloat; lda: ptr cint; ipiv: ptr cint;
work: ptr cfloat; lwork: ptr cint; info: ptr cint) {.cdecl,
importc: "ssytrf_", dynlib: libName.}
proc dsytrf*(uplo: cstring; n: ptr cint; a: ptr cdouble; lda: ptr cint; ipiv: ptr cint;
work: ptr cdouble; lwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dsytrf_", dynlib: libName.}
proc csytrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
ipiv: ptr cint; work: ptr lapack_complex_float; lwork: ptr cint;
info: ptr cint) {.cdecl, importc: "csytrf_", dynlib: libName.}
proc zsytrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
ipiv: ptr cint; work: ptr lapack_complex_double; lwork: ptr cint;
info: ptr cint) {.cdecl, importc: "zsytrf_", dynlib: libName.}
proc chetrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
ipiv: ptr cint; work: ptr lapack_complex_float; lwork: ptr cint;
info: ptr cint) {.cdecl, importc: "chetrf_", dynlib: libName.}
proc zhetrf*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
ipiv: ptr cint; work: ptr lapack_complex_double; lwork: ptr cint;
info: ptr cint) {.cdecl, importc: "zhetrf_", dynlib: libName.}
proc ssptrf*(uplo: cstring; n: ptr cint; ap: ptr cfloat; ipiv: ptr cint; info: ptr cint) {.
cdecl, importc: "ssptrf_", dynlib: libName.}
proc dsptrf*(uplo: cstring; n: ptr cint; ap: ptr cdouble; ipiv: ptr cint; info: ptr cint) {.
cdecl, importc: "dsptrf_", dynlib: libName.}
proc csptrf*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_float; ipiv: ptr cint;
info: ptr cint) {.cdecl, importc: "csptrf_", dynlib: libName.}
proc zsptrf*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_double; ipiv: ptr cint;
info: ptr cint) {.cdecl, importc: "zsptrf_", dynlib: libName.}
proc chptrf*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_float; ipiv: ptr cint;
info: ptr cint) {.cdecl, importc: "chptrf_", dynlib: libName.}
proc zhptrf*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_double; ipiv: ptr cint;
info: ptr cint) {.cdecl, importc: "zhptrf_", dynlib: libName.}
proc sgetrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat; lda: ptr cint;
ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "sgetrs_", dynlib: libName.}
proc dgetrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble; lda: ptr cint;
ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "dgetrs_", dynlib: libName.}
proc cgetrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; ipiv: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "cgetrs_", dynlib: libName.}
proc zgetrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; ipiv: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "zgetrs_", dynlib: libName.}
proc sgbtrs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr cfloat; ldab: ptr cint; ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "sgbtrs_", dynlib: libName.}
proc dgbtrs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr cdouble; ldab: ptr cint; ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "dgbtrs_", dynlib: libName.}
proc cgbtrs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "cgbtrs_", dynlib: libName.}
proc zgbtrs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "zgbtrs_", dynlib: libName.}
proc sgttrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr cfloat; d: ptr cfloat;
du: ptr cfloat; du2: ptr cfloat; ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "sgttrs_", dynlib: libName.}
proc dgttrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr cdouble; d: ptr cdouble;
du: ptr cdouble; du2: ptr cdouble; ipiv: ptr cint; b: ptr cdouble;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "dgttrs_", dynlib: libName.}
proc cgttrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr lapack_complex_float;
d: ptr lapack_complex_float; du: ptr lapack_complex_float;
du2: ptr lapack_complex_float; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "cgttrs_", dynlib: libName.}
proc zgttrs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr lapack_complex_double;
d: ptr lapack_complex_double; du: ptr lapack_complex_double;
du2: ptr lapack_complex_double; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "zgttrs_", dynlib: libName.}
proc spotrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat; lda: ptr cint;
b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl, importc: "spotrs_",
dynlib: libName.}
proc dpotrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble; lda: ptr cint;
b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl, importc: "dpotrs_",
dynlib: libName.}
proc cpotrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "cpotrs_", dynlib: libName.}
proc zpotrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "zpotrs_", dynlib: libName.}
proc dpftrs*(transr: cstring; uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble;
b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl, importc: "dpftrs_",
dynlib: libName.}
proc spftrs*(transr: cstring; uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat;
b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl, importc: "spftrs_",
dynlib: libName.}
proc zpftrs*(transr: cstring; uplo: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; b: ptr lapack_complex_double; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "zpftrs_", dynlib: libName.}
proc cpftrs*(transr: cstring; uplo: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; b: ptr lapack_complex_float; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "cpftrs_", dynlib: libName.}
proc spptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cfloat; b: ptr cfloat;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "spptrs_", dynlib: libName.}
proc dpptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cdouble; b: ptr cdouble;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "dpptrs_", dynlib: libName.}
proc cpptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_float;
b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "cpptrs_", dynlib: libName.}
proc zpptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_double;
b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "zpptrs_", dynlib: libName.}
proc spbtrs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint; ab: ptr cfloat;
ldab: ptr cint; b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "spbtrs_", dynlib: libName.}
proc dpbtrs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint; ab: ptr cdouble;
ldab: ptr cint; b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "dpbtrs_", dynlib: libName.}
proc cpbtrs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint; b: ptr lapack_complex_float;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "cpbtrs_", dynlib: libName.}
proc zpbtrs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "zpbtrs_", dynlib: libName.}
proc spttrs*(n: ptr cint; nrhs: ptr cint; d: ptr cfloat; e: ptr cfloat; b: ptr cfloat;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "spttrs_", dynlib: libName.}
proc dpttrs*(n: ptr cint; nrhs: ptr cint; d: ptr cdouble; e: ptr cdouble; b: ptr cdouble;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "dpttrs_", dynlib: libName.}
proc cpttrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; d: ptr cfloat;
e: ptr lapack_complex_float; b: ptr lapack_complex_float; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "cpttrs_", dynlib: libName.}
proc zpttrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; d: ptr cdouble;
e: ptr lapack_complex_double; b: ptr lapack_complex_double; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "zpttrs_", dynlib: libName.}
proc ssytrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat; lda: ptr cint;
ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "ssytrs_", dynlib: libName.}
proc dsytrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble; lda: ptr cint;
ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "dsytrs_", dynlib: libName.}
proc csytrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; ipiv: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "csytrs_", dynlib: libName.}
proc zsytrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; ipiv: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "zsytrs_", dynlib: libName.}
proc chetrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; ipiv: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "chetrs_", dynlib: libName.}
proc zhetrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; ipiv: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "zhetrs_", dynlib: libName.}
proc ssptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cfloat; ipiv: ptr cint;
b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl, importc: "ssptrs_",
dynlib: libName.}
proc dsptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cdouble; ipiv: ptr cint;
b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl, importc: "dsptrs_",
dynlib: libName.}
proc csptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_float;
ipiv: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "csptrs_", dynlib: libName.}
proc zsptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_double;
ipiv: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "zsptrs_", dynlib: libName.}
proc chptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_float;
ipiv: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "chptrs_", dynlib: libName.}
proc zhptrs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_double;
ipiv: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "zhptrs_", dynlib: libName.}
proc strtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr cfloat; lda: ptr cint; b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "strtrs_", dynlib: libName.}
proc dtrtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr cdouble; lda: ptr cint; b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.
cdecl, importc: "dtrtrs_", dynlib: libName.}
proc ctrtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; b: ptr lapack_complex_float;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "ctrtrs_", dynlib: libName.}
proc ztrtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint; b: ptr lapack_complex_double;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "ztrtrs_", dynlib: libName.}
proc stptrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr cfloat; b: ptr cfloat; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "stptrs_", dynlib: libName.}
proc dtptrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr cdouble; b: ptr cdouble; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "dtptrs_", dynlib: libName.}
proc ctptrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr lapack_complex_float; b: ptr lapack_complex_float; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "ctptrs_", dynlib: libName.}
proc ztptrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr lapack_complex_double; b: ptr lapack_complex_double;
ldb: ptr cint; info: ptr cint) {.cdecl, importc: "ztptrs_", dynlib: libName.}
proc stbtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
nrhs: ptr cint; ab: ptr cfloat; ldab: ptr cint; b: ptr cfloat; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "stbtrs_", dynlib: libName.}
proc dtbtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
nrhs: ptr cint; ab: ptr cdouble; ldab: ptr cint; b: ptr cdouble; ldb: ptr cint;
info: ptr cint) {.cdecl, importc: "dtbtrs_", dynlib: libName.}
proc ctbtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
nrhs: ptr cint; ab: ptr lapack_complex_float; ldab: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "ctbtrs_", dynlib: libName.}
proc ztbtrs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
nrhs: ptr cint; ab: ptr lapack_complex_double; ldab: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; info: ptr cint) {.cdecl,
importc: "ztbtrs_", dynlib: libName.}
proc sgecon*(norm: cstring; n: ptr cint; a: ptr cfloat; lda: ptr cint; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sgecon_", dynlib: libName.}
proc dgecon*(norm: cstring; n: ptr cint; a: ptr cdouble; lda: ptr cint; anorm: ptr cdouble;
rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dgecon_", dynlib: libName.}
proc cgecon*(norm: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr lapack_complex_float;
rwork: ptr cfloat; info: ptr cint) {.cdecl, importc: "cgecon_",
dynlib: libName.}
proc zgecon*(norm: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "zgecon_",
dynlib: libName.}
proc sgbcon*(norm: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; ab: ptr cfloat;
ldab: ptr cint; ipiv: ptr cint; anorm: ptr cfloat; rcond: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sgbcon_", dynlib: libName.}
proc dgbcon*(norm: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; ab: ptr cdouble;
ldab: ptr cint; ipiv: ptr cint; anorm: ptr cdouble; rcond: ptr cdouble;
work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dgbcon_", dynlib: libName.}
proc cgbcon*(norm: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint; ipiv: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr lapack_complex_float;
rwork: ptr cfloat; info: ptr cint) {.cdecl, importc: "cgbcon_",
dynlib: libName.}
proc zgbcon*(norm: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint; ipiv: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "zgbcon_",
dynlib: libName.}
proc sgtcon*(norm: cstring; n: ptr cint; dl: ptr cfloat; d: ptr cfloat; du: ptr cfloat;
du2: ptr cfloat; ipiv: ptr cint; anorm: ptr cfloat; rcond: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sgtcon_", dynlib: libName.}
proc dgtcon*(norm: cstring; n: ptr cint; dl: ptr cdouble; d: ptr cdouble; du: ptr cdouble;
du2: ptr cdouble; ipiv: ptr cint; anorm: ptr cdouble; rcond: ptr cdouble;
work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dgtcon_", dynlib: libName.}
proc cgtcon*(norm: cstring; n: ptr cint; dl: ptr lapack_complex_float;
d: ptr lapack_complex_float; du: ptr lapack_complex_float;
du2: ptr lapack_complex_float; ipiv: ptr cint; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr lapack_complex_float; info: ptr cint) {.cdecl,
importc: "cgtcon_", dynlib: libName.}
proc zgtcon*(norm: cstring; n: ptr cint; dl: ptr lapack_complex_double;
d: ptr lapack_complex_double; du: ptr lapack_complex_double;
du2: ptr lapack_complex_double; ipiv: ptr cint; anorm: ptr cdouble;
rcond: ptr cdouble; work: ptr lapack_complex_double; info: ptr cint) {.cdecl,
importc: "zgtcon_", dynlib: libName.}
proc spocon*(uplo: cstring; n: ptr cint; a: ptr cfloat; lda: ptr cint; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "spocon_", dynlib: libName.}
proc dpocon*(uplo: cstring; n: ptr cint; a: ptr cdouble; lda: ptr cint; anorm: ptr cdouble;
rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dpocon_", dynlib: libName.}
proc cpocon*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr lapack_complex_float;
rwork: ptr cfloat; info: ptr cint) {.cdecl, importc: "cpocon_",
dynlib: libName.}
proc zpocon*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "zpocon_",
dynlib: libName.}
proc sppcon*(uplo: cstring; n: ptr cint; ap: ptr cfloat; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sppcon_", dynlib: libName.}
proc dppcon*(uplo: cstring; n: ptr cint; ap: ptr cdouble; anorm: ptr cdouble;
rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dppcon_", dynlib: libName.}
proc cppcon*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_float; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "cppcon_", dynlib: libName.}
proc zppcon*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_double;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "zppcon_",
dynlib: libName.}
proc spbcon*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr cfloat; ldab: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "spbcon_", dynlib: libName.}
proc dpbcon*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr cdouble; ldab: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dpbcon_", dynlib: libName.}
proc cpbcon*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr lapack_complex_float;
ldab: ptr cint; anorm: ptr cfloat; rcond: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cpbcon_", dynlib: libName.}
proc zpbcon*(uplo: cstring; n: ptr cint; kd: ptr cint; ab: ptr lapack_complex_double;
ldab: ptr cint; anorm: ptr cdouble; rcond: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zpbcon_", dynlib: libName.}
proc sptcon*(n: ptr cint; d: ptr cfloat; e: ptr cfloat; anorm: ptr cfloat; rcond: ptr cfloat;
work: ptr cfloat; info: ptr cint) {.cdecl, importc: "sptcon_",
dynlib: libName.}
proc dptcon*(n: ptr cint; d: ptr cdouble; e: ptr cdouble; anorm: ptr cdouble;
rcond: ptr cdouble; work: ptr cdouble; info: ptr cint) {.cdecl,
importc: "dptcon_", dynlib: libName.}
proc cptcon*(n: ptr cint; d: ptr cfloat; e: ptr lapack_complex_float; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cptcon_", dynlib: libName.}
proc zptcon*(n: ptr cint; d: ptr cdouble; e: ptr lapack_complex_double;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr cdouble; info: ptr cint) {.
cdecl, importc: "zptcon_", dynlib: libName.}
proc ssycon*(uplo: cstring; n: ptr cint; a: ptr cfloat; lda: ptr cint; ipiv: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "ssycon_", dynlib: libName.}
proc dsycon*(uplo: cstring; n: ptr cint; a: ptr cdouble; lda: ptr cint; ipiv: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dsycon_", dynlib: libName.}
proc csycon*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
ipiv: ptr cint; anorm: ptr cfloat; rcond: ptr cfloat;
work: ptr lapack_complex_float; info: ptr cint) {.cdecl,
importc: "csycon_", dynlib: libName.}
proc zsycon*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
ipiv: ptr cint; anorm: ptr cdouble; rcond: ptr cdouble;
work: ptr lapack_complex_double; info: ptr cint) {.cdecl,
importc: "zsycon_", dynlib: libName.}
proc checon*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_float; lda: ptr cint;
ipiv: ptr cint; anorm: ptr cfloat; rcond: ptr cfloat;
work: ptr lapack_complex_float; info: ptr cint) {.cdecl,
importc: "checon_", dynlib: libName.}
proc zhecon*(uplo: cstring; n: ptr cint; a: ptr lapack_complex_double; lda: ptr cint;
ipiv: ptr cint; anorm: ptr cdouble; rcond: ptr cdouble;
work: ptr lapack_complex_double; info: ptr cint) {.cdecl,
importc: "zhecon_", dynlib: libName.}
proc sspcon*(uplo: cstring; n: ptr cint; ap: ptr cfloat; ipiv: ptr cint; anorm: ptr cfloat;
rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sspcon_", dynlib: libName.}
proc dspcon*(uplo: cstring; n: ptr cint; ap: ptr cdouble; ipiv: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dspcon_", dynlib: libName.}
proc cspcon*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_float; ipiv: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr lapack_complex_float;
info: ptr cint) {.cdecl, importc: "cspcon_", dynlib: libName.}
proc zspcon*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_double; ipiv: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr lapack_complex_double;
info: ptr cint) {.cdecl, importc: "zspcon_", dynlib: libName.}
proc chpcon*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_float; ipiv: ptr cint;
anorm: ptr cfloat; rcond: ptr cfloat; work: ptr lapack_complex_float;
info: ptr cint) {.cdecl, importc: "chpcon_", dynlib: libName.}
proc zhpcon*(uplo: cstring; n: ptr cint; ap: ptr lapack_complex_double; ipiv: ptr cint;
anorm: ptr cdouble; rcond: ptr cdouble; work: ptr lapack_complex_double;
info: ptr cint) {.cdecl, importc: "zhpcon_", dynlib: libName.}
proc strcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; a: ptr cfloat;
lda: ptr cint; rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "strcon_", dynlib: libName.}
proc dtrcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; a: ptr cdouble;
lda: ptr cint; rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dtrcon_", dynlib: libName.}
proc ctrcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; rcond: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "ctrcon_", dynlib: libName.}
proc ztrcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint; rcond: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "ztrcon_", dynlib: libName.}
proc stpcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; ap: ptr cfloat;
rcond: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "stpcon_", dynlib: libName.}
proc dtpcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; ap: ptr cdouble;
rcond: ptr cdouble; work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dtpcon_", dynlib: libName.}
proc ctpcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint;
ap: ptr lapack_complex_float; rcond: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "ctpcon_", dynlib: libName.}
proc ztpcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint;
ap: ptr lapack_complex_double; rcond: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "ztpcon_", dynlib: libName.}
proc stbcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
ab: ptr cfloat; ldab: ptr cint; rcond: ptr cfloat; work: ptr cfloat;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "stbcon_", dynlib: libName.}
proc dtbcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
ab: ptr cdouble; ldab: ptr cint; rcond: ptr cdouble; work: ptr cdouble;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "dtbcon_", dynlib: libName.}
proc ctbcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint; rcond: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "ctbcon_", dynlib: libName.}
proc ztbcon*(norm: cstring; uplo: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint; rcond: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "ztbcon_", dynlib: libName.}
proc sgerfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat; lda: ptr cint;
af: ptr cfloat; ldaf: ptr cint; ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint;
x: ptr cfloat; ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sgerfs_", dynlib: libName.}
proc dgerfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble; lda: ptr cint;
af: ptr cdouble; ldaf: ptr cint; ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint;
x: ptr cdouble; ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dgerfs_", dynlib: libName.}
proc cgerfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; af: ptr lapack_complex_float; ldaf: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cgerfs_", dynlib: libName.}
proc zgerfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; af: ptr lapack_complex_double; ldaf: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zgerfs_", dynlib: libName.}
proc dgerfsx*(trans: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble;
lda: ptr cint; af: ptr cdouble; ldaf: ptr cint; ipiv: ptr cint; r: ptr cdouble;
c: ptr cdouble; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
rcond: ptr cdouble; berr: ptr cdouble; n_err_bnds: ptr cint;
err_bnds_norm: ptr cdouble; err_bnds_comp: ptr cdouble;
nparams: ptr cint; params: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dgerfsx_", dynlib: libName.}
proc sgerfsx*(trans: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat;
lda: ptr cint; af: ptr cfloat; ldaf: ptr cint; ipiv: ptr cint; r: ptr cfloat;
c: ptr cfloat; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint;
rcond: ptr cfloat; berr: ptr cfloat; n_err_bnds: ptr cint;
err_bnds_norm: ptr cfloat; err_bnds_comp: ptr cfloat; nparams: ptr cint;
params: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sgerfsx_", dynlib: libName.}
proc zgerfsx*(trans: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint;
af: ptr lapack_complex_double; ldaf: ptr cint; ipiv: ptr cint;
r: ptr cdouble; c: ptr cdouble; b: ptr lapack_complex_double; ldb: ptr cint;
x: ptr lapack_complex_double; ldx: ptr cint; rcond: ptr cdouble;
berr: ptr cdouble; n_err_bnds: ptr cint; err_bnds_norm: ptr cdouble;
err_bnds_comp: ptr cdouble; nparams: ptr cint; params: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.
cdecl, importc: "zgerfsx_", dynlib: libName.}
proc cgerfsx*(trans: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; af: ptr lapack_complex_float;
ldaf: ptr cint; ipiv: ptr cint; r: ptr cfloat; c: ptr cfloat;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; rcond: ptr cfloat; berr: ptr cfloat; n_err_bnds: ptr cint;
err_bnds_norm: ptr cfloat; err_bnds_comp: ptr cfloat; nparams: ptr cint;
params: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "cgerfsx_", dynlib: libName.}
proc sgbrfs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr cfloat; ldab: ptr cint; afb: ptr cfloat; ldafb: ptr cint;
ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint;
ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "sgbrfs_", dynlib: libName.}
proc dgbrfs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr cdouble; ldab: ptr cint; afb: ptr cdouble; ldafb: ptr cint;
ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dgbrfs_", dynlib: libName.}
proc cgbrfs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint;
afb: ptr lapack_complex_float; ldafb: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cgbrfs_", dynlib: libName.}
proc zgbrfs*(trans: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint;
afb: ptr lapack_complex_double; ldafb: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zgbrfs_", dynlib: libName.}
proc dgbrfsx*(trans: cstring; equed: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint;
nrhs: ptr cint; ab: ptr cdouble; ldab: ptr cint; afb: ptr cdouble;
ldafb: ptr cint; ipiv: ptr cint; r: ptr cdouble; c: ptr cdouble;
b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
rcond: ptr cdouble; berr: ptr cdouble; n_err_bnds: ptr cint;
err_bnds_norm: ptr cdouble; err_bnds_comp: ptr cdouble;
nparams: ptr cint; params: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dgbrfsx_", dynlib: libName.}
proc sgbrfsx*(trans: cstring; equed: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint;
nrhs: ptr cint; ab: ptr cfloat; ldab: ptr cint; afb: ptr cfloat;
ldafb: ptr cint; ipiv: ptr cint; r: ptr cfloat; c: ptr cfloat; b: ptr cfloat;
ldb: ptr cint; x: ptr cfloat; ldx: ptr cint; rcond: ptr cfloat;
berr: ptr cfloat; n_err_bnds: ptr cint; err_bnds_norm: ptr cfloat;
err_bnds_comp: ptr cfloat; nparams: ptr cint; params: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sgbrfsx_", dynlib: libName.}
proc zgbrfsx*(trans: cstring; equed: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint;
nrhs: ptr cint; ab: ptr lapack_complex_double; ldab: ptr cint;
afb: ptr lapack_complex_double; ldafb: ptr cint; ipiv: ptr cint;
r: ptr cdouble; c: ptr cdouble; b: ptr lapack_complex_double; ldb: ptr cint;
x: ptr lapack_complex_double; ldx: ptr cint; rcond: ptr cdouble;
berr: ptr cdouble; n_err_bnds: ptr cint; err_bnds_norm: ptr cdouble;
err_bnds_comp: ptr cdouble; nparams: ptr cint; params: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.
cdecl, importc: "zgbrfsx_", dynlib: libName.}
proc cgbrfsx*(trans: cstring; equed: cstring; n: ptr cint; kl: ptr cint; ku: ptr cint;
nrhs: ptr cint; ab: ptr lapack_complex_float; ldab: ptr cint;
afb: ptr lapack_complex_float; ldafb: ptr cint; ipiv: ptr cint;
r: ptr cfloat; c: ptr cfloat; b: ptr lapack_complex_float; ldb: ptr cint;
x: ptr lapack_complex_float; ldx: ptr cint; rcond: ptr cfloat;
berr: ptr cfloat; n_err_bnds: ptr cint; err_bnds_norm: ptr cfloat;
err_bnds_comp: ptr cfloat; nparams: ptr cint; params: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cgbrfsx_", dynlib: libName.}
proc sgtrfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr cfloat; d: ptr cfloat;
du: ptr cfloat; dlf: ptr cfloat; df: ptr cfloat; duf: ptr cfloat;
du2: ptr cfloat; ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "sgtrfs_", dynlib: libName.}
proc dgtrfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr cdouble; d: ptr cdouble;
du: ptr cdouble; dlf: ptr cdouble; df: ptr cdouble; duf: ptr cdouble;
du2: ptr cdouble; ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "dgtrfs_", dynlib: libName.}
proc cgtrfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr lapack_complex_float;
d: ptr lapack_complex_float; du: ptr lapack_complex_float;
dlf: ptr lapack_complex_float; df: ptr lapack_complex_float;
duf: ptr lapack_complex_float; du2: ptr lapack_complex_float;
ipiv: ptr cint; b: ptr lapack_complex_float; ldb: ptr cint;
x: ptr lapack_complex_float; ldx: ptr cint; ferr: ptr cfloat;
berr: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "cgtrfs_", dynlib: libName.}
proc zgtrfs*(trans: cstring; n: ptr cint; nrhs: ptr cint; dl: ptr lapack_complex_double;
d: ptr lapack_complex_double; du: ptr lapack_complex_double;
dlf: ptr lapack_complex_double; df: ptr lapack_complex_double;
duf: ptr lapack_complex_double; du2: ptr lapack_complex_double;
ipiv: ptr cint; b: ptr lapack_complex_double; ldb: ptr cint;
x: ptr lapack_complex_double; ldx: ptr cint; ferr: ptr cdouble;
berr: ptr cdouble; work: ptr lapack_complex_double; rwork: ptr cdouble;
info: ptr cint) {.cdecl, importc: "zgtrfs_", dynlib: libName.}
proc sporfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat; lda: ptr cint;
af: ptr cfloat; ldaf: ptr cint; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "sporfs_", dynlib: libName.}
proc dporfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble; lda: ptr cint;
af: ptr cdouble; ldaf: ptr cint; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "dporfs_", dynlib: libName.}
proc cporfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; af: ptr lapack_complex_float; ldaf: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cporfs_", dynlib: libName.}
proc zporfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; af: ptr lapack_complex_double; ldaf: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zporfs_", dynlib: libName.}
proc dporfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble;
lda: ptr cint; af: ptr cdouble; ldaf: ptr cint; s: ptr cdouble; b: ptr cdouble;
ldb: ptr cint; x: ptr cdouble; ldx: ptr cint; rcond: ptr cdouble;
berr: ptr cdouble; n_err_bnds: ptr cint; err_bnds_norm: ptr cdouble;
err_bnds_comp: ptr cdouble; nparams: ptr cint; params: ptr cdouble;
work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dporfsx_", dynlib: libName.}
proc sporfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat;
lda: ptr cint; af: ptr cfloat; ldaf: ptr cint; s: ptr cfloat; b: ptr cfloat;
ldb: ptr cint; x: ptr cfloat; ldx: ptr cint; rcond: ptr cfloat;
berr: ptr cfloat; n_err_bnds: ptr cint; err_bnds_norm: ptr cfloat;
err_bnds_comp: ptr cfloat; nparams: ptr cint; params: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "sporfsx_", dynlib: libName.}
proc zporfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint;
af: ptr lapack_complex_double; ldaf: ptr cint; s: ptr cdouble;
b: ptr lapack_complex_double; ldb: ptr cint;
x: ptr lapack_complex_double; ldx: ptr cint; rcond: ptr cdouble;
berr: ptr cdouble; n_err_bnds: ptr cint; err_bnds_norm: ptr cdouble;
err_bnds_comp: ptr cdouble; nparams: ptr cint; params: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.
cdecl, importc: "zporfsx_", dynlib: libName.}
proc cporfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; af: ptr lapack_complex_float;
ldaf: ptr cint; s: ptr cfloat; b: ptr lapack_complex_float; ldb: ptr cint;
x: ptr lapack_complex_float; ldx: ptr cint; rcond: ptr cfloat;
berr: ptr cfloat; n_err_bnds: ptr cint; err_bnds_norm: ptr cfloat;
err_bnds_comp: ptr cfloat; nparams: ptr cint; params: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cporfsx_", dynlib: libName.}
proc spprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cfloat; afp: ptr cfloat;
b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint; ferr: ptr cfloat;
berr: ptr cfloat; work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "spprfs_", dynlib: libName.}
proc dpprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cdouble; afp: ptr cdouble;
b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint; ferr: ptr cdouble;
berr: ptr cdouble; work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dpprfs_", dynlib: libName.}
proc cpprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_float;
afp: ptr lapack_complex_float; b: ptr lapack_complex_float; ldb: ptr cint;
x: ptr lapack_complex_float; ldx: ptr cint; ferr: ptr cfloat;
berr: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "cpprfs_", dynlib: libName.}
proc zpprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_double;
afp: ptr lapack_complex_double; b: ptr lapack_complex_double;
ldb: ptr cint; x: ptr lapack_complex_double; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "zpprfs_",
dynlib: libName.}
proc spbrfs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint; ab: ptr cfloat;
ldab: ptr cint; afb: ptr cfloat; ldafb: ptr cint; b: ptr cfloat; ldb: ptr cint;
x: ptr cfloat; ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "spbrfs_", dynlib: libName.}
proc dpbrfs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint; ab: ptr cdouble;
ldab: ptr cint; afb: ptr cdouble; ldafb: ptr cint; b: ptr cdouble;
ldb: ptr cint; x: ptr cdouble; ldx: ptr cint; ferr: ptr cdouble;
berr: ptr cdouble; work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dpbrfs_", dynlib: libName.}
proc cpbrfs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_float; ldab: ptr cint;
afb: ptr lapack_complex_float; ldafb: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cpbrfs_", dynlib: libName.}
proc zpbrfs*(uplo: cstring; n: ptr cint; kd: ptr cint; nrhs: ptr cint;
ab: ptr lapack_complex_double; ldab: ptr cint;
afb: ptr lapack_complex_double; ldafb: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zpbrfs_", dynlib: libName.}
proc sptrfs*(n: ptr cint; nrhs: ptr cint; d: ptr cfloat; e: ptr cfloat; df: ptr cfloat;
ef: ptr cfloat; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint;
ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat; info: ptr cint) {.cdecl,
importc: "sptrfs_", dynlib: libName.}
proc dptrfs*(n: ptr cint; nrhs: ptr cint; d: ptr cdouble; e: ptr cdouble; df: ptr cdouble;
ef: ptr cdouble; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble; info: ptr cint) {.
cdecl, importc: "dptrfs_", dynlib: libName.}
proc cptrfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; d: ptr cfloat;
e: ptr lapack_complex_float; df: ptr cfloat; ef: ptr lapack_complex_float;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cptrfs_", dynlib: libName.}
proc zptrfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; d: ptr cdouble;
e: ptr lapack_complex_double; df: ptr cdouble;
ef: ptr lapack_complex_double; b: ptr lapack_complex_double;
ldb: ptr cint; x: ptr lapack_complex_double; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "zptrfs_",
dynlib: libName.}
proc ssyrfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat; lda: ptr cint;
af: ptr cfloat; ldaf: ptr cint; ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint;
x: ptr cfloat; ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "ssyrfs_", dynlib: libName.}
proc dsyrfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble; lda: ptr cint;
af: ptr cdouble; ldaf: ptr cint; ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint;
x: ptr cdouble; ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "dsyrfs_", dynlib: libName.}
proc csyrfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; af: ptr lapack_complex_float; ldaf: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "csyrfs_", dynlib: libName.}
proc zsyrfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; af: ptr lapack_complex_double; ldaf: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zsyrfs_", dynlib: libName.}
proc dsyrfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cdouble;
lda: ptr cint; af: ptr cdouble; ldaf: ptr cint; ipiv: ptr cint; s: ptr cdouble;
b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
rcond: ptr cdouble; berr: ptr cdouble; n_err_bnds: ptr cint;
err_bnds_norm: ptr cdouble; err_bnds_comp: ptr cdouble;
nparams: ptr cint; params: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dsyrfsx_", dynlib: libName.}
proc ssyrfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint; a: ptr cfloat;
lda: ptr cint; af: ptr cfloat; ldaf: ptr cint; ipiv: ptr cint; s: ptr cfloat;
b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint; rcond: ptr cfloat;
berr: ptr cfloat; n_err_bnds: ptr cint; err_bnds_norm: ptr cfloat;
err_bnds_comp: ptr cfloat; nparams: ptr cint; params: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "ssyrfsx_", dynlib: libName.}
proc zsyrfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint;
af: ptr lapack_complex_double; ldaf: ptr cint; ipiv: ptr cint;
s: ptr cdouble; b: ptr lapack_complex_double; ldb: ptr cint;
x: ptr lapack_complex_double; ldx: ptr cint; rcond: ptr cdouble;
berr: ptr cdouble; n_err_bnds: ptr cint; err_bnds_norm: ptr cdouble;
err_bnds_comp: ptr cdouble; nparams: ptr cint; params: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.
cdecl, importc: "zsyrfsx_", dynlib: libName.}
proc csyrfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; af: ptr lapack_complex_float;
ldaf: ptr cint; ipiv: ptr cint; s: ptr cfloat; b: ptr lapack_complex_float;
ldb: ptr cint; x: ptr lapack_complex_float; ldx: ptr cint;
rcond: ptr cfloat; berr: ptr cfloat; n_err_bnds: ptr cint;
err_bnds_norm: ptr cfloat; err_bnds_comp: ptr cfloat; nparams: ptr cint;
params: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "csyrfsx_", dynlib: libName.}
proc cherfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_float;
lda: ptr cint; af: ptr lapack_complex_float; ldaf: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "cherfs_", dynlib: libName.}
proc zherfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; a: ptr lapack_complex_double;
lda: ptr cint; af: ptr lapack_complex_double; ldaf: ptr cint; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zherfs_", dynlib: libName.}
proc zherfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint;
af: ptr lapack_complex_double; ldaf: ptr cint; ipiv: ptr cint;
s: ptr cdouble; b: ptr lapack_complex_double; ldb: ptr cint;
x: ptr lapack_complex_double; ldx: ptr cint; rcond: ptr cdouble;
berr: ptr cdouble; n_err_bnds: ptr cint; err_bnds_norm: ptr cdouble;
err_bnds_comp: ptr cdouble; nparams: ptr cint; params: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.
cdecl, importc: "zherfsx_", dynlib: libName.}
proc cherfsx*(uplo: cstring; equed: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; af: ptr lapack_complex_float;
ldaf: ptr cint; ipiv: ptr cint; s: ptr cfloat; b: ptr lapack_complex_float;
ldb: ptr cint; x: ptr lapack_complex_float; ldx: ptr cint;
rcond: ptr cfloat; berr: ptr cfloat; n_err_bnds: ptr cint;
err_bnds_norm: ptr cfloat; err_bnds_comp: ptr cfloat; nparams: ptr cint;
params: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "cherfsx_", dynlib: libName.}
proc ssprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cfloat; afp: ptr cfloat;
ipiv: ptr cint; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint;
ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "ssprfs_", dynlib: libName.}
proc dsprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr cdouble; afp: ptr cdouble;
ipiv: ptr cint; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dsprfs_", dynlib: libName.}
proc csprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_float;
afp: ptr lapack_complex_float; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "csprfs_", dynlib: libName.}
proc zsprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_double;
afp: ptr lapack_complex_double; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zsprfs_", dynlib: libName.}
proc chprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_float;
afp: ptr lapack_complex_float; ipiv: ptr cint;
b: ptr lapack_complex_float; ldb: ptr cint; x: ptr lapack_complex_float;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr lapack_complex_float; rwork: ptr cfloat; info: ptr cint) {.cdecl,
importc: "chprfs_", dynlib: libName.}
proc zhprfs*(uplo: cstring; n: ptr cint; nrhs: ptr cint; ap: ptr lapack_complex_double;
afp: ptr lapack_complex_double; ipiv: ptr cint;
b: ptr lapack_complex_double; ldb: ptr cint; x: ptr lapack_complex_double;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr lapack_complex_double; rwork: ptr cdouble; info: ptr cint) {.cdecl,
importc: "zhprfs_", dynlib: libName.}
proc strrfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr cfloat; lda: ptr cint; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat;
ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "strrfs_", dynlib: libName.}
proc dtrrfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr cdouble; lda: ptr cint; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble;
ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble;
iwork: ptr cint; info: ptr cint) {.cdecl, importc: "dtrrfs_", dynlib: libName.}
proc ctrrfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_float; lda: ptr cint; b: ptr lapack_complex_float;
ldb: ptr cint; x: ptr lapack_complex_float; ldx: ptr cint; ferr: ptr cfloat;
berr: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "ctrrfs_", dynlib: libName.}
proc ztrrfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
a: ptr lapack_complex_double; lda: ptr cint; b: ptr lapack_complex_double;
ldb: ptr cint; x: ptr lapack_complex_double; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "ztrrfs_",
dynlib: libName.}
proc stprfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr cfloat; b: ptr cfloat; ldb: ptr cint; x: ptr cfloat; ldx: ptr cint;
ferr: ptr cfloat; berr: ptr cfloat; work: ptr cfloat; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "stprfs_", dynlib: libName.}
proc dtprfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr cdouble; b: ptr cdouble; ldb: ptr cint; x: ptr cdouble; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr cdouble; iwork: ptr cint;
info: ptr cint) {.cdecl, importc: "dtprfs_", dynlib: libName.}
proc ctprfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr lapack_complex_float; b: ptr lapack_complex_float; ldb: ptr cint;
x: ptr lapack_complex_float; ldx: ptr cint; ferr: ptr cfloat;
berr: ptr cfloat; work: ptr lapack_complex_float; rwork: ptr cfloat;
info: ptr cint) {.cdecl, importc: "ctprfs_", dynlib: libName.}
proc ztprfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; nrhs: ptr cint;
ap: ptr lapack_complex_double; b: ptr lapack_complex_double;
ldb: ptr cint; x: ptr lapack_complex_double; ldx: ptr cint;
ferr: ptr cdouble; berr: ptr cdouble; work: ptr lapack_complex_double;
rwork: ptr cdouble; info: ptr cint) {.cdecl, importc: "ztprfs_",
dynlib: libName.}
proc stbrfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
nrhs: ptr cint; ab: ptr cfloat; ldab: ptr cint; b: ptr cfloat; ldb: ptr cint;
x: ptr cfloat; ldx: ptr cint; ferr: ptr cfloat; berr: ptr cfloat;
work: ptr cfloat; iwork: ptr cint; info: ptr cint) {.cdecl,
importc: "stbrfs_", dynlib: libName.}
proc dtbrfs*(uplo: cstring; trans: cstring; diag: cstring; n: ptr cint; kd: ptr cint;
nrhs: ptr cint; ab: ptr cdouble; ldab: ptr cint; b: ptr cdouble; ldb: ptr cint;
x: ptr cdouble; ldx: ptr cint; ferr: ptr cdouble; berr: ptr cdouble;
work: ptr cdouble; iwork: ptr cint; info: ptr cint) {.cdecl,