bundles / scipy latest / scipy / linalg / _flapack / dorcsd
lapack_function
scipy.linalg._flapack:dorcsd
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def dorcsd(x11, x12, x21, x22, compute_u1 = 1, compute_u2 = 1, compute_v1t = 1, compute_v2t = 1, trans = 0, signs = 0, lwork = Ellipsis, overwrite_x11 = 0, overwrite_x12 = 0, overwrite_x21 = 0, overwrite_x22 = 0)Summary
CS decomposition of a partitioned orthogonal matrix (LAPACK dorcsd).
Extended Summary
The matrix arrives as its four blocks and comes back transformed, alongside the angles theta and the four factors.
Parameters
x11: ndarrayLeading block, shape
(p, q); it setspandq.x12: ndarrayUpper right block, shape
(p, m - q).x21: ndarrayLower left block, shape
(m - p, q).x22: ndarrayTrailing block, shape
(m - p, m - q); withx11it setsm.compute_u1: int, optionalIf nonzero, u1 is computed. Default is 1.
compute_u2: int, optionalIf nonzero, u2 is computed. Default is 1.
compute_v1t: int, optionalIf nonzero, v1t is computed. Default is 1.
compute_v2t: int, optionalIf nonzero, v2t is computed. Default is 1.
trans: int, optionalIf nonzero, the blocks are read row-major rather than column-major. Default is 0.
signs: int, optionalIf nonzero, the alternate sign convention is used. Default is 0.
lwork: int, optionalWorkspace size; -1 requests the query. Query it with
dorcsd_lwork.overwrite_x11, overwrite_x12, overwrite_x21, overwrite_x22: int, optionalIf nonzero, the matching block may be overwritten in place. Default is 0.
Returns
cs11, cs12, cs21, cs22: ndarrayThe transformed blocks.
theta: ndarrayThe CS angles, length
min(p, m - p, q, m - q). Real for every flavor.u1, u2, v1t, v2t: ndarrayThe factors, each empty unless its
compute_*flag was set.info: int0 on success; if negative, the
-info-th argument had an illegal value.
Aliases
scipy.linalg._flapack.dorcsd