Sign function (Signum function)

 

A.comsign(), a sign function that only handles complex number. Returns a same-size sequence where each element is A/A.comabs().


A

1

=[[1,2],[3,4],[5,6],[7,8],[5,0],[-5,0],[-8,-9],[-0.3,5],[3,-4],[0,0],[0,3],[0,-2]]

2

=A1.comsign()

A2 Perform the sign function of A1

..