Skip to content

Commit 51a057b

Browse files
0.5.12
1 parent 2938ce7 commit 51a057b

14 files changed

Lines changed: 300 additions & 2 deletions

File tree

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.11.0
3+
### Nelson 0.5.12.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,14 @@
187187
* [fliplr](./elementary_functions/fliplr.md)
188188
* [flipud](./elementary_functions/flipud.md)
189189
* [floor](./elementary_functions/floor.md)
190+
* [hankel](./elementary_functions/hankel.md)
190191
* [hex2dec](./elementary_functions/hex2dec.md)
191192
* [hilb](./elementary_functions/hilb.md)
192193
* [imag](./elementary_functions/imag.md)
193194
* [ind2sub](./elementary_functions/ind2sub.md)
194195
* [invhilb](./elementary_functions/invhilb.md)
195196
* [isapprox](./elementary_functions/isapprox.md)
197+
* [iscolumn](./elementary_functions/iscolumn.md)
196198
* [istriu](./elementary_functions/isdiag.md)
197199
* [isequal](./elementary_functions/isequal.md)
198200
* [isequaln](./elementary_functions/isequaln.md)
@@ -201,6 +203,7 @@
201203
* [isinf](./elementary_functions/isinf.md)
202204
* [ismatrix](./elementary_functions/ismatrix.md)
203205
* [isnan](./elementary_functions/isnan.md)
206+
* [isrow](./elementary_functions/isrow.md)
204207
* [istril](./elementary_functions/istril.md)
205208
* [istriu](./elementary_functions/istriu.md)
206209
* [isvector](./elementary_functions/isvector.md)
@@ -248,8 +251,10 @@
248251

249252
* [special_functions](./special_functions/README.md)
250253
* [betainc](./special_functions/betainc.md)
254+
* [factor](./special_functions/factor.md)
251255
* [gamma](./special_functions/gamma.md)
252256
* [gcd](./special_functions/gcd.md)
257+
* [primes](./special_functions/primes.md)
253258

254259

255260
* [constructors_functions](./constructors_functions/README.md)

