From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 107079,bf6542399c65f391 X-Google-Attributes: gid107079,public X-Google-Thread: 103376,bf6542399c65f391 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: Ada implementation of QR decomposition Date: 1997/07/25 Message-ID: <33D88188.F6871789@elca-matrix.ch>#1/1 X-Deja-AN: 258709654 References: <33D7607A.52BFA1D7@digicomp.com> X-Priority: 3 (Normal) Organization: ELCA Matrix SA Reply-To: Mats.Weber@elca-matrix.ch Newsgroups: comp.lang.ada,sci.math.num-analysis Date: 1997-07-25T00:00:00+00:00 List-Id: I don't know what a QR decomposition is, but I have a generic component that does this: -- Decomposes A in a product of two matrices L and U such that L*U = A, -- where L is a lower triangular matrix with all diagonal -- coefficients equal to ONE and U is an upper triangular matrix. -- (L and U are stored in A with zero coefficients omitted) -- P is the permutation of the rows of A necessary to achieve the -- decomposition in the case of zero pivots, P_ODD is set to TRUE if P -- is an odd permutation and PERMUTED is set to FALSE if P is the -- identity permutation. It is not 100% suitable for numerical work (I used it for operations in finite fields) because it doesn't choose the pivot very effectively (it just makes sure it is non-zero), but that should be easy to change. Just tell me if it suits your needs and I'll post it.