ALGLIB forum
It is currently Wed May 29, 2024 1:26 am

All times are UTC

Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Ask about data structures
PostPosted: Thu Mar 14, 2019 8:02 pm 

Joined: Thu Mar 14, 2019 7:43 pm
Posts: 1
Sorry fo my English

I need

I need to get a product of the form L 'M L, where M is the matrix, L L' is the decomposition of Cholesky of another symmetric matrix W.

It is recommended to use spdmatrixcholesky to obtain Cholesky decomposition. The input is real_2d_array W.
As I understood, it is necessary to specify isUpper = false.


In this case, the input matrix W will be converted (in place) to W', the lower part of which will contain a triangular matrix of decomposition of Cholesky L from W, the upper part of W does not change.

According to the documentation, I assume that I can immediately use such a "mixed matrix" (bottom - result, top - the rest of the original data) in operations with matrices. For example, to multiply M left by L', I have to make a call


expecting the matrix W' (contains at the bottom of L from W) to be transposed, the resulting l' will be multiplied by M and the result will be stored in M.

In this case, the upper part of the matrix W' (after transposition - the lower) does not participate in the process and its contents do not affect the result. I don't have to clean it, etc.

Do I understand the documentation correctly?

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group