[Numpy-discussion] add .H attribute?
fperez.net at gmail.com
Tue Jul 23 04:07:27 EDT 2013
On Tue, Jul 23, 2013 at 12:35 AM, Dave Hirschfeld
<dave.hirschfeld at gmail.com> wrote:
> Alan G Isaac <alan.isaac <at> gmail.com> writes:
>> On 7/22/2013 3:10 PM, Nathaniel Smith wrote:
>> > Having .T but not .H is an example of this split.
>> Hate to do this but ...
>> Readability counts.
> A.conjugate().transpose() is unspeakably horrible IMHO. Since there's no way
> to avoid a copy you gain nothing by not providing the convenience function.
Silly suggestion: why not just make .H a callable?
is nearly as short/handy as .H, it fits easily into the mnemonic
pattern suggested by .T, yet the extra () are indicative that
something potentially big/expensive is happening...
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
More information about the NumPy-Discussion