NAME
qr_decompose - Decomposes a matrix into the product of an orthonormal matrix (Q) and an
SYNOPSIS
#include "n/n_qr.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int qr_decompose
(
const Matrix *mp,
Matrix **Q_mpp,
Matrix **R_mpp
);
DESCRIPTION
upper-triangular matrix (R).
Given an m x n matrix A, this routine computes A = Q*R, where Q is an m x m
orthonormal matrix, and and R is an m x n upper-triangular matrix. If
m < n, R will actually be upper-trapezoidal; if m > n, rows m+1:n of R will
be zero.
RETURNS
NO_ERROR on success, and ERROR on failure, with an appropriate error
message being set.
NOTE
This routine requires that that the LAPACK library is available. If this
file was compiled without the presence of that library, then this routine
will return ERROR.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kyle Simek
DOCUMENTER
Kobus Barnard
SEE ALSO
rq_decompose
,
ql_decompose
,
lq_decompose