I want to solve the following in a least-squares sense:
H = dot(A, B) + dot(A.conj(), C)
where the complex matrices H
, B
and C
are known. The remaining complex matrix A
(with its complex conjugate) is being searched.
I tried computing it with the (Python) numpy function:
x, res, r, singval = np.linalg.lstsq(np.vstack((B, C)), H)
However the results are not in a shape that I want( --> array((A, A.conj())
).
How can I solve this?