Mercurial > octave
comparison liboctave/SparseQR.h @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | a21a3875ca83 |
comparison
equal
deleted
inserted
replaced
11585:1473d0cf86d2 | 11586:12df7854fa7c |
---|---|
75 #endif | 75 #endif |
76 }; | 76 }; |
77 private: | 77 private: |
78 SparseQR_rep *rep; | 78 SparseQR_rep *rep; |
79 | 79 |
80 public: | 80 public: |
81 SparseQR (void) : rep (new SparseQR_rep (SparseMatrix(), 0)) { } | 81 SparseQR (void) : rep (new SparseQR_rep (SparseMatrix(), 0)) { } |
82 | 82 |
83 SparseQR (const SparseMatrix& a, int order = 0) : | 83 SparseQR (const SparseMatrix& a, int order = 0) : |
84 rep (new SparseQR_rep (a, order)) { } | 84 rep (new SparseQR_rep (a, order)) { } |
85 | 85 |
86 SparseQR (const SparseQR& a) : rep (a.rep) { rep->count++; } | 86 SparseQR (const SparseQR& a) : rep (a.rep) { rep->count++; } |
87 | 87 |
88 ~SparseQR (void) | 88 ~SparseQR (void) |
116 | 116 |
117 Matrix C (const Matrix &b) const { return rep->C(b); } | 117 Matrix C (const Matrix &b) const { return rep->C(b); } |
118 | 118 |
119 Matrix Q (void) const { return rep->Q(); } | 119 Matrix Q (void) const { return rep->Q(); } |
120 | 120 |
121 friend Matrix qrsolve (const SparseMatrix &a, const Matrix &b, | 121 friend Matrix qrsolve (const SparseMatrix &a, const Matrix &b, |
122 octave_idx_type &info); | 122 octave_idx_type &info); |
123 | 123 |
124 friend SparseMatrix qrsolve (const SparseMatrix &a, const SparseMatrix &b, | 124 friend SparseMatrix qrsolve (const SparseMatrix &a, const SparseMatrix &b, |
125 octave_idx_type &info); | 125 octave_idx_type &info); |
126 | 126 |
127 friend ComplexMatrix qrsolve (const SparseMatrix &a, const ComplexMatrix &b, | 127 friend ComplexMatrix qrsolve (const SparseMatrix &a, const ComplexMatrix &b, |
128 octave_idx_type &info); | 128 octave_idx_type &info); |
129 | 129 |
130 friend SparseComplexMatrix qrsolve (const SparseMatrix &a, | 130 friend SparseComplexMatrix qrsolve (const SparseMatrix &a, |
131 const SparseComplexMatrix &b, | 131 const SparseComplexMatrix &b, |
132 octave_idx_type &info); | 132 octave_idx_type &info); |
133 | 133 |
134 protected: | 134 protected: |
135 #ifdef HAVE_CXSPARSE | 135 #ifdef HAVE_CXSPARSE |
140 }; | 140 }; |
141 | 141 |
142 | 142 |
143 // Publish externally used friend functions. | 143 // Publish externally used friend functions. |
144 | 144 |
145 extern Matrix qrsolve (const SparseMatrix &a, const Matrix &b, | 145 extern Matrix qrsolve (const SparseMatrix &a, const Matrix &b, |
146 octave_idx_type &info); | 146 octave_idx_type &info); |
147 | 147 |
148 extern Matrix qrsolve (const SparseMatrix &a, const MArray<double> &b, | 148 extern Matrix qrsolve (const SparseMatrix &a, const MArray<double> &b, |
149 octave_idx_type &info); | 149 octave_idx_type &info); |
150 | 150 |
151 extern SparseMatrix qrsolve (const SparseMatrix &a, const SparseMatrix &b, | 151 extern SparseMatrix qrsolve (const SparseMatrix &a, const SparseMatrix &b, |
152 octave_idx_type &info); | 152 octave_idx_type &info); |
153 | 153 |
154 extern ComplexMatrix qrsolve (const SparseMatrix &a, const ComplexMatrix &b, | 154 extern ComplexMatrix qrsolve (const SparseMatrix &a, const ComplexMatrix &b, |
155 octave_idx_type &info); | 155 octave_idx_type &info); |
156 | 156 |
157 extern ComplexMatrix qrsolve (const SparseMatrix &a, const MArray<Complex> &b, | 157 extern ComplexMatrix qrsolve (const SparseMatrix &a, const MArray<Complex> &b, |
158 octave_idx_type &info); | 158 octave_idx_type &info); |
159 | 159 |
160 extern SparseComplexMatrix qrsolve (const SparseMatrix &a, | 160 extern SparseComplexMatrix qrsolve (const SparseMatrix &a, |
161 const SparseComplexMatrix &b, | 161 const SparseComplexMatrix &b, |
162 octave_idx_type &info); | 162 octave_idx_type &info); |
163 | 163 |
164 #endif | 164 #endif |