Conjugate transpose: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: relabeled initial code block -- this task has multiple parts.)
Line 1,735: Line 1,735:
=={{header|J}}==
=={{header|J}}==


'''Solution''': <syntaxhighlight lang="j"> ct =: +@|: NB. Conjugate transpose (ct A is A_ct)</syntaxhighlight>
'''Conjugate transpose:''' <syntaxhighlight lang="j"> ct =: +@|: NB. Conjugate transpose (ct A is A_ct)</syntaxhighlight>


<code>+</code> when used without a left argument is conjugate, <code>|:</code> is transpose, and <code>@</code> composes functions.
<code>+</code> when used without a left argument is conjugate, <code>|:</code> is transpose, and <code>@</code> composes functions.