scipy.linalg.lapack.strttp#

scipy.linalg.lapack.strttp(a, uplo='U') = <flapack function strttp>#

Convert a triangle from full (TR) to packed (TP) storage (LAPACK strttp).

Parameters:
andarray

Square matrix of shape (n, n); only the triangle named by uplo is read.

uplostr, optional

'U' if the matrix is upper triangular, 'L' if lower. Default is 'U'.

Returns:
apndarray

The triangle in packed storage (TP).

infoint

0 on success; if negative, the -info-th argument had an illegal value.