scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
signm(A, disp=True)

Extension of the scalar sign(x) to matrices.

Parameters

A : (N, N) array_like

Matrix at which to evaluate the sign function

disp : bool, optional

Print warning if error in the result is estimated large instead of returning estimated error. (Default: True)

Returns

signm : (N, N) ndarray

Value of the sign function at A

errest : float

(if disp == False)

1-norm of the estimated error, ||err||_1 / ||A||_1

Matrix sign function.

Examples

>>> from scipy.linalg import signm, eigvals
... a = [[1,2,3], [1,2,1], [1,1,1]]
... eigvals(a) array([ 4.12488542+0.j, -0.76155718+0.j, 0.63667176+0.j])
>>> eigvals(signm(a))
array([-1.+0.j,  1.+0.j,  1.+0.j])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.special._ellip_harm.ellip_harm scipy.linalg._matfuncs.signm

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/linalg/_matfuncs.py#592
type: <class 'function'>
Commit: