Skip to content

Commit 70f2d06

Browse files
v1.3.0
1 parent b45dde7 commit 70f2d06

57 files changed

Lines changed: 13197 additions & 16 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 1.2.0.0
3+
### Nelson 1.3.0.0
44

55
Nelson is an interactive, fully functional environment for engineering and scientific applications. It implements a matrix-driven language (which is largely compatible with MATLAB and GNU Octave), with advanced features such as 2-D 3-D plotting, image manipulation and viewing, a codeless interface to external C/C++/FORTRAN libraries, native support for various C types, and a host of other features.
66

en/SUMMARY.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
- [endsWith](./string/endsWith.md)
227227
- [int2str](./string/int2str.md)
228228
- [isletter](./string/isletter.md)
229+
- [isspace](./string/isspace.md)
229230
- [isStringScalar](./string/isStringScalar.md)
230231
- [mat2str](./string/mat2str.md)
231232
- [matches](./string/matches.md)
@@ -420,6 +421,7 @@
420421
- [rosser](./elementary_functions/rosser.md)
421422
- [rot90](./elementary_functions/rot90.md)
422423
- [round](./elementary_functions/round.md)
424+
- [shiftdim](./elementary_functions/shiftdim.md)
423425
- [sign](./elementary_functions/sign.md)
424426
- [size](./elementary_functions/size.md)
425427
- [sqrt](./elementary_functions/sqrt.md)
@@ -510,6 +512,7 @@
510512
- [diff](./linear_algebra/diff.md)
511513
- [eig](./linear_algebra/eig.md)
512514
- [expm](./linear_algebra/expm.md)
515+
- [gradient](./linear_algebra/gradient.md)
513516
- [inv](./linear_algebra/inv.md)
514517
- [isbanded](./linear_algebra/isbanded.md)
515518
- [ishermitian](./linear_algebra/ishermitian.md)
@@ -528,16 +531,19 @@
528531
- [subspace](./linear_algebra/subspace.md)
529532
- [svd](./linear_algebra/svd.md)
530533
- [trace](./linear_algebra/trace.md)
534+
- [vecnorm](./linear_algebra/vecnorm.md)
531535

532536
- [statistics](./statistics/README.md)
533537

534538
- [corrcoef](./statistics/corrcoef.md)
535539
- [cov](./statistics/cov.md)
536540
- [mean](./statistics/mean.md)
541+
- [normpdf](./statistics/normpdf.md)
537542
- [var](./statistics/var.md)
538543

539544
- [polynomial_functions](./polynomial_functions/README.md)
540545

546+
- [deconv](./polynomial_functions/deconv.md)
541547
- [poly](./polynomial_functions/poly.md)
542548
- [polyder](./polynomial_functions/polyder.md)
543549
- [polyfit](./polynomial_functions/polyfit.md)
@@ -558,6 +564,7 @@
558564
- [mag2db](./signal_processing/mag2db.md)
559565
- [pow2db](./signal_processing/pow2db.md)
560566
- [sinc](./signal_processing/sinc.md)
567+
- [xcorr2](./signal_processing/xcorr2.md)
561568
- [zp2tf](./signal_processing/zp2tf.md)
562569

563570
- [slicot](./slicot/README.md)
@@ -594,6 +601,7 @@
594601
- [dot](./special_functions/dot.md)
595602
- [factor](./special_functions/factor.md)
596603
- [gamma](./special_functions/gamma.md)
604+
- [gammaln](./special_functions/gammaln.md)
597605
- [gcd](./special_functions/gcd.md)
598606
- [interp1](./special_functions/interp1.md)
599607
- [peaks](./special_functions/peaks.md)
@@ -819,6 +827,8 @@
819827
- [colorbar](./graphics/colorbar.md)
820828
- [colormap](./graphics/colormap.md)
821829
- [colstyle](./graphics/colstyle.md)
830+
- [contour](./graphics/contour.md)
831+
- [contour3](./graphics/contour3.md)
822832
- [cool](./graphics/cool.md)
823833
- [copper](./graphics/copper.md)
824834
- [copygraphics](./graphics/copygraphics.md)
@@ -1053,6 +1063,8 @@
10531063

10541064
- [dynamic_link](./dynamic_link/README.md)
10551065

