GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Sparse-d.cc
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2004-2018 David Bateman
4 Copyright (C) 1998-2004 Andy Adler
5 
6 This file is part of Octave.
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
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <https://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if defined (HAVE_CONFIG_H)
25 # include "config.h"
26 #endif
27 
28 // Instantiate Sparse matrix of double values.
29 
30 #include "lo-mappers.h"
31 #include "Sparse.h"
32 #include "Sparse.cc"
33 
34 template <>
35 bool
37 {
38  return (octave::math::isnan (b) || (a < b));
39 }
40 
41 template <>
42 bool
44 {
45  return (octave::math::isnan (a) || (a > b));
46 }
47 
48 INSTANTIATE_SPARSE (double, OCTAVE_API);
49 
50 #if 0
51 template std::ostream& operator << (std::ostream&, const Sparse<double>&);
52 #endif
bool isnan(bool)
Definition: lo-mappers.h:187
bool sparse_descending_compare< double >(double a, double b)
Definition: Sparse-d.cc:43
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition: cellfun.cc:400
#define INSTANTIATE_SPARSE(T, API)
Definition: Sparse.cc:3012
bool sparse_ascending_compare< double >(double a, double b)
Definition: Sparse-d.cc:36
b
Definition: cellfun.cc:400