aspcore.matrices.is_pos_semidef

aspcore.matrices.is_pos_semidef(mat)

Returns true if mat is positive semidefinite, false otherwise

Parameters:

mat (ndarray of shape (a, a) or (*tpl, a, a)) – if ndim > 2, then the array is interpreted as an array of multiple matrices

Returns:

is_pos_semidef

Return type:

bool or ndarray of shape tpl