This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _trustregion_exact / singular_leading_submatrix

function

scipy.optimize._trustregion_exact:singular_leading_submatrix

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_trustregion_exact.py:148

Signature

def singular_leading_submatrix(A, U, k)

Summary

Compute term that makes the leading k by k submatrix from A singular.

Parameters

A : ndarray

Symmetric matrix that is not positive definite.

U : ndarray

Upper triangular matrix resulting of an incomplete Cholesky decomposition of matrix A.

k : int

Positive integer such that the leading k by k submatrix from A is the first non-positive definite leading submatrix.

Returns

delta : float

Amount that should be added to the element (k, k) of the leading k by k submatrix of A to make it singular.

v : ndarray

A vector such that v.T B v = 0. Where B is the matrix A after delta is added to its element (k, k).

Aliases

  • scipy.optimize._trustregion_exact.singular_leading_submatrix