~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to CXSparse/MATLAB/CSparse/cs_sqr.m

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2007-05-29 09:36:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529093629-zowquo0b7slkk6nc
Tags: 3.0.0-2
* suitesparse builds properly twice in a row
* Bug fix: "suitesparse - FTBFS: Broken build depens: libgfortran1-dev",
  thanks to Bastian Blank (Closes: #426349).
* Bug fix: "suitesparse_3.0.0-1: FTBFS: build-depends on
  libgfortran1-dev", thanks to Steve Langasek (Closes: #426354).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function [vnz,rnz,parent,c,leftmost,p,q] = cs_sqr (A)                       %#ok
 
2
%CS_SQR symbolic sparse QR factorization.
 
3
%   [vnz,rnz,parent,c,leftmost,p] = cs_sqr(A): symbolic QR of A(p,:).
 
4
%   [vnz,rnz,parent,c,leftmost,p,q] = cs_sqr(A) computes the symbolic QR
 
5
%   factorization of A(p,q).  The fill-reducing ordering q is found via
 
6
%   q = cs_amd(A,3).
 
7
%
 
8
%   vnz is the number of entries in the matrix of Householder vectors, V.
 
9
%   rnz is the number of entries in R.  parent is elimination tree.
 
10
%   c(i) is the number of entries in R(i,:).  leftmost(i) = min(find(A(i,q))).
 
11
%   p is the row permutation used to ensure R has a symbolically zero-free
 
12
%   diagonal (it can be larger than m if A is structurally rank deficient).
 
13
%   q is the fill-reducing ordering, if requested.
 
14
%
 
15
%   Example:
 
16
%       Prob = UFget ('HB/ibm32') ; A = Prob.A ;
 
17
%       [vnz, rnz, parent, c, leftmost, p, q] = cs_sqr (A) ;
 
18
%       cspy (A (p,q)) ;
 
19
%
 
20
%   See also CS_AMD, CS_QR.
 
21
%
 
22
%   Copyright 2006-2007, Timothy A. Davis.
 
23
%   http://www.cise.ufl.edu/research/sparse
 
24
 
 
25
error ('cs_sqr mexFunction not found') ;