Mercurial > octave-nkf
annotate scripts/miscellaneous/mex.m @ 20596:87b557ee8e5d
clean up and vectorize code for dense output in ode45
* scripts/ode/private/ode_rk_interpolate.m: new file
* scripts/ode/private/ode_rk_interpolate.m(hermite_quartic_interpolation):
move to internal function, use vectorization and broadcasting.
* scripts/ode/private/hermite_quartic_interpolation.m: remove file
* scripts/ode/module.mk: list added and removed files
* scripts/ode/private/integrate_adaptive.m: use new interpolation code.
author | Carlo de Falco <carlo.defalco@polimi.it> |
---|---|
date | Tue, 06 Oct 2015 19:28:59 +0200 |
parents | 4197fc428c7d |
children |
rev | line source |
---|---|
19731
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19631
diff
changeset
|
1 ## Copyright (C) 2006-2015 David Bateman |
5904 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
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 | |
7016 | 7 ## the Free Software Foundation; either version 3 of the License, or (at |
8 ## your option) any later version. | |
5904 | 9 ## |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
7016 | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | |
5904 | 18 |
19 ## -*- texinfo -*- | |
17170
d6499c14021c
doc: Periodic grammarcheck of documentation.
Rik <rik@octave.org>
parents:
14138
diff
changeset
|
20 ## @deftypefn {Command} {} mex [options] file @dots{} |
5904 | 21 ## Compile source code written in C, C++, or Fortran, to a MEX file. |
19631
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19226
diff
changeset
|
22 ## |
5917 | 23 ## This is equivalent to @code{mkoctfile --mex [options] file}. |
19226
8a8a7bc2a09d
Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents:
18193
diff
changeset
|
24 ## @seealso{mkoctfile, mexext} |
5904 | 25 ## @end deftypefn |
26 | |
18193
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
27 function retval = mex (varargin) |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
28 |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
29 [output, status] = mkoctfile ("--mex", varargin{:}); |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
30 |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
31 if (! isempty (output)) |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
32 disp (output); |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
33 endif |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
34 if (nargout > 0) |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
35 retval = status; |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
36 endif |
d3c6842ef188
mex.m: Return status if called with an output argument (bug #40984).
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
37 |
5904 | 38 endfunction |
17338
1c89599167a6
maint: End m-files with 1 blank line.
Rik <rik@octave.org>
parents:
17170
diff
changeset
|
39 |
19226
8a8a7bc2a09d
Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents:
18193
diff
changeset
|
40 |
19631
db92e7e28e1f
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19226
diff
changeset
|
41 ## Remove from test statistics. All real tests are in mkoctfile. |
19226
8a8a7bc2a09d
Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents:
18193
diff
changeset
|
42 %!assert (1) |
8a8a7bc2a09d
Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents:
18193
diff
changeset
|
43 |