en/changelogs/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# 0.5.12 (2021-12-31)
2+
3+
## Added
4+
5+
- `hankel` function: Hankel matrix.
6+
- `factor` function: Prime factors.
7+
- `primes` function: Prime numbers less than or equal to input value.
8+
- `isrow` function: Determine whether input is row vector.
9+
- `iscolumn` function: Determine whether input is column vector.
10+
11+
## Fixed
12+
13+
- [#544](http://github.com/Nelson-numerical-software/nelson/issues/544): add `folder` fieldname to `dir` output.
14+
15+
- [#541](http://github.com/Nelson-numerical-software/nelson/issues/541): common class between two elements for operators, horzcat and vertcat.
16+
17+
## Compilation
18+
19+
- Boost 1.78 support (default on Windows).
20+
21+
- CMake 3.22.1 (on Windows).
22+
123
# 0.5.11 (2021-11-26)
224

325
## Added

en/elementary_functions/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ elementary functions
3030
* [fliplr](fliplr.md) - Flip order of elements left to right
3131
* [flipud](flipud.md) - Flip order of elements up to dow
3232
* [floor](floor.md) - Round down
33+
* [hankel](hankel.md) - Hankel matrix
3334
* [hex2dec](hex2dec.md) - Convert number in base 16 to decimal.
3435
* [hilb](hilb.md) - Hilbert matrix
3536
* [imag](imag.md) - Imaginary part of an complex number.
3637
* [ind2sub](ind2sub.md) - Linear index to matrix subscript values
3738
* [invhilb](invhilb.md) - Inverse of Hilbert matrix
3839
* [isapprox](isapprox.md) - Return true if arguments are approximately equal, within the precision.
40+
* [iscolumn](iscolumn.md) - Determine whether input is column vector.
3941
* [istriu](isdiag.md) - Checks if matrix is diagonal.
4042
* [isequal](isequal.md) - Return true if all arguments x1, x2, ... , xn are equal (same dimensions, same values).
4143
* [isequaln](isequaln.md) - Return true if all arguments x1, x2, ... , xn are equal (same dimensions, same values or NaNs).
@@ -44,6 +46,7 @@ elementary functions
4446
* [isinf](isinf.md) - Check for Infinity entries.
4547
* [ismatrix](ismatrix.md) - determines whether input is matrix or not
4648
* [isnan](isnan.md) - Check for Not a Number entries.
49+
* [isrow](isrow.md) - Determine whether input is row vector.
4750
* [istril](istril.md) - Checks if matrix is lower triangular.
4851
* [istriu](istriu.md) - Checks if matrix is upper triangular.
4952
* [isvector](isvector.md) - Checks input is vector.

en/elementary_functions/SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
* [fliplr](fliplr.md)
2222
* [flipud](flipud.md)
2323
* [floor](floor.md)
24+
* [hankel](hankel.md)
2425
* [hex2dec](hex2dec.md)
2526
* [hilb](hilb.md)
2627
* [imag](imag.md)
2728
* [ind2sub](ind2sub.md)
2829
* [invhilb](invhilb.md)
2930
* [isapprox](isapprox.md)
31+
* [iscolumn](iscolumn.md)
3032
* [istriu](isdiag.md)
3133
* [isequal](isequal.md)
3234
* [isequaln](isequaln.md)
@@ -35,6 +37,7 @@
3537
* [isinf](isinf.md)
3638
* [ismatrix](ismatrix.md)
3739
* [isnan](isnan.md)
40+
* [isrow](isrow.md)
3841
* [istril](istril.md)
3942
* [istriu](istriu.md)
4043
* [isvector](isvector.md)

en/elementary_functions/hankel.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
3+
# hankel
4+
5+
Hankel matrix
6+
7+
## Syntax
8+
9+
- H = hankel(c)
10+
- H = hankel(c, r)
11+
12+
## Input argument
13+
14+
- c - First column of Hankel matrix: vector or scalar.
15+
- r - Last row of Hankel matrix: vector or scalar.
16+
17+
## Output argument
18+
19+
- H - Hankel Matrix.
20+
21+
## Description
22+
23+
24+
<p><b>H = hankel(c)</b> returns a square Hankel Matrix with <b>c</b> the first column of the matrix and the elements are zero below the main anti-diagonal.</p>
25+
<p><b>H = hankel(c, r)</b> returns a Hankel matrix with <b>c</b> as its first column and <b>r</b> as its last row.</p>
26+
<p>If last element of <b>c</b> differs from the first element of <b>r</b>, then Hankel issues a warning and uses the last element of <b>c</b> for the anti-diagonal.</p>
27+
28+
29+
## Example
30+
31+
```matlab
32+
c = [1 2 3 4 5];
33+
hankel(c)
34+
```
35+
36+
## See also
37+
38+
[hilb](hilb.md).
39+
## History
40+
41+
|Version|Description|
42+
|------|------|
43+
|1.0.0|initial version|
44+
45+
46+
## Author
47+
48+
Allan CORNET
49+
50+
51+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
3+
# iscolumn
4+
5+
Determine whether input is column vector.
6+
7+
## Syntax
8+
9+
- tf = iscolumn(V)
10+
11+
## Input argument
12+
13+
- V - a variable
14+
15+
## Output argument
16+
17+
- tf - logical: result of 'iscolumn'.
18+
19+
## Description
20+
21+
22+
<p><b>iscolumn(V)</b> returns logical <b>true</b> if size(V) returns [n, 1] with a nonnegative integer value n, and logical <b>false</b> otherwise.</p>
23+
24+
25+
## Example
26+
27+
```matlab
28+
iscolumn([1:4])
29+
iscolumn([1:4]')
30+
```
31+
32+
## See also
33+
34+
[isrow](isrow.md).
35+
## History
36+
37+
|Version|Description|
38+
|------|------|
39+
|1.0.0|initial version|
40+
41+
42+
## Author
43+
44+
Allan CORNET
45+
46+
47+

en/elementary_functions/isrow.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
3+
# isrow
4+
5+
Determine whether input is row vector.
6+
7+
## Syntax
8+
9+
- tf = isrow(V)
10+
11+
## Input argument
12+
13+
- V - a variable
14+
15+
## Output argument
16+
17+
- tf - logical: result of 'isrow'.
18+
19+
## Description
20+
21+
22+
<p><b>isrow(V)</b> returns logical <b>true</b> if size(V) returns [1, n] with a nonnegative integer value n, and logical <b>false</b> otherwise.</p>
23+
24+
25+
## Example
26+
27+
```matlab
28+
isrow([1:4])
29+
isrow([1:4]')
30+
```
31+
32+
## See also
33+
34+
[iscolumn](iscolumn.md).
35+
## History
36+
37+
|Version|Description|
38+
|------|------|
39+
|1.0.0|initial version|
40+
41+
42+
## Author
43+
44+
Allan CORNET
45+
46+
47+

en/special_functions/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ special functions
99

1010

1111
* [betainc](betainc.md) - Incomplete beta function
12+
* [factor](factor.md) - Prime factors
1213
* [gamma](gamma.md) - Gamma special function
1314
* [gcd](gcd.md) - Greatest common divisor
15+
* [primes](primes.md) - Prime numbers less than or equal to input value
1416

1517

1618

en/special_functions/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
* [special_functions](README.md)
22
* [betainc](betainc.md)
3+
* [factor](factor.md)
34
* [gamma](gamma.md)
45
* [gcd](gcd.md)
6+
* [primes](primes.md)
57

0 commit comments

Comments
 (0)