Skip to content

Commit 2938ce7

Browse files
v0.5.11
1 parent 05b6b8a commit 2938ce7

27 files changed

Lines changed: 525 additions & 5 deletions

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.10.0
3+
### Nelson 0.5.11.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
* [all](./operators/all.md)
133133
* [and](./operators/and.md)
134134
* [any](./operators/any.md)
135+
* [cat](./operators/cat.md)
135136
* [colon](./operators/colon.md)
136137
* [ctranspose](./operators/ctranspose.md)
137138
* [eq](./operators/eq.md)
@@ -187,15 +188,18 @@
187188
* [flipud](./elementary_functions/flipud.md)
188189
* [floor](./elementary_functions/floor.md)
189190
* [hex2dec](./elementary_functions/hex2dec.md)
191+
* [hilb](./elementary_functions/hilb.md)
190192
* [imag](./elementary_functions/imag.md)
191193
* [ind2sub](./elementary_functions/ind2sub.md)
194+
* [invhilb](./elementary_functions/invhilb.md)
192195
* [isapprox](./elementary_functions/isapprox.md)
193196
* [istriu](./elementary_functions/isdiag.md)
194197
* [isequal](./elementary_functions/isequal.md)
195198
* [isequaln](./elementary_functions/isequaln.md)
196199
* [isequalto](./elementary_functions/isequalto.md)
197200
* [isfinite](./elementary_functions/isfinite.md)
198201
* [isinf](./elementary_functions/isinf.md)
202+
* [ismatrix](./elementary_functions/ismatrix.md)
199203
* [isnan](./elementary_functions/isnan.md)
200204
* [istril](./elementary_functions/istril.md)
201205
* [istriu](./elementary_functions/istriu.md)
@@ -224,6 +228,7 @@
224228
* [sign](./elementary_functions/sign.md)
225229
* [size](./elementary_functions/size.md)
226230
* [sqrt](./elementary_functions/sqrt.md)
231+
* [squeeze](./elementary_functions/squeeze.md)
227232
* [sub2ind](./elementary_functions/sub2ind.md)
228233
* [swapbytes](./elementary_functions/swapbytes.md)
229234
* [tril](./elementary_functions/tril.md)
@@ -352,6 +357,7 @@
352357
* [nnz](./sparse/nnz.md)
353358
* [nzmax](./sparse/nzmax.md)
354359
* [sparse](./sparse/sparse.md)
360+
* [speye](./sparse/speye.md)
355361

356362

357363
* [logical](./logical/README.md)
@@ -557,13 +563,15 @@
557563

558564
* [linear_algebra](./linear_algebra/README.md)
559565
* [chol](./linear_algebra/chol.md)
566+
* [cond](./linear_algebra/cond.md)
560567
* [det](./linear_algebra/det.md)
561568
* [eig](./linear_algebra/eig.md)
562569
* [expm](./linear_algebra/expm.md)
563570
* [inv](./linear_algebra/inv.md)
564571
* [ishermitian](./linear_algebra/ishermitian.md)
565572
* [issymmetric](./linear_algebra/issymmetric.md)
566573
* [logm](./linear_algebra/logm.md)
574+
* [rank](./linear_algebra/rank.md)
567575
* [rcond](./linear_algebra/rcond.md)
568576
* [schur](./linear_algebra/schur.md)
569577
* [sqrtm](./linear_algebra/sqrtm.md)
@@ -627,6 +635,7 @@
627635
* [random](./random/README.md)
628636
* [rand](./random/rand.md)
629637
* [randn](./random/randn.md)
638+
* [randperm](./random/randperm.md)
630639
* [rng](./random/rng.md)
631640

632641