1066+
- [Build C/C++ code on the fly](./dynamic_link/1_c_cpp_build_on_fly.md)
1067+
- [Supported C/C++ compilers](./dynamic_link/2_supported_compilers.md)
10561068
- [cmake](./dynamic_link/cmake.md)
10571069
- [configuremingw](./dynamic_link/configuremingw.md)
10581070
- [configuremsvc](./dynamic_link/configuremsvc.md)
@@ -1084,7 +1096,6 @@
10841096
- [libpointer_used](./dynamic_link/libpointer_used.md)
10851097
- [loadcompilerconf](./dynamic_link/loadcompiler.md)
10861098
- [removecompilerconf](./dynamic_link/removecompilerconf.md)
1087-
- [Supported C/C++ compilers](./dynamic_link/supported_compilers.md)
10881099
- [vswhere](./dynamic_link/vswhere.md)
10891100

10901101
- [mex](./mex/README.md)
@@ -1151,6 +1162,7 @@
11511162
- [iscom](./com_engine/iscom.md)
11521163

11531164
- [control_system](./control_system/README.md)
1165+
11541166
- [abcdchk](./control_system/abcdchk.md)
11551167
- [acker](./control_system/acker.md)
11561168
- [append](./control_system/append.md)
@@ -1212,3 +1224,8 @@
12121224
- [tfdata](./control_system/tfdata.md)
12131225
- [tzero](./control_system/tzero.md)
12141226
- [zero](./control_system/zero.md)
1227+
1228+
- [python_engine](./python_engine/README.md)
1229+
- [pyargs](./python_engine/pyargs.md)
1230+
- [pyenv](./python_engine/pyenv.md)
1231+
- [pyrun](./python_engine/pyrun.md)

