From: Andrew N. <aln...@st...> - 2003-09-04 15:48:55
|
Konrad Hinsen <hi...@cn...> writes: > On Thursday 04 September 2003 16:42, Andrew Nesbit wrote: >> I need a function equivalent to Matlab's sqrtm, i.e., a square root >> for matrices. [snip] > I'd use an eigenvalue decomposition, then take the square root of the > eigenvalues, and then apply the diagonlization matrix in reverse. If you > convert to eigenvalues to complex before taking the square root, this will > work for non-positive-definite matrices, yielding a complex result. Thankyou for the advice. This gives me a good starting point. Andrew. |