Skip to content

Commit b79196d

Browse files
help files 0.5.6
1 parent e239e25 commit b79196d

73 files changed

Lines changed: 326 additions & 122 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![banner](banner_homepage.png)
22

3-
### Nelson 0.5.5.0
3+
### Nelson 0.5.6.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
* [maxNumCompThreads](./core/maxNumCompThreads.md)
4343
* [namelengthmax](./core/namelengthmax.md)
4444
* [nargin](./core/nargin.md)
45+
* [narginchk](./core/narginchk.md)
4546
* [nargout](./core/nargout.md)
47+
* [nargoutchk](./core/nargoutchk.md)
4648
* [nelsonroot](./core/nelsonroot.md)
4749
* [nfilename](./core/nfilename.md)
4850
* [pause](./core/pause.md)
@@ -191,7 +193,6 @@
191193
* [isequalto](./elementary_functions/isequalto.md)
192194
* [isfinite](./elementary_functions/isfinite.md)
193195
* [isinf](./elementary_functions/isinf.md)
194-
* [ismissing](./elementary_functions/ismissing.md)
195196
* [isnan](./elementary_functions/isnan.md)
196197
* [istril](./elementary_functions/istril.md)
197198
* [istriu](./elementary_functions/istriu.md)
@@ -204,30 +205,34 @@
204205
* [log2](./elementary_functions/log2.md)
205206
* [logspace](./elementary_functions/logspace.md)
206207
* [magic](./elementary_functions/magic.md)
207-
* [max](./elementary_functions/max.md)
208-
* [min](./elementary_functions/min.md)
209208
* [minus](./elementary_functions/minus.md)
210209
* [mod](./elementary_functions/mod.md)
211210
* [ndims](./elementary_functions/ndims.md)
212211
* [norm](./elementary_functions/norm.md)
213212
* [num2bin](./elementary_functions/num2bin.md)
214213
* [numel](./elementary_functions/numel.md)
215-
* [prod](./elementary_functions/prod.md)
216214
* [real](./elementary_functions/real.md)
217215
* [rem](./elementary_functions/rem.md)
218216
* [repmat](./elementary_functions/repmat.md)
219217
* [reshape](./elementary_functions/reshape.md)
220218
* [round](./elementary_functions/round.md)
221219
* [sign](./elementary_functions/sign.md)
222220
* [size](./elementary_functions/size.md)
223-
* [sort](./elementary_functions/sort.md)
224221
* [sqrt](./elementary_functions/sqrt.md)
225-
* [sum](./elementary_functions/sum.md)
226222
* [swapbytes](./elementary_functions/swapbytes.md)
227223
* [tril](./elementary_functions/tril.md)
228224
* [triu](./elementary_functions/triu.md)
229225

230226

227+
* [data_analysis](./data_analysis/README.md)
228+
* [ismissing](./data_analysis/ismissing.md)
229+
* [max](./data_analysis/max.md)
230+
* [min](./data_analysis/min.md)
231+
* [prod](./data_analysis/prod.md)
232+
* [sort](./data_analysis/sort.md)
233+
* [sum](./data_analysis/sum.md)
234+
235+
231236
* [special_functions](./special_functions/README.md)
232237
* [betainc](./special_functions/betainc.md)
233238
* [gamma](./special_functions/gamma.md)

en/changelogs/CHANGELOG-0.2.x.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ HDF5 high-level functions:
212212

213213
- dlgeneratemake: generates a makefile for building a dynamic library.
214214
- dlgeneratecleaner: generates cleaner.nls file for C++ gateway.
215-
- dlgenerateloader: generates loader.nls file for C++ gateway.
216-
- dlgenerateunloader: generates unloader.nls file for C++ gateway.
215+
- dlgenerateloader: generates loader.m file for C++ gateway.
216+
- dlgenerateunloader: generates unloader.m file for C++ gateway.
217217
- dlgenerategateway: generates C++ gateway.
218218
- findcmake: find CMake path.
219219
- cmake function: call CMake tool.
220220
- dlmake: call make or nmake tool.
221221

222-
- detect and configure C/C++ compilers on Windows, Linux, MacosX:
222+
- detect and configure C/C++ compilers on Windows, Linux, MacOS:
223223

224224
- On Windows:
225225

en/changelogs/CHANGELOG-0.3.x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
- Licensing change: Nelson is now released under the terms of the GNU Lesser General Public License (LGPL) v2.1.
270270
It is still also available under the terms of the GNU General Public License (GPL) v2.0.
271271

272-
You can build Nelson under LGPL v2.1 license on Unix/MacosX with
272+
You can build Nelson under LGPL v2.1 license on Unix/MacOS with
273273

