summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorSamuel GOUGEON <sgougeon@free.fr>2021-02-06 22:21:05 +0100
committerClément David <clement.david@esi-group.com>2021-02-18 21:08:22 +0100
commitf148838b4edd2cfdf48d13072d6fbccd126cab1c (patch)
tree928fc3e96d55646730ec56e1c715b89527522621 /scilab
parent8c8ebb886cee8ae01d43cef04385677df9519ad9 (diff)
downloadscilab-f148838b4edd2cfdf48d13072d6fbccd126cab1c.zip
scilab-f148838b4edd2cfdf48d13072d6fbccd126cab1c.tar.gz
[atoms] atoms* listings in console
Change-Id: I0fbb088132713dfe0dabec6e6c91da5e2d7befa1
Diffstat (limited to 'scilab')
-rw-r--r--scilab/CHANGES.md3
-rw-r--r--scilab/modules/atoms/macros/atomsAutoloadList.sci11
-rw-r--r--scilab/modules/atoms/macros/atomsGetInstalled.sci19
-rw-r--r--scilab/modules/atoms/macros/atomsGetLoaded.sci18
-rw-r--r--scilab/modules/atoms/macros/atomsRepositoryList.sci10
5 files changed, 44 insertions, 17 deletions
diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md
index 4387dc4..6f00f2f 100644
--- a/scilab/CHANGES.md
+++ b/scilab/CHANGES.md
@@ -39,6 +39,7 @@ In summary, the main new features are:
39 - In structures, nested lists or structures are now displayed recursively compactly and more explicitly. 39 - In structures, nested lists or structures are now displayed recursively compactly and more explicitly.
40* importgui function has been added to easily interface csvRead 40* importgui function has been added to easily interface csvRead
41* function calls with zero output arguments can be detected with `argn` 41* function calls with zero output arguments can be detected with `argn`
42 - atoms functions can either display or output values
42 43
43 44
44Installation 45Installation
@@ -197,7 +198,7 @@ Feature changes and additions
197 - It can now sort any sparse 2D matrix, in all `g, r, c, lr, lc` methods, including sparse booleans and in multi-level mode. It was formerly limited to sparse real or complex vectors and only to the `g` mode. 198 - It can now sort any sparse 2D matrix, in all `g, r, c, lr, lc` methods, including sparse booleans and in multi-level mode. It was formerly limited to sparse real or complex vectors and only to the `g` mode.
198 - Any hypermatrix can be sorted along a dimension > 2. 199 - Any hypermatrix can be sorted along a dimension > 2.
199* `unique` is enabled for any 2D sparse arrays, in simple, 'c' and 'r' modes. 200* `unique` is enabled for any 2D sparse arrays, in simple, 'c' and 'r' modes.
200* %chars constant added, to easily access to some selected sets of unicode symbols. 201* `%chars` constant added, to easily access to some selected sets of unicode symbols.
201* Lists are displayed in a more compact and comprehensive way. 202* Lists are displayed in a more compact and comprehensive way.
202 203
203Help pages: 204Help pages:
diff --git a/scilab/modules/atoms/macros/atomsAutoloadList.sci b/scilab/modules/atoms/macros/atomsAutoloadList.sci
index 41c377c..39ab9325 100644
--- a/scilab/modules/atoms/macros/atomsAutoloadList.sci
+++ b/scilab/modules/atoms/macros/atomsAutoloadList.sci
@@ -12,7 +12,7 @@
12 12
13// get the list of repositories 13// get the list of repositories
14 14
15function modules = atomsAutoloadList(section) 15function varargout = atomsAutoloadList(section)
16 16
17 // Load Atoms Internals lib if it's not already loaded 17 // Load Atoms Internals lib if it's not already loaded
18 // ========================================================================= 18 // =========================================================================
@@ -67,7 +67,6 @@ function modules = atomsAutoloadList(section)
67 67
68 // Loop on sections 68 // Loop on sections
69 // ========================================================================= 69 // =========================================================================
70
71 for i=1:size(sections,"*") 70 for i=1:size(sections,"*")
72 71
73 autoloaded = atomsAutoloadLoad(sections(i)); 72 autoloaded = atomsAutoloadLoad(sections(i));
@@ -78,4 +77,12 @@ function modules = atomsAutoloadList(section)
78 77
79 end 78 end
80 79
80 // Set the result
81 // =========================================================================
82 if argn(1) > 0 then
83 varargout = list(modules)
84 else
85 mprintf("%s\n", strcat(justify(modules,"l"), " ", "c"))
86 end
87
81endfunction 88endfunction
diff --git a/scilab/modules/atoms/macros/atomsGetInstalled.sci b/scilab/modules/atoms/macros/atomsGetInstalled.sci
index 97c4749..1da835a 100644
--- a/scilab/modules/atoms/macros/atomsGetInstalled.sci
+++ b/scilab/modules/atoms/macros/atomsGetInstalled.sci
@@ -14,13 +14,11 @@
14 14
15// Return a 5xn string matrix : 15// Return a 5xn string matrix :
16// 16//
17// !toolbox2 0.1 user /home/pmarecha/.Scilab/scilab-branch-atoms/atoms/contrib/toolbox2/0.1 A ! 17// !toolbox2 0.1 user SCIHOME/atoms/contrib/toolbox2/0.1 A !
18// ! ! 18// !toolbox2 0.2 user SCIHOME/atoms/contrib/toolbox2/0.2 A !
19// !toolbox2 0.2 user /home/pmarecha/.Scilab/scilab-branch-atoms/atoms/contrib/toolbox2/0.2 A ! 19// !toolbox_skeleton 1.3 alluser SCI/contrib/toolbox_skeleton/1.3 I !
20// ! !
21// !toolbox_skeleton 1.3 alluser /home/pmarecha/work/atoms/scilab/contrib/toolbox_skeleton/1.3 I !
22 20
23function packages = atomsGetInstalled(section) 21function varargout = atomsGetInstalled(section)
24 22
25 // Load Atoms Internals lib if it's not already loaded 23 // Load Atoms Internals lib if it's not already loaded
26 // ========================================================================= 24 // =========================================================================
@@ -58,5 +56,12 @@ function packages = atomsGetInstalled(section)
58 // Call atomsLoadInstalledMat 56 // Call atomsLoadInstalledMat
59 // ========================================================================= 57 // =========================================================================
60 packages = atomsLoadInstalledMat(section); 58 packages = atomsLoadInstalledMat(section);
61 59
60 // Set the result
61 // =========================================================================
62 if argn(1) > 0 then
63 varargout = list(packages)
64 else
65 mprintf("%s\n", strcat(justify(packages,"l"), " ", "c"))
66 end
62endfunction 67endfunction
diff --git a/scilab/modules/atoms/macros/atomsGetLoaded.sci b/scilab/modules/atoms/macros/atomsGetLoaded.sci
index e89822f..e9c7ddb 100644
--- a/scilab/modules/atoms/macros/atomsGetLoaded.sci
+++ b/scilab/modules/atoms/macros/atomsGetLoaded.sci
@@ -14,13 +14,11 @@
14 14
15// Return a 4xn string matrix : 15// Return a 4xn string matrix :
16// 16//
17// !toolbox2 0.1 user /home/pmarecha/.Scilab/scilab-branch-atoms/atoms/contrib/toolbox2/0.1 A ! 17// !toolbox2 0.1 user SCIHOME/atoms/contrib/toolbox2/0.1 A !
18// ! ! 18// !toolbox2 0.2 user SCIHOME/atoms/contrib/toolbox2/0.2 A !
19// !toolbox2 0.2 user /home/pmarecha/.Scilab/scilab-branch-atoms/atoms/contrib/toolbox2/0.2 A ! 19// !toolbox_skeleton 1.3 alluser SCI/contrib/toolbox_skeleton/1.3 I !
20// ! !
21// !toolbox_skeleton 1.3 alluser /home/pmarecha/work/atoms/scilab/contrib/toolbox_skeleton/1.3 I !
22 20
23function packages = atomsGetLoaded() 21function varargout = atomsGetLoaded()
24 22
25 // Load Atoms Internals lib if it's not already loaded 23 // Load Atoms Internals lib if it's not already loaded
26 // ========================================================================= 24 // =========================================================================
@@ -36,4 +34,12 @@ function packages = atomsGetLoaded()
36 packages = atomsGetInstalledDetails(loaded); 34 packages = atomsGetInstalledDetails(loaded);
37 end 35 end
38 36
37 // Set the result
38 // =========================================================================
39 if argn(1) > 0 then
40 varargout = list(packages)
41 else
42 mprintf("%s\n", strcat(justify(packages,"l"), " ", "c"))
43 end
44
39endfunction 45endfunction
diff --git a/scilab/modules/atoms/macros/atomsRepositoryList.sci b/scilab/modules/atoms/macros/atomsRepositoryList.sci
index 511a207..07ff5b6 100644
--- a/scilab/modules/atoms/macros/atomsRepositoryList.sci
+++ b/scilab/modules/atoms/macros/atomsRepositoryList.sci
@@ -14,7 +14,7 @@
14 14
15// get the list of repositories 15// get the list of repositories
16 16
17function repositories = atomsRepositoryList(section) 17function varargout = atomsRepositoryList(section)
18 18
19 // Load Atoms Internals lib if it's not already loaded 19 // Load Atoms Internals lib if it's not already loaded
20 // ========================================================================= 20 // =========================================================================
@@ -118,4 +118,12 @@ function repositories = atomsRepositoryList(section)
118 118
119 end 119 end
120 120
121 // Set the result
122 // =========================================================================
123 if argn(1) > 0 then
124 varargout = list(repositories)
125 else
126 mprintf("%s\n", strcat(justify(repositories,"l"), " ", "c"))
127 end
128
121endfunction 129endfunction