MatOrthColumns

Perform a QR factorization.

Synopsis

PetscErrorCode MatOrthColumns(Mat A, MatOrthType type, MatOrthForm form, Mat *Q_new, Mat *S_new)
Collective on Mat

Input Parameter

A - the matrix whose columns will be orthonormalized
type - the algorithm used for orthonormalization (one of MAT_ORTH_NONE, MAT_ORTH_GS, MAT_ORTH_CHOLESKY, MAT_ORTH_CHOLESKY_EXPLICIT)
form - specify whether Q is computed explicitly or as an implicit product of A and S (one of MAT_ORTH_FORM_IMPLICIT, MAT_ORTH_FORM_EXPLICIT)

Output Parameter

Q_new - (optional) the Q factor of the same size as A
S_new - (optional) the inverse of the R factor

Notes

This routine computes Q and S so that A = Q*inv(S), Q = A*S.

See Also

MatOrthRows(), MatOrthType

Level:intermediate
Location:
src/mat/interface/fllopmatorth.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages