It is very convenient in numpy to use the .T attribute to get a transposed version of an ndarray. However, there is no similar way to get the conj
.T
ndarray
You can subclass the ndarray object like:
from numpy import ndarray class myarray(ndarray): @property def H(self): return self.conj().T
such that:
a = np.random.random((3, 3)).view(myarray) a.H
will give you the desired behavior.