en/changelogs/CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 1.3.0 (2024-03-30)
9+
10+
### Added
11+
12+
- Python interface (part 1):
13+
14+
- CMake: Optional Python3 detection.
15+
- `pyenv` Change default environment of Python interpreter.
16+
- `pyrun` Run Python statements from Nelson.
17+
- Major types conversions are compatible (numpy in the next upcoming version).
18+
19+
- ArchLinux packaging (https://aur.archlinux.org/packages/nelson-git).
20+
- `contour` Contour plot of matrix.
21+
- `contour3` 3-D contour plot.
22+
- `shiftdim` Shift array dimensions.
23+
- `xcorr2` 2-D cross-correlation.
24+
- `deconv` Deconvolution and polynomial division.
25+
- `vecnorm` Vector-wise norm.
26+
- `normpdf` Normal probability density function.
27+
- [#310](http://github.com/nelson-lang/nelson/issues/310) `gammaln` Logarithm of gamma function.
28+
- [#1112](http://github.com/nelson-lang/nelson/issues/1112) `gradient` Numerical gradient.
29+
- [#1126](http://github.com/nelson-lang/nelson/issues/1126) `isspace` Determine which characters are space characters.
30+
31+
### Changed
32+
33+
- [#1110](http://github.com/nelson-lang/nelson/issues/1110) Eigen master branch (352ede96e4c331daae4e1be9a5f3f50fff951b8d) ready to use.
34+
- [#1134](http://github.com/nelson-lang/nelson/issues/1134) [CI] MacOS X Ventura disabled (Install dependencies fails)
35+
- `struct` supports scalar string array as field name.
36+
37+
### Fixed
38+
39+
- [#1110](http://github.com/nelson-lang/nelson/issues/1110) add help about build and use C/C++ on fly.
40+
- [#1124](http://github.com/nelson-lang/nelson/issues/1124) unexpected result from long statements on Multiple Lines.
41+
- [#1127](http://github.com/nelson-lang/nelson/issues/1127) Nelson could crash if an mxn characters is displayed in the variable browser.
42+
- [#1125](http://github.com/nelson-lang/nelson/issues/1125) Unsupported colon operator with char operands.
43+
- Missing 'zoom in', 'zoom out' icons for help viewer in linux package.
44+
- `gcd` without argument returned wrong error message.
45+
- [#1133](http://github.com/nelson-lang/nelson/issues/1133) [CI] [ARCH LINUX] Warning about MPI.
46+
847
## 1.2.0 (2024-02-25)
948

1049
### Added

en/data_structures/struct.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ date_st.year = 1974)
5656
| ------- | --------------- |
5757
| 1.0.0 | initial version |
5858

59+
|1.3.0|Scalar String allowed as field name.|
60+
5961
## Author
6062

6163
Allan CORNET
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Build C/C++ code on the fly
2+
3+
Build C/C++ code on the fly
4+
5+
## Description
6+
7+
<p>Nelson provides a cross-platform command-line tool written in Nelson for compiling native addon modules for Nelson.</p>
8+
<p>It takes away the pain of dealing with the various differences in build platforms.</p>
9+
10+
## Example
11+
12+
```matlab
13+
if ispc() && ~havecompiler()
14+
configuremsvc()
15+
end
16+
C_CONTENT = ["double";
17+
"functionC(double x)";
18+
"{";
19+
" return x + 8;";
20+
"}"];
21+
DEST_DIR = [tempdir(), 'example_C'];
22+
mkdir(DEST_DIR);
23+
C_DEST_FILE = [tempdir(), 'example_C/demo.c'];
24+
filewrite(C_DEST_FILE, C_CONTENT)
25+
26+
dlgeneratemake(DEST_DIR, 'C_DEMO', {C_DEST_FILE}, {DEST_DIR})
27+
[res, message] = dlmake(DEST_DIR)
28+
29+
lib = dlopen([DEST_DIR, '/C_DEMO', getdynlibext()])
30+
c = dllibinfo(lib)
31+
32+
f = dlsym(lib, 'functionC', 'double', {'double'});
33+
R = dlcall(f, 3) % 8 + 3
34+
dlclose(lib)
35+
```
36+
37+
<img src="build_c_cpp_on_fly_DE9671CD.png" align="middle"/>
38+
39+
## See also
40+
41+
[configuremsvc](configuremsvc.md), [dlgeneratemake](dlgeneratemake.md), [dlmake](dlmake.md), [dlopen](dlopen.md), [dllibinfo](dllibinfo.md), [dlsym](dlsym.md), [dlcall](dlcall.md).
42+
43+
## History
44+
45+
| Version | Description |
46+
| ------- | --------------- |
47+
| 1.2.0 | initial version |
48+
49+
## Author
50+
51+
Allan CORNET

en/dynamic_link/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Dynamic link
66

77
By default, Nelson does not try to detect a C/C++ compiler on Windows. Do not forget to run 'configuremsvc' or 'configuremingw' once.
88

9+
- [Build C/C++ code on the fly](1_c_cpp_build_on_fly.md) - Build C/C++ code on the fly
10+
2_supported_compilers.md Supported C/C++ compilers
911
- [cmake](cmake.md) - call CMake tool
1012
- [configuremingw](configuremingw.md) - Configure Nelson to use MinGW as default C compiler
1113
- [configuremsvc](configuremsvc.md) - Configure Nelson to use visual studio as default compiler
@@ -37,5 +39,4 @@ By default, Nelson does not try to detect a C/C++ compiler on Windows. Do not fo
3739
- [libpointer_used](libpointer_used.md) - Returns list of current used libpointer handle.
3840
- [loadcompilerconf](loadcompiler.md) - load compiler configuration.
3941
- [removecompilerconf](removecompilerconf.md) - Remove used compiler configuration (on Windows).
40-
supported_compilers.md Supported C/C++ compilers
4142
- [vswhere](vswhere.md) - Locate Visual Studio 2017, 2019 and newer installations

en/dynamic_link/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
- [dynamic_link](README.md)
2+
- [Build C/C++ code on the fly](1_c_cpp_build_on_fly.md)
3+
- [Supported C/C++ compilers](2_supported_compilers.md)
24
- [cmake](cmake.md)
35
- [configuremingw](configuremingw.md)
46
- [configuremsvc](configuremsvc.md)
@@ -30,5 +32,4 @@
3032
- [libpointer_used](libpointer_used.md)
3133
- [loadcompilerconf](loadcompiler.md)
3234
- [removecompilerconf](removecompilerconf.md)
33-
- [Supported C/C++ compilers](supported_compilers.md)
3435
- [vswhere](vswhere.md)
205 KB
Loading

en/dynamic_link/configuremingw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ configuremingw('c:/mingw')
2929

3030
## See also
3131

32-
[Supported C/C++ compilers](supported_compilers.md), [havecompiler](havecompiler.md), [configuremsvc](configuremsvc.md).
32+
[Supported C/C++ compilers](2_supported_compilers.md), [havecompiler](havecompiler.md), [configuremsvc](configuremsvc.md).
3333

3434
## History
3535

0 commit comments

Comments
 (0)