Mercurial > hg > octave-lyh
annotate liboctave/numeric/Quad-opts.in @ 17191:ca5103ab0b21
check_gzip_magic before get_file_format (wrong type detection, bug #39652)
* load-save.cc (get_file_format): call check_gzip_magic before get_file_format
to avoid random LS_MAT_ASCII detections in gzipped files.
* ls-mat-ascii.cc (looks_like_mat_ascii_file): New arg, IS which could also
be a gzipped file, is now opened in the calling function.
* ls-mat-ascii.h (looks_like_mat_ascii_file): New arg, IS.
author | Andreas Weber <andy.weber.aw@gmail.com> |
---|---|
date | Fri, 02 Aug 2013 19:48:34 +0200 |
parents | 648dabbb4c6b |
children |
rev | line source |
---|---|
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
13141
diff
changeset
|
1 # Copyright (C) 2002-2012 John W. Eaton |
7017 | 2 # |
3 # This file is part of Octave. | |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
12612
diff
changeset
|
4 # |
7017 | 5 # Octave is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License as published by the | |
7 # Free Software Foundation; either version 3 of the License, or (at | |
8 # your option) any later version. | |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
12612
diff
changeset
|
9 # |
7017 | 10 # Octave is distributed in the hope that it will be useful, but WITHOUT |
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 # for more details. | |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
12612
diff
changeset
|
14 # |
7017 | 15 # You should have received a copy of the GNU General Public License |
16 # along with Octave; see the file COPYING. If not, see | |
17 # <http://www.gnu.org/licenses/>. | |
18 | |
3998 | 19 CLASS = "Quad" |
20 | |
21 OPTION | |
22 NAME = "absolute tolerance" | |
4051 | 23 DOC_ITEM |
24 Absolute tolerance; may be zero for pure relative error test. | |
10840 | 25 |
4051 | 26 END_DOC_ITEM |
3998 | 27 TYPE = "double" |
15220
61822c866ba1
use std::numeric_limits<T>::epsilon in C++ code
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
28 INIT_VALUE = "::sqrt (std::numeric_limits<double>::epsilon ())" |
3998 | 29 SET_EXPR = "val" |
30 END_OPTION | |
31 | |
32 OPTION | |
33 NAME = "relative tolerance" | |
4051 | 34 DOC_ITEM |
10840 | 35 Non-negative relative tolerance. If the absolute tolerance is zero, |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
12612
diff
changeset
|
36 the relative tolerance must be greater than or equal to |
12612
16cca721117b
doc: Update all documentation for chapter on Numerical Integration
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
37 @w{@code{max (50*eps, 0.5e-28)}}. |
10840 | 38 |
4051 | 39 END_DOC_ITEM |
3998 | 40 TYPE = "double" |
15220
61822c866ba1
use std::numeric_limits<T>::epsilon in C++ code
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
41 INIT_VALUE = "::sqrt (std::numeric_limits<double>::epsilon ())" |
3998 | 42 SET_EXPR = "val" |
43 END_OPTION | |
7805
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
44 |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
45 OPTION |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
46 NAME = "single precision absolute tolerance" |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
47 DOC_ITEM |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
12612
diff
changeset
|
48 Absolute tolerance for single precision; may be zero for pure relative |
7805
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
49 error test. |
10840 | 50 |
7805
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
51 END_DOC_ITEM |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
52 TYPE = "float" |
15220
61822c866ba1
use std::numeric_limits<T>::epsilon in C++ code
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
53 INIT_VALUE = "::sqrt (std::numeric_limits<float>::epsilon ())" |
7805
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
54 SET_EXPR = "val" |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
55 END_OPTION |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
56 |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
57 OPTION |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
58 NAME = "single precision relative tolerance" |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
59 DOC_ITEM |
10840 | 60 Non-negative relative tolerance for single precision. If the absolute |
13141
e81ddf9cacd5
maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
12612
diff
changeset
|
61 tolerance is zero, the relative tolerance must be greater than or equal to |
12612
16cca721117b
doc: Update all documentation for chapter on Numerical Integration
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
62 @w{@code{max (50*eps, 0.5e-28)}}. |
7805
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
63 END_DOC_ITEM |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
64 TYPE = "float" |
15220
61822c866ba1
use std::numeric_limits<T>::epsilon in C++ code
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
65 INIT_VALUE = "::sqrt (std::numeric_limits<float>::epsilon ())" |
7805
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
66 SET_EXPR = "val" |
62affb34e648
Make quad work with single precision
David Bateman <dbateman@free.fr>
parents:
7017
diff
changeset
|
67 END_OPTION |