简体   繁体   中英

Matrix Decomposition

I have a square n*n matrix S that has to be decomposed into a product of two matrices - A1 and A2, where A2 is transposed matrix to A1 (A2=A1^T) , so A1 * A2 = S. Are there any algorithms to do such operation effectively? C#/C++ solution would be nice.

As Andrei suggested, it seems you are trying to do Cholesky Decomposition.

There is provided C++ code in polish wiki site for it .

There is also separate subsection in "Numerical recipes in C" (2.9 Cholesky decomposition, can be found here: http://www.nrbook.com/a/bookcpdf/c2-9.pdf )

在这种情况下,您可能需要http://en.wikipedia.org/wiki/Cholesky_decomposition

I'm not quite sure what you want to do but

here is the GSL lib that might help

14 Linear Algebra

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM