Mercurial > hg > octave-lyh
annotate liboctave/array/Sparse-d.cc @ 16300:23c5f90f92cd
eliminate some variable might be clobbered by 'longjmp' or 'vfork' warnings
* Matrix.cc (Matrix::rcond): Declare typ volatile.
* CMatrix.cc (ComplexMatrix::rcond): Likewise.
* fMatrix.cc (FloatMatrix::rcond): Likewise.
* fCMatrix.cc (FloatComplexMatrix::rcond): Likewise.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 13 Mar 2013 15:45:05 -0400 |
parents | 648dabbb4c6b |
children |
rev | line source |
---|---|
5164 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 2004-2012 David Bateman |
11523 | 4 Copyright (C) 1998-2004 Andy Adler |
7016 | 5 |
6 This file is part of Octave. | |
5164 | 7 |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
5164 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
5164 | 21 |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 #include <config.h> | |
26 #endif | |
27 | |
28 // Instantiate Sparse matrix of double values. | |
29 | |
7433 | 30 #include "lo-mappers.h" |
5164 | 31 #include "Sparse.h" |
32 #include "Sparse.cc" | |
7433 | 33 |
34 template <> | |
35 bool | |
8752
06b9903a029b
fix & clean up complex & sparse sorting
Jaroslav Hajek <highegg@gmail.com>
parents:
7470
diff
changeset
|
36 sparse_ascending_compare<double> (double a, double b) |
7433 | 37 { |
38 return (xisnan (b) || (a < b)); | |
39 } | |
40 | |
41 template <> | |
42 bool | |
8752
06b9903a029b
fix & clean up complex & sparse sorting
Jaroslav Hajek <highegg@gmail.com>
parents:
7470
diff
changeset
|
43 sparse_descending_compare<double> (double a, double b) |
7433 | 44 { |
45 return (xisnan (a) || (a > b)); | |
46 } | |
47 | |
10512
aac9f4265048
rewrite sparse indexed assignment
Jaroslav Hajek <highegg@gmail.com>
parents:
10158
diff
changeset
|
48 INSTANTIATE_SPARSE (double, OCTAVE_API); |
5164 | 49 |
50 #if 0 | |
51 template std::ostream& operator << (std::ostream&, const Sparse<double>&); | |
52 #endif |