en/changelogs/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# 0.5.11 (2021-11-26)
2+
3+
## Added
4+
5+
- `hilb` function: Hilbert matrix.
6+
- `invhilb` function: Inverse of Hilbert matrix.
7+
- `cond` function: Condition number for inversion.
8+
- `rank` function: Rank of matrix.
9+
- `ismatrix` function: Determines whether input is matrix.
10+
- `squeeze` function: Removes dimensions of length 1.
11+
- `speye` function: Sparse identity matrix.
12+
- `randperm` function: Random permutation.
13+
- `cat` function: Concatenate arrays.
14+
- `SECURITY.md` file as recommended by Github.
15+
16+
## Fixed
17+
18+
- `vercat`, `horzcat` returns an empty array whose size is equal to the output size as when the inputs are nonempty.
19+
- [#533](http://github.com/Nelson-numerical-software/nelson/issues/533): `find` with one lhs did not return expected result with complex.
20+
- [#536](http://github.com/Nelson-numerical-software/nelson/issues/536): `test_websave_3` failed randomly due to distant server.
21+
122
# 0.5.10 (2021-10-30)
223

324
- Polynomial functions:

en/elementary_functions/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ elementary functions
3131
* [flipud](flipud.md) - Flip order of elements up to dow
3232
* [floor](floor.md) - Round down
3333
* [hex2dec](hex2dec.md) - Convert number in base 16 to decimal.
34+
* [hilb](hilb.md) - Hilbert matrix
3435
* [imag](imag.md) - Imaginary part of an complex number.
3536
* [ind2sub](ind2sub.md) - Linear index to matrix subscript values
37+
* [invhilb](invhilb.md) - Inverse of Hilbert matrix
3638
* [isapprox](isapprox.md) - Return true if arguments are approximately equal, within the precision.
3739
* [istriu](isdiag.md) - Checks if matrix is diagonal.
3840
* [isequal](isequal.md) - Return true if all arguments x1, x2, ... , xn are equal (same dimensions, same values).
3941
* [isequaln](isequaln.md) - Return true if all arguments x1, x2, ... , xn are equal (same dimensions, same values or NaNs).
4042
* [isequalto](isequalto.md) - Return true if all arguments x1, x2, ... , xn are equal (same type, same dimensions, same values or NaNs).
4143
* [isfinite](isfinite.md) - Check for finite entries.
4244
* [isinf](isinf.md) - Check for Infinity entries.
45+
* [ismatrix](ismatrix.md) - determines whether input is matrix or not
4346
* [isnan](isnan.md) - Check for Not a Number entries.
4447
* [istril](istril.md) - Checks if matrix is lower triangular.
4548
* [istriu](istriu.md) - Checks if matrix is upper triangular.
@@ -68,6 +71,7 @@ elementary functions
6871
* [sign](sign.md) - Find the sign function of a number.
6972
* [size](size.md) - Size of an object.
7073
* [sqrt](sqrt.md) - Square root.
74+
* [squeeze](squeeze.md) - Remove dimensions of length 1.
7175
* [sub2ind](sub2ind.md) - Matrix subscript values to linear index
7276
* [swapbytes](swapbytes.md) - Swap byte ordering.
7377
* [tril](tril.md) - Lower triangular part of matrix

en/elementary_functions/SUMMARY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@
2222
* [flipud](flipud.md)
2323
* [floor](floor.md)
2424
* [hex2dec](hex2dec.md)
25+
* [hilb](hilb.md)
2526
* [imag](imag.md)
2627
* [ind2sub](ind2sub.md)
28+
* [invhilb](invhilb.md)
2729
* [isapprox](isapprox.md)
2830
* [istriu](isdiag.md)
2931
* [isequal](isequal.md)
3032
* [isequaln](isequaln.md)
3133
* [isequalto](isequalto.md)
3234
* [isfinite](isfinite.md)
3335
* [isinf](isinf.md)
36+
* [ismatrix](ismatrix.md)
3437
* [isnan](isnan.md)
3538
* [istril](istril.md)
3639
* [istriu](istriu.md)
@@ -59,6 +62,7 @@
5962
* [sign](sign.md)
6063
* [size](size.md)
6164
* [sqrt](sqrt.md)
65+
* [squeeze](squeeze.md)
6266
* [sub2ind](sub2ind.md)
6367
* [swapbytes](swapbytes.md)
6468
* [tril](tril.md)

en/elementary_functions/hilb.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
3+
# hilb
4+
5+
Hilbert matrix
6+
7+
## Syntax
8+
9+
- h = invhilb(n)
10+
- h = invhilb(n, className)
11+
12+
## Input argument
13+
14+
- n - a scalar, nonnegative integer.
15+
- className - 'single' or 'double' (default).
16+
17+
## Output argument
18+
19+
- h - Hilbert matrix.
20+
21+
## Description
22+
23+
24+
<p><b>hilb</b> computes the exact inverse of the exact Hilbert matrix.</p>
25+
26+
27+
Bibliography
28+
29+
https://en.wikipedia.org/wiki/David_Hilbert, and Thanks to https://nhigham.com/2020/06/30/what-is-the-hilbert-matrix/
30+
31+
## Example
32+
33+
```matlab
34+
h = invhilb(5)
35+
```
36+
37+
## See also
38+
39+
[hilb](hilb.md).
40+
## History
41+
42+
|Version|Description|
43+
|------|------|
44+
|1.0.0|initial version|
45+
46+
47+
## Author
48+
49+
Allan CORNET
50+
51+
52+

en/elementary_functions/invhilb.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
3+
# invhilb
4+
5+
Inverse of Hilbert matrix
6+
7+
## Syntax
8+
9+
- h = hilb(n)
10+
- h = hilb(n, className)
11+
12+
## Input argument
13+
14+
- n - a scalar, nonnegative integer.
15+
- className - 'single' or 'double' (default).
16+
17+
## Output argument
18+
19+
- h - Hilbert matrix.
20+
21+
## Description
22+
23+
24+
<p><b>hilb</b> computes the Hilbert matrix.</p>
25+
26+
27+
Bibliography
28+
29+
https://en.wikipedia.org/wiki/David_Hilbert, and Thanks to https://nhigham.com/2020/06/30/what-is-the-hilbert-matrix/
30+
31+
## Example
32+
33+
```matlab
34+
h = hilb(5)
35+
```
36+
37+
## See also
38+
39+
[invhilb](invhilb.md).
40+
## History
41+
42+
|Version|Description|
43+
|------|------|
44+
|1.0.0|initial version|
45+
46+
47+
## Author
48+
49+
Allan CORNET
50+
51+
52+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
2+
3+
# ismatrix
4+
5+
determines whether input is matrix or not
6+
7+
## Syntax
8+
9+
- TF = ismatrix(A)
10+
11+
## Input argument
12+
13+
- A - input array as a scalar, vector, matrix, or multidimensional array.
14+
15+
## Output argument
16+
17+
- TF - a logical: true if it is a matrix.
18+
19+
## Description
20+
21+
22+
<p><b>TF = ismatrix(A)</b> returns true if A is a matrix.</p>
23+
<p>A matrix is a two-dimensional array that has a size of m-by-n, where m and n are nonnegative integers.</p>
24+
25+
26+
## Example
27+
28+
```matlab
29+
x = [1+i,-i;i,2i];
30+
ismatrix(x)
31+
ismatrix(ones(3,1,2))
32+
```
33+
34+
## See also
35+
36+
[isvector](isvector.md).
37+
## History
38+
39+
|Version|Description|
40+
|------|------|
41+
|1.0.0|initial version|
42+
43+
44+
## Author
45+
46+
Allan CORNET
47+
48+
49+

en/elementary_functions/squeeze.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
3+
# squeeze
4+
5+
Remove dimensions of length 1.
6+
7+
## Syntax
8+
9+
- B = squeeze(A)
10+
11+
## Input argument
12+
13+
- A - input array: multidimensional array
14+
15+
## Output argument
16+
17+
- B - output array.
18+
19+
## Description
20+
21+
22+
<p><b>B = squeeze(A)</b> returns an array with the same elements as the input array A, but with dimensions of length 1 removed.</p>
23+
24+
25+
## Example
26+
27+
```matlab
28+
A = zeros(1, 1, 3);
29+
A(:, :, 1:3) = [1 20 3];
30+
R = squeeze(A)
31+
```
32+
33+
## See also
34+
35+
[reshape](reshape.md).
36+
## History
37+
38+
|Version|Description|
39+
|------|------|
40+
|1.0.0|initial version|
41+
42+
43+
## Author
44+
45+
Allan CORNET
46+
47+
48+

en/linear_algebra/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ linear algebra functions
99

1010

1111
* [chol](chol.md) - Cholesky factorization.
12+
* [cond](cond.md) - Condition number for inversion.
1213
* [det](det.md) - Matrix determinant.
1314
* [eig](eig.md) - Eigenvalues and eigenvectors.
1415
* [expm](expm.md) - Computes the matrix exponential of a square matrix.
1516
* [inv](inv.md) - Matrix inverse.
1617
* [ishermitian](ishermitian.md) - Computes if matrix is hermitian or skew-hermitian.
1718
* [issymmetric](issymmetric.md) - Computes if matrix is symmetric.
1819
* [logm](logm.md) - Computes the matrix logarithm of a square matrix.
20+
* [rank](rank.md) - Rank of matrix.
1921
* [rcond](rcond.md) - Inverse condition number.
2022
* [schur](schur.md) - Schur decomposition.
2123
* [sqrtm](sqrtm.md) - Computes the matrix square root of a square matrix.

0 commit comments

Comments
 (0)