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
|
from typing import Final, TypedDict, type_check_only
import numpy as np
from numpy._typing import NDArray
from ._linalg import fortran_int
###
@type_check_only
class _GELSD(TypedDict):
m: int
n: int
nrhs: int
lda: int
ldb: int
rank: int
lwork: int
info: int
@type_check_only
class _DGELSD(_GELSD):
dgelsd_: int
rcond: float
@type_check_only
class _ZGELSD(_GELSD):
zgelsd_: int
@type_check_only
class _GEQRF(TypedDict):
m: int
n: int
lda: int
lwork: int
info: int
@type_check_only
class _DGEQRF(_GEQRF):
dgeqrf_: int
@type_check_only
class _ZGEQRF(_GEQRF):
zgeqrf_: int
@type_check_only
class _DORGQR(TypedDict):
dorgqr_: int
info: int
@type_check_only
class _ZUNGQR(TypedDict):
zungqr_: int
info: int
###
_ilp64: Final[bool] = ...
def dgelsd(
m: int,
n: int,
nrhs: int,
a: NDArray[np.float64],
lda: int,
b: NDArray[np.float64],
ldb: int,
s: NDArray[np.float64],
rcond: float,
rank: int,
work: NDArray[np.float64],
lwork: int,
iwork: NDArray[fortran_int],
info: int,
) -> _DGELSD: ...
def zgelsd(
m: int,
n: int,
nrhs: int,
a: NDArray[np.complex128],
lda: int,
b: NDArray[np.complex128],
ldb: int,
s: NDArray[np.float64],
rcond: float,
rank: int,
work: NDArray[np.complex128],
lwork: int,
rwork: NDArray[np.float64],
iwork: NDArray[fortran_int],
info: int,
) -> _ZGELSD: ...
#
def dgeqrf(
m: int,
n: int,
a: NDArray[np.float64], # in/out, shape: (lda, n)
lda: int,
tau: NDArray[np.float64], # out, shape: (min(m, n),)
work: NDArray[np.float64], # out, shape: (max(1, lwork),)
lwork: int,
info: int, # out
) -> _DGEQRF: ...
def zgeqrf(
m: int,
n: int,
a: NDArray[np.complex128], # in/out, shape: (lda, n)
lda: int,
tau: NDArray[np.complex128], # out, shape: (min(m, n),)
work: NDArray[np.complex128], # out, shape: (max(1, lwork),)
lwork: int,
info: int, # out
) -> _ZGEQRF: ...
#
def dorgqr(
m: int, # >=0
n: int, # m >= n >= 0
k: int, # n >= k >= 0
a: NDArray[np.float64], # in/out, shape: (lda, n)
lda: int, # >= max(1, m)
tau: NDArray[np.float64], # in, shape: (k,)
work: NDArray[np.float64], # out, shape: (max(1, lwork),)
lwork: int,
info: int, # out
) -> _DORGQR: ...
def zungqr(
m: int,
n: int,
k: int,
a: NDArray[np.complex128],
lda: int,
tau: NDArray[np.complex128],
work: NDArray[np.complex128],
lwork: int,
info: int,
) -> _ZUNGQR: ...
#
def xerbla(srname: object, info: int) -> None: ...
|