274274
```bash
275275
cd nelson

en/changelogs/CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
# 0.5.6 (2021-06-27)
2+
3+
BREAKING CHANGE:
4+
5+
## Features:
6+
7+
- `function ... endfunction` and `function ... end` are equivalent (increase compatibility ;).
8+
9+
- file extension `.m` is managed by Nelson.
10+
11+
- About compatibility: scripts and functions developed with Nelson should work with other tools managing .m files. The reciprocal is not necessarily true.
12+
13+
- `.m` is default and alone file extension.
14+
15+
- module skeleton updated to use to `.m` extension (Please update your code)
16+
17+
- `run` builtin can also evaluate a macro function.
18+
19+
- macro functions also searched in current directory.
20+
21+
- parser cleaned and generated with Bison 3.7.4
22+
23+
- `narginchk` builtin: checks number of input arguments.
24+
25+
- `nargoutchk` builtin: checks number of outnput arguments.
26+
27+
- [#448](http://github.com/Nelson-numerical-software/nelson/issues/448): data analysis module (Code refactoring).
28+
29+
## Bug Fixes:
30+
31+
- `nmm('install', existing_module_directory)` did not work as expected.
32+
33+
- [#451](http://github.com/Nelson-numerical-software/nelson/issues/451): var() returns an unexpected error.
34+
35+
## Compilation:
36+
37+
- [#455](http://github.com/Nelson-numerical-software/nelson/issues/455): M1 macOS apple native support. It works but some gui features can crash due to young Qt support on M1.
38+
39+
- Update fmt library to 8.0.
40+
141
# 0.5.5 (2021-05-24)
242

343
## Features:

en/core/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ core functions
2121
* [maxNumCompThreads](maxNumCompThreads.md) - Set/Get maximum number of computional threads.
2222
* [namelengthmax](namelengthmax.md) - Return the maximum variable name length.
2323
* [nargin](nargin.md) - Returns the number of input arguments.
24+
* [narginchk](narginchk.md) - Checks the number of input arguments.
2425
* [nargout](nargout.md) - Returns the number of output arguments.
26+
* [nargoutchk](nargoutchk.md) - Checks the number of output arguments.
2527
* [nelsonroot](nelsonroot.md) - Returns Nelson's root folder.
2628
* [nfilename](nfilename.md) - Returns the name of the currently executing file.
2729
* [pause](pause.md) - Pauses script execution.
2830
* [prefdir](prefdir.md) - Return the preferences directory used by Nelson.
2931
* [quit](quit.md) - Terminate Nelson application
30-
* [run](run.md) - Executes a script file (.nls).
32+
* [run](run.md) - Executes a script file (.m).
3133
* [sha256](sha256.md) - Get sha256 checksum.
3234
* [version](version.md) - Return the version of Nelson.
3335

en/core/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* [maxNumCompThreads](maxNumCompThreads.md)
1313
* [namelengthmax](namelengthmax.md)
1414
* [nargin](nargin.md)
15+
* [narginchk](narginchk.md)
1516
* [nargout](nargout.md)
17+
* [nargoutchk](nargoutchk.md)
1618
* [nelsonroot](nelsonroot.md)
1719
* [nfilename](nfilename.md)
1820
* [pause](pause.md)

en/core/narginchk.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
3+
# narginchk
4+
5+
Checks the number of input arguments.
6+
7+
## Syntax
8+
9+
- narginchk(minArgs, maxArgs)
10+
11+
## Input argument
12+
13+
- minArgs - minimum number of accepted inputs (scalar integer value).
14+
- maxArgs - maximum number of accepted inputs (scalar integer value).
15+
16+
## Description
17+
18+
19+
<p><b>narginchk</b> checks the number of input arguments of an function.</p>
20+
21+
22+
## Example
23+
24+
With an macro function:
25+
```matlab
26+
narginchk(1, 2)
27+
```
28+
29+
## See also
30+
31+
[nargin](nargin.md), [nargoutchk](nargoutchk.md).
32+
## History
33+
34+
|Version|Description|
35+
|------|------|
36+
|1.0.0|initial version|
37+
38+
39+
## Author
40+
41+
Allan CORNET
42+
43+
44+

en/core/nargoutchk.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
3+
# nargoutchk
4+
5+
Checks the number of output arguments.
6+
7+
## Syntax
8+
9+
- nargoutchk(minArgs, maxArgs)
10+
- msg = nargoutchk(minArgs, maxArgs, numArgs)
11+
- st = nargoutchk(minArgs, maxArgs, numArgs, 'struct')
12+
13+
## Input argument
14+
15+
- minArgs - minimum number of accepted outputs (scalar integer value).
16+
- maxArgs - maximum number of accepted outputs (scalar integer value).
17+
- numArgs - number of function outputs (scalar integer value).
18+
19+
## Output argument
20+
21+
- msg - a string: error message.
22+
- st - a struct with error message and identifier.
23+
24+
## Description
25+
26+
27+
<p><b>nargoutchk</b> checks the number of output arguments of an function.</p>
28+
29+
30+
## Example
31+
32+
With an macro function:
33+
```matlab
34+
nargoutchk(1, 2, 3)
35+
nargoutchk(1, 2, 3, 'struct')
36+
```
37+
38+
## See also
39+
40+
[nargout](nargin.md), [narginchk](nargoutchk.md).
41+
## History
42+
43+
|Version|Description|
44+
|------|------|
45+
|1.0.0|initial version|
46+
47+
48+
## Author
49+
50+
Allan CORNET
51+
52+
53+

en/core/nfilename.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# nfilename
44

5+
# mfilename
6+
57
Returns the name of the currently executing file.
68

79
## Syntax
@@ -21,6 +23,7 @@ Returns the name of the currently executing file.
2123
<p><b>nfilename()</b> called from outside an nlf file returns an empty string.</p>
2224
<p>With the input argument 'fullpathext', the string includes the directory part of the macro filename, and the filename extension.</p>
2325
<p>With the input argument 'fullpath', the string includes the directory part of the macro filename, but not the extension.</p>
26+
<p><b>mfilename</b> is an alias on <b>nfilename</b> added for basic script compatibility.</p>
2427

2528

2629
## See also

0 commit comments

Comments
 (0)