How to resolve the algorithm Conjugate transpose step by step in the Factor programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Conjugate transpose step by step in the Factor programming language
Table of Contents
Problem Statement
Suppose that a matrix
M
{\displaystyle M}
contains complex numbers. Then the conjugate transpose of
M
{\displaystyle M}
is a matrix
M
H
{\displaystyle M^{H}}
containing the complex conjugates of the matrix transposition of
M
{\displaystyle M}
.
This means that row
j
{\displaystyle j}
, column
i
{\displaystyle i}
of the conjugate transpose equals the complex conjugate of row
i
{\displaystyle i}
, column
j
{\displaystyle j}
of the original matrix.
In the next list,
M
{\displaystyle M}
must also be a square matrix.
Given some matrix of complex numbers, find its conjugate transpose. Also determine if the matrix is a:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Conjugate transpose step by step in the Factor programming language
Source code in the factor programming language
USING: kernel math.functions math.matrices sequences ;
IN: rosetta.hermitian
: conj-t ( matrix -- conjugate-transpose )
flip [ [ conjugate ] map ] map ;
: hermitian-matrix? ( matrix -- ? )
dup conj-t = ;
: normal-matrix? ( matrix -- ? )
dup conj-t [ m. ] [ swap m. ] 2bi = ;
: unitary-matrix? ( matrix -- ? )
[ dup conj-t m. ] [ length identity-matrix ] bi = ;
You may also check:How to resolve the algorithm Hofstadter Q sequence step by step in the Action! programming language
You may also check:How to resolve the algorithm Longest increasing subsequence step by step in the Prolog programming language
You may also check:How to resolve the algorithm I before E except after C step by step in the V (Vlang) programming language
You may also check:How to resolve the algorithm Define a primitive data type step by step in the Kotlin programming language
You may also check:How to resolve the algorithm Haversine formula step by step in the D programming language