8 months agoXcos: fix export all layers of a diagram 68/20968/3
Clément DAVID [Mon, 6 May 2019 07:25:32 +0000]
Xcos: fix export all layers of a diagram

Change-Id: Ibc6fe97683d72b2cea7aa6fc06cdfc5e353c6377

8 months agoXcos: add "shift ENTER" as Context validator 39/20939/2
Clement DAVID [Fri, 12 Apr 2019 09:53:10 +0000]
Xcos: add "shift ENTER" as Context validator

Change-Id: I8da82f6c955ce32830b6b5faf15985a71967fea7

8 months agoScicos blocks: speedup benchmarks/sciblk4.tst by 2 24/20924/2
Clément DAVID [Fri, 5 Apr 2019 07:09:45 +0000]
Scicos blocks: speedup benchmarks/sciblk4.tst by 2

Change-Id: Ia59744025515368563312ab4e25ba9edca1b7458

8 months agotoolbox_skeleton: fix isdir() typo on loaders 96/20896/2
Clément DAVID [Wed, 6 Mar 2019 13:59:56 +0000]
toolbox_skeleton: fix isdir() typo on loaders

Change-Id: Ib371c3d3188b95255c4640433714bee0000e24c1

8 months agoNewsfeed: use a custom HTTP User-Agent 64/20864/3
Clément DAVID [Mon, 18 Feb 2019 16:40:36 +0000]
Newsfeed: use a custom HTTP User-Agent

Change-Id: I1316680c33b2e6ef287c9e2fd3638bb75a826b3f

8 months agoXcos CURVE_c: avoid figure popup on error when edit window mode is off. 26/20626/3
Clement DAVID [Mon, 29 Oct 2018 08:02:31 +0000]
Xcos CURVE_c: avoid figure popup on error when edit window mode is off.

Change-Id: Idb19adc793d98a736d85b0053e8d8e34917a4897

8 months agoignore vim CCLS config files (used by ALE) 57/21057/2
Clément DAVID [Fri, 26 Jul 2019 09:25:33 +0000]
ignore vim CCLS config files (used by ALE)

CCLS is a C/C++ language server used by ALE (Linter, Fixer, Completer)
for the C/C++ language.

Change-Id: If0d7bf646ddd03834bdd25de8622ad4f8793c75f

8 months agodifferential_equations: fix bug_3551.tst execution 75/21175/2
Clément DAVID [Mon, 16 Dec 2019 10:28:22 +0000]
differential_equations: fix bug_3551.tst execution

Change-Id: I888fc19d36a6715ec9483714cf2ab5a29b4dfa83

8 months agotime: remove xpause() and related dependency 56/21056/3
Clément DAVID [Wed, 24 Jul 2019 13:03:04 +0000]
time: remove xpause() and related dependency

POSIX.1-2008 nanosleep() is used for other functionnalities. This remove
POSIX.1-2001 sleep() and usleep() usage on Scilab codebase.

Change-Id: I60c3a7fc98bf059f9bc177c5f087738dc583e8fb

8 months agoupdate files for 2020 28/21228/1
Cedric Delamarre [Thu, 16 Jan 2020 12:42:55 +0000]
update files for 2020

Change-Id: I5fe8d2be48784ede1466569b87e2c3102daaf3b6

8 months ago* Bug 15974 fixed: msprintf("%d", %nan) does not return Nan 76/20876/6
Antoine ELIAS [Fri, 22 Feb 2019 08:21:53 +0000]
* Bug 15974 fixed: msprintf("%d", %nan) does not return Nan

http://bugzilla.scilab.org/15974

Change-Id: I2bc0a66e429d732afb884121ec9a6195d4088a90

8 months agomissing a '&' in a '&&' condition 27/21227/1
Antoine ELIAS [Thu, 16 Jan 2020 11:09:01 +0000]
missing a '&' in a '&&' condition

Change-Id: I18f144f1338ecf84b890044bf64faea3d9e04c54

8 months agospreadsheet: speedup by removing intermediate copies 72/20972/11
Clement DAVID [Tue, 7 May 2019 09:57:12 +0000]
spreadsheet: speedup by removing intermediate copies

The passed wchar_t* array should only be copied once before working on
it. During the whole processing, there should be no copy on the common
case (but extra copies might be needed for corner cases). Performance
improvement is also highly related to wchar_t* Scilab string storage.

This commit patch csvTextScan and csvRead functionnalities; please note
that using mgetl and csvTextScan will still need 2 extra copies than
csvRead (1 to store mgetl results and 1 to have mutable buffers during
scanning).

Change-Id: I51f8c4b0e0437bfe4ac69439b739a60262da1cf1

8 months agoparser: remove a memory leak on /* block comments */ 46/21146/3
Clément DAVID [Wed, 4 Dec 2019 09:59:41 +0000]
parser: remove a memory leak on /* block comments */

Change-Id: I9e9870eabfd92a295d8576b22337471ff778f17d

8 months agoast: fix memleaks detected by ASAN during testing 48/21148/4
Clément DAVID [Wed, 4 Dec 2019 13:55:22 +0000]
ast: fix memleaks detected by ASAN during testing

Change-Id: Ib2d1c31769777209ddcd0abc75e534060f12c389

8 months ago* Bug 16200 fixed: concatenation of transposed cells crashed Scilab 95/21095/3
Stéphane MOTTELET [Fri, 27 Sep 2019 08:45:30 +0000]
* Bug 16200 fixed: concatenation of transposed cells crashed Scilab

http://bugzilla.scilab.org/show_bug.cgi?id=16200
http://bugzilla.scilab.org/show_bug.cgi?id=14686

Change-Id: Ibde739acc4b29772e7eef74ab87b4b5fc091c766

8 months ago[Optimization] leaks fixed 74/20274/2
Cedric Delamarre [Mon, 16 Jul 2018 12:14:44 +0000]
[Optimization] leaks fixed

Change-Id: I28c60b78a4158e32bc67468a358d0cb9bb92189c

8 months agofileio: fix build after 70859 fileio/macros/importgui added 23/21223/1
Samuel GOUGEON [Wed, 15 Jan 2020 22:04:52 +0000]
fileio: fix build after 70859 fileio/macros/importgui added

Change-Id: Ie1a3e6762ea3d4ccff0ce93ff00e7bfec46b72e6

8 months agojava: fix build after b82ae59d 22/21222/1
Clement David [Wed, 15 Jan 2020 16:52:48 +0000]
java: fix build after b82ae59d

Change-Id: I1fde35911a4fca5a4254a29588dfae4d4aca51ff

8 months ago* Bug 15451 fixed: reduce Lucene API usage 92/20392/3
Clement David [Wed, 15 Jan 2020 10:57:58 +0000]
* Bug 15451 fixed: reduce Lucene API usage

This commit has been checked with lucene 8.4.0 and 5.2.1.

 http://bugzilla.scilab.org/15451

Change-Id: I9f49d3a2bf9f882fe58f571d7acbcd74cc0a5773

8 months ago* Bug 16260 fixed: overloading nnz() is allowed again. 41/21141/5
Stéphane MOTTELET [Wed, 27 Nov 2019 09:18:33 +0000]
* Bug 16260 fixed: overloading nnz() is allowed again.

http://bugzilla.scilab.org/show_bug.cgi?id=16260

Change-Id: Id761d52a169c5482a61d971d646f6667eaafa63a

8 months ago* Bug 16089 fixed: x=1:1e10 now raise an error 17/21217/3
Stéphane MOTTELET [Mon, 13 Jan 2020 16:24:48 +0000]
* Bug 16089 fixed: x=1:1e10 now raise an error

http://bugzilla.scilab.org/show_bug.cgi?id=16089

Change-Id: Ibdbedb99b7920f8f3348ef61d9b8b2b9f6fbba9a

8 months ago* Bug 11852 fixed: now filebrowser updates 20/21220/3
Stéphane MOTTELET [Tue, 14 Jan 2020 16:11:47 +0000]
* Bug 11852 fixed: now filebrowser updates

https://bugzilla.scilab.org/show_bug.cgi?id=11852

Change-Id: I9d77249c7b2242298dc039a42019164ee6ebd295

8 months ago[ast] allow _iRetCount == 0 in gateways 34/21034/42
Stéphane Mottelet [Fri, 12 Jul 2019 15:41:40 +0000]
[ast] allow _iRetCount == 0 in gateways

http://bugzilla.scilab.org/show_bug.cgi?id=2036

Just an example of what can be done after this patch

* at the macro level (see plot.sci in the patch):

--> plot(1:10,sin(1:10),1:10,cos(1:10))

--> h=plot(1:10,sin(1:10),1:10,cos(1:10))
 h  =

2 by 1 matrix of handles:
=========================
Polyline
Polyline

--> plot(1:10,sin(1:10),1:10,cos(1:10)).foreground
 ans  =

   33.
   2.

zero value of argn(1) is overriden only in relevant cases: e.g. recursive
extraction or use of expression as an argument in another callExp.

* at the gateway level (here old Scilab C API) :

--> plot3d(rand(10,10))

--> h=plot3d(rand(10,10))
 h  =

Handle of type "Plot3d" with properties:
========================================
parent: Axes
children: []
visible = "on"
surface_mode = "on"
foreground = -1
thickness = 1
mark_mode = "off"
mark_style = 0
mark_size_unit = "tabulated"
mark_size = 0
mark_foreground = -1
mark_background = -2
data.x = [1,2,3,4,5,6,7,8,9,10]
data.y = [1,2,3,4,5,6,7,8,9,10]
data.z matrix 10x10
color_mode = 2
color_flag = 0
hiddencolor = 4
clip_state = "clipgrf"
clip_box = []
ambient_color = [0,0,0]
diffuse_color = [1,1,1]
specular_color = [1,1,1]
use_color_material = "on"
material_shininess = 2
user_data = []
tag = ""

Change-Id: I60f075f8e348fea51ca6ddc2c7985324de5d63f5

8 months ago* Bug 16164 fixed [doc]: elementary_functions/signal_processing/* pages mislocated 65/21065/4
Samuel GOUGEON [Sun, 4 Aug 2019 01:52:38 +0000]
* Bug 16164 fixed [doc]: elementary_functions/signal_processing/* pages mislocated

  http://bugzilla.scilab.org/16164

  The macros of bloc2ss, pen2ea, ssrand, sysconv and trfmod are
  already in the right modules (now the same as for their pages).

Change-Id: I1cf27703a0a4a5d92666fd3855984488763dc27e

8 months agotests: regenerate dia.ref after some display changes 49/21149/4
Clément DAVID [Thu, 5 Dec 2019 13:31:26 +0000]
tests: regenerate dia.ref after some display changes

Change-Id: Ib3dd6e772f648139a2b7adac3623019b8954fec5

8 months ago* Bug 16026 fixed: atanh() page and m2sci updated 52/21152/5
Samuel GOUGEON [Sun, 8 Dec 2019 23:22:35 +0000]
* Bug 16026 fixed: atanh() page and m2sci updated

  http://bugzilla.scilab.org/16026

  Updated page (PDF): http://bugzilla.scilab.org/attachment.cgi?id=5031

Change-Id: Icfa1daf8594beed8c5290971179eef485736c2d3

8 months agolocalization: update POT from source code 18/21218/1
Clément DAVID [Tue, 14 Jan 2020 13:25:09 +0000]
localization: update POT from source code

Change-Id: I2de467c8fdf3c5d010eb416624973ad8ad24e0dc

8 months agoWIP: add gui to easily interface csvRead 90/20890/4
Antoine ELIAS [Tue, 26 Feb 2019 11:23:56 +0000]
WIP: add gui to easily interface csvRead

Need : https://codereview.scilab.org/#/c/20891/

Change-Id: Id2f54670acc78070af5f2db472c1e07a1b226eed

8 months ago[ast] fix string() regression after 97488f67 07/21207/2
Stéphane MOTTELET [Mon, 6 Jan 2020 13:20:19 +0000]
[ast] fix string() regression after 97488f67

Change-Id: I3ca07f22c9b922bdbbb467fec3fd16f2714a3364

8 months ago* Bug 15368 fixed: freson() issues on some cases 84/21184/5
Samuel GOUGEON [Sat, 21 Dec 2019 22:19:42 +0000]
* Bug 15368 fixed: freson() issues on some cases

  http://bugzilla.scilab.org/15368

Change-Id: Ic6385968a3c71aa627fdc68ae237c4424bb95abd

9 months ago* Bug 10353 fixed [doc]: axes_properties page fixed + improved 85/21185/3
Samuel GOUGEON [Sun, 22 Dec 2019 03:04:33 +0000]
* Bug 10353 fixed [doc]: axes_properties page fixed + improved

  http://bugzilla.scilab.org/10353

  Help page updated (PDF): http://bugzilla.scilab.org/attachment.cgi?id=5037

Change-Id: I4c34877d58e49fee325ff23fac63f68fed50986c

9 months agoBug 14985 fixed: scilab crashes if a .bin file is not found 78/21178/5
Antoine ELIAS [Tue, 17 Dec 2019 15:40:59 +0000]
Bug 14985 fixed: scilab crashes if a .bin file is not found

http://bugzilla.scilab.org/14985

Change-Id: Ic3d08e8063c41d50e6be94893139a661fed67927

9 months ago[doc] ./utilities section created. head_comments() moved 86/21186/2
Samuel GOUGEON [Sun, 22 Dec 2019 18:44:27 +0000]
[doc] ./utilities section created. head_comments() moved

Change-Id: I32dbeb39d5253718b37a30981f259efdb12ecbc7

9 months ago* Bug 15394 fixed: now Linux build with hdf5 1.10 is OK 79/21179/23
Stéphane MOTTELET [Thu, 19 Dec 2019 00:07:57 +0000]
* Bug 15394 fixed: now Linux build with hdf5 1.10 is OK

http://bugzilla.scilab.org/show_bug.cgi?id=15394

Change-Id: Icc424b4e2acd01e764a3bd888829cff8fd136a5f

9 months ago* Bug 8307: list2vec() vec2list() => [data_structures] 55/21155/4
Samuel GOUGEON [Tue, 10 Dec 2019 00:28:46 +0000]
* Bug 8307: list2vec() vec2list() => [data_structures]

  http://bugzilla.scilab.org/8307

Change-Id: Iaad20c912ca063feb6ede08db0f9e6a7ab56f62f

9 months ago* Bug 16227 fixed: WSCI added in environment 08/21108/3
Samuel GOUGEON [Wed, 30 Oct 2019 23:28:01 +0000]
* Bug 16227 fixed: WSCI added in environment

  http://bugzilla.scilab.org/16227

Change-Id: I6298b52b431cb330c9e3423c42c7a428e51a894d

9 months agofix the windows build after 80e821 76/21176/2
Clement David [Mon, 16 Dec 2019 16:29:30 +0000]
fix the windows build after 80e821

Change-Id: I230f70ca23f4e1a75d7cc967778d944a789b3891

9 months agobug 14791: "sleep 1" crashed Scilab 67/21167/4
Antoine ELIAS [Fri, 13 Dec 2019 09:13:43 +0000]
bug 14791: "sleep 1" crashed Scilab

Change-Id: I4f42416f143f8659e2b29bbd5b6d0407419bbf3c

9 months ago* Bug 15745 fixed: diophant() fixed & improved 71/21171/8
Samuel GOUGEON [Sun, 15 Dec 2019 13:29:03 +0000]
* Bug 15745 fixed: diophant() fixed & improved

  http://bugzilla.scilab.org/15745

  Updated page (PDF): http://bugzilla.scilab.org/attachment.cgi?id=5035

  Unit tests added. They may require https://codereview.scilab.org/20995

Change-Id: I0b01d4634bc6c55d1ace415ae78765e1f045fcb2

9 months ago* Bugs 9529 16104 fixed: assert_checkequal() for lists with void elements 95/20995/8
Samuel GOUGEON [Sat, 1 Jun 2019 04:42:32 +0000]
* Bugs 9529 16104 fixed: assert_checkequal() for lists with void elements

  http://bugzilla.scilab.org/9529
  http://bugzilla.scilab.org/16104

  Are now properly supported:
   - Nan and void in compared lists
   - Nan in sparse
   - implicit lists
   - macros
   - libraries
   - primitives
   - graphical handles
   - when inputs are arrays or lists of same lengths: the mismatch
     message indicates the index of the first mistmatching elements.

Change-Id: I3bac3c5c88bbec181cf17df65e720022d373b384

9 months ago[elementary_functions] fix bitstring unit test after cce20c5c 60/21160/2
Stéphane MOTTELET [Tue, 10 Dec 2019 13:29:09 +0000]
[elementary_functions] fix bitstring unit test after cce20c5c

Before https://codereview.scilab.org/#/c/21008/ bit sign of Nan
string was incorrect.

Change-Id: I16ef07237bbdef442f187e48e2674d9813a9eb40

9 months ago[differential_equations] fix ode unitary test afer 55d858ad 59/21159/4
Stéphane MOTTELET [Tue, 10 Dec 2019 13:24:13 +0000]
[differential_equations] fix ode unitary test afer 55d858ad

Error formula has been fixed in 55d858ad for "rk" solver and resulting
error was bigger than supposed. The test now verifies that relative
error w.r.t. true solution is in the expected default tolerance, for the
three tested solvers, "rk", "rkf" and "fixx".

Change-Id: I55105d38affb0b450c3cb00d809379fe5d47f757

9 months ago* Bug 15744 fixed: sylm(a,b) failed for deg(a)|deg(b)==0 69/21169/4
Samuel GOUGEON [Fri, 13 Dec 2019 22:29:09 +0000]
* Bug 15744 fixed: sylm(a,b) failed for deg(a)|deg(b)==0

  http://bugzilla.scilab.org/15744

Change-Id: If70c645afecef1141a681eb69ee7cca608e1c59e

9 months ago* Bugs 7724 13766 fixed [doc]: figure_properties/figure fixed/improved 07/20907/5
Samuel GOUGEON [Sun, 24 Mar 2019 19:08:23 +0000]
* Bugs 7724 13766 fixed [doc]: figure_properties/figure fixed/improved

  http://bugzilla.scilab.org/7724  : Minimal figure sizes
  http://bugzilla.scilab.org/13766 : At creation, .auto_resize="on"
                              makes .axes_size driving .figure_size

  + .figure_size & .axes_size warning when the figure is docked

Change-Id: Ia9a05df81de0431336c37952b44a9f59b6dd9e43

9 months ago* Bugs 10353.1 16210 fixed [doc]: uicontrol.position .units 73/21173/3
Samuel GOUGEON [Sun, 15 Dec 2019 20:44:41 +0000]
* Bugs 10353.1 16210 fixed [doc]: uicontrol.position .units

  http://bugzilla.scilab.org/10353
  http://bugzilla.scilab.org/16210

  + .string, .value: Description improved for spinner

Change-Id: Ib344d326248237a24de7da8f8a337a822bb2445e

9 months ago[doc] mv data_structures/types => core/types 72/21172/2
Samuel GOUGEON [Sun, 15 Dec 2019 17:47:53 +0000]
[doc] mv data_structures/types => core/types

Change-Id: I5b43b671b4f258667d074e03a7a1efe428853717

9 months ago%i_isreal() %i_real() %i_imag() added 70/21170/3
Samuel GOUGEON [Sat, 14 Dec 2019 23:32:48 +0000]
%i_isreal() %i_real() %i_imag() added

  This also enables isinf() and isnan() for integers.

Change-Id: I8bc31bcaa8c36cc14d99015003a6fa974311ccec

9 months ago[doc] misc. typos, small fixes & improvements 38/21138/14
Samuel GOUGEON [Mon, 25 Nov 2019 01:53:37 +0000]
[doc] misc. typos, small fixes & improvements

 * %k: m was wrongly restricted to R+. integral definition was missing.
 * bitget: an example simplified
 * freson: discrete: <programlisting> did not match <scilab:image>
 * optim_sa: alone in its section => moved in ../
 * http_upload had a wrong refname
 * warning: translated versions were not up-to-date:
    http://bugzilla.scilab.org/16265

Change-Id: Idfcbfa995158edb5af780d94a90cb3f91a462e60

9 months ago[core] fix regressions after c1f299d7 58/21158/7
Stéphane Mottelet [Tue, 10 Dec 2019 11:10:28 +0000]
[core] fix regressions after c1f299d7

who_user unit test, bug 1473 NR test: linspace is not anynore a macro.
bug 12913 regression: integer type should be OK for size paramter.

Change-Id: I4be92b3accd76c0b83cdf18571de999b4094642d

9 months ago* Bug 12999 fixed: now zeros() and ones() can return integers 64/19964/17
Stéphane Mottelet [Thu, 19 Apr 2018 10:07:17 +0000]
* Bug 12999 fixed: now zeros() and ones() can return integers

http://bugzilla.scilab.org/12999

new syntax zeros(n1,..,nd,"type") and zeros(A,"type") are supported
for type in the set {double, boolean, (u)int(8|16|32|64)}
Legacy syntax works as before, i.e. zeros(A) is always a double and
empty matrix is always a double.

Change-Id: I4c3f9bbd42cadd058e6130e8dd4fc9bbfb1eeafa

9 months ago[core] fix display.tst after 652361d9 57/21157/3
Stéphane Mottelet [Tue, 10 Dec 2019 10:50:53 +0000]
[core] fix display.tst after 652361d9

Change-Id: I80555fd17b4e699e48d61026e556c3216d26ae6a

9 months ago[ast] fix oversized rational and polynomial display after 0000af49 68/21168/8
Stéphane MOTTELET [Fri, 13 Dec 2019 10:32:38 +0000]
[ast] fix oversized rational and polynomial display after 0000af49

In addition, the dash used for fraction bar has been downgraded to
straight minus sign because of incorrect display of unicode fullwidth
hyphen.

https://www.fileformat.info/info/unicode/char/ff0d/index.htm

with "monospace" font under Windows (although well supported with all
monospaced fonts under Linux and OSX).

This patch also include the fix for

http://bugzilla.scilab.org/show_bug.cgi?id=16158

Change-Id: I1f33edd7d30379a40fcafe8759f80ddfc4e3287b

9 months ago* Bug 16275 fixed: fsolve(x0,fun,tol) ignored tol 63/21163/3
Samuel GOUGEON [Wed, 11 Dec 2019 02:53:24 +0000]
* Bug 16275 fixed: fsolve(x0,fun,tol) ignored tol

  http://bugzilla.scilab.org/16275

Change-Id: I6142d5d977bd5ec43635ac878d877b1f7489b86e

9 months ago* Bug 16257: blockdiag() introduced 40/21140/4
Samuel GOUGEON [Tue, 26 Nov 2019 21:15:39 +0000]
* Bug 16257: blockdiag() introduced

  http://bugzilla.scilab.org/16257
  PDF page: http://bugzilla.scilab.org/attachment.cgi?id=5028

  sysdiag() will be obsoleted after merging this commit
  (blockdiag() must first be available)

Change-Id: Ib5886cd71970f63c899ffad585ec9a98e871863b

9 months ago[api_scilab] fix bug_12426 failure with Scilab source version 61/21161/2
Stéphane MOTTELET [Tue, 10 Dec 2019 16:22:58 +0000]
[api_scilab] fix bug_12426 failure with Scilab source version

Change-Id: I353a69639006e6a720a8301d76b55a7b6c65fa9d

9 months agoadd a %foo_clear overloading on mlist 79/20679/14
Clément DAVID [Wed, 9 Jan 2019 10:16:32 +0000]
add a %foo_clear overloading on mlist

This overload will be called at the end of the scope when a variable
will not be accessible anymore for clearing allocated data.

Implementations for External Object and External Object Java are also
provided to avoid being forced to call `jremove`.

Change-Id: I13076e936f9d35a559e12a8668aaaaa6f7a6a8ab

9 months ago* Bugs 15680 16242 16271 fixed: loadmatfile() improved 51/21151/5
Samuel GOUGEON [Sun, 8 Dec 2019 01:39:56 +0000]
* Bugs 15680 16242 16271 fixed: loadmatfile() improved

  http://bugzilla.scilab.org/15680 : "-toStruct" => output struct added
  http://bugzilla.scilab.org/16242 : "-octave" supported
  http://bugzilla.scilab.org/16271 : Automatic format detection

  Help page overhauled (PDF): http://bugzilla.scilab.org/attachment.cgi?id=5030

Change-Id: I1d9864146f4c7b9835576661485d4ae7db17fb8e

9 months ago* Bug 16272 fixed: now spzeros(n,m) is spzeros(0,0) when n*m is 0 53/21153/2
Stéphane MOTTELET [Mon, 9 Dec 2019 09:52:51 +0000]
* Bug 16272 fixed: now spzeros(n,m) is spzeros(0,0) when n*m is 0

http://bugzilla.scilab.org/show_bug.cgi?id=16272

Change-Id: Ib13e90e8847d9e5dd7e3c00d2d47f49488904c55

9 months ago* Bug 16139 fixed: auread() auwrite() kept sound file locked on error 31/21031/3
Samuel GOUGEON [Sat, 6 Jul 2019 10:25:37 +0000]
* Bug 16139 fixed: auread() auwrite() kept sound file locked on error

  + The default .au sound file extension was poorly handled.

  http://bugzilla.scilab.org/16139

Change-Id: Idbef7f8f689aaa8fd1108ec5f6c9589b6a649bb9

9 months ago* Bug 16152 fixed: after s=spzeros(2,3), s([]) returns sparse(0,0) 74/21074/3
Stéphane MOTTELET [Mon, 26 Aug 2019 15:52:44 +0000]
* Bug 16152 fixed: after s=spzeros(2,3), s([]) returns sparse(0,0)

http://bugzilla.scilab.org/show_bug.cgi?id=16152

Also fixed the same bug with for boolean sparse and improved
display of type and emptyness.

Change-Id: I4cbac3a984cdac981806a69e1078abae74b8c68c

9 months ago[ast] fix string(rational) regression after 0000af49 54/21154/1
Stéphane MOTTELET [Mon, 9 Dec 2019 14:52:52 +0000]
[ast] fix string(rational) regression after 0000af49

Change-Id: I737bb55e9fd002214d8dc62d2f49512d8fe4b3f0

9 months ago[ast] improve display of (complex) polymomials and rationals 42/21142/10
Stéphane MOTTELET [Wed, 27 Nov 2019 15:59:23 +0000]
[ast] improve display of (complex) polymomials and rationals

--> p=(1+%i+%s)^7
 p  =

 8-8i -56is -(84+84i)s² -140s³ -(70-70i)s⁴ +42is⁵ +(7+7i)s⁶ +s⁷

--> p=1./[%s %s^2; (%s+1+%i)^2 %s^4] + %s+%i
 p  =

           1 +is +s²          1 +is² +s³
           ─────────          ──────────
               s                  s²

   -1 -(2-4i)s +(2+3i)s² +s³  1 +is⁴ +s⁵
   ─────────────────────────  ──────────
        2i +(2+2i)s +s²           s⁴

Change-Id: If3c4cc35cc7f4e02fe48b5d8f8acd07495501147

9 months ago* Bug 5512 fixed: now disp() respects arguments order 11/21011/12
Stéphane MOTTELET [Tue, 18 Jun 2019 06:44:30 +0000]
* Bug 5512 fixed: now disp() respects arguments order

http://bugzilla.scilab.org/show_bug.cgi?id=5512

Change-Id: I2e8d3019017fca5b33ac94608a1fe20fe75cc918

9 months ago[ast] fix reverse order of assignment display 12/21012/2
Stéphane Mottelet [Tue, 18 Jun 2019 10:41:03 +0000]
[ast] fix reverse order of assignment display

Change-Id: I49832aa06d6549e7b111e7c58c0636912c96ba7f

9 months ago[ast] display trailling zeros when significant digit is hidden 92/21092/4
Stéphane MOTTELET [Wed, 18 Sep 2019 14:41:44 +0000]
[ast] display trailling zeros when significant digit is hidden

This patch activates the display of trailing zeros only when
displaying a scalar, matrix display is unchanged:

--> x=1:0.1:2
 x  =

   1.   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   1.9   2.

--> x(8)
 ans  =

   1.7000000

--> x(8)-1.7
 ans  =

   2.220D-16

Change-Id: I176ac635ddd7b10f9f9e4f57291b594e666bf59e

9 months ago* Bug 16118 fixed: now %s <> 1+%s returns %t 14/21014/3
Stéphane MOTTELET [Wed, 19 Jun 2019 12:58:33 +0000]
* Bug 16118 fixed: now %s <> 1+%s returns %t

http://bugzilla.scilab.org/show_bug.cgi?id=16118

Change-Id: Id58c6e33513584572a6642a97b03f381eab4b4f5

9 months ago* Bug 16263 fixed: insertion in complex polynomial is repaired 44/21144/4
Stéphane MOTTELET [Fri, 29 Nov 2019 08:54:56 +0000]
* Bug 16263 fixed: insertion in complex polynomial is repaired

https://bugzilla.scilab.org/show_bug.cgi?id=16263

This bug was also breaking addition of complex rationals:

https://bugzilla.scilab.org/show_bug.cgi?id=16262
https://bugzilla.scilab.org/show_bug.cgi?id=16261

Change-Id: Ic1daca304a967158a174573792be6968a44a9fe1

9 months ago* Bug 16264 fixed: now after empty loop iterator is empty 45/21145/5
Stéphane MOTTELET [Tue, 3 Dec 2019 12:29:26 +0000]
* Bug 16264 fixed: now after empty loop iterator is empty

http://bugzilla.scilab.org/show_bug.cgi?id=16264

Change-Id: I6aa282aa795b85d44aefd722ad24fabad1c0e54a

9 months agoast: fix Coverity #1407683 and #1407684 34/21134/2
Clément DAVID [Thu, 21 Nov 2019 08:15:18 +0000]
ast: fix Coverity #1407683 and #1407684

Change-Id: I2b71788ea0037b3924bb2a2b4a75ab9d8b37f9a0

10 months ago[ast] fix missing cases after 603f3ba1 35/21135/1
Stéphane MOTTELET [Thu, 21 Nov 2019 09:00:00 +0000]
[ast] fix missing cases after 603f3ba1

-a(...) without fields or whatever on arrayof derived types
-first line display of addColumnString

added a spurious std::endl in mode(1).

Change-Id: I5fe0fe185e97b8458f70a450f0731d7c78945ee4

10 months ago[elementary_functions] linspace() c++ gateway gives tremendous speedup 85/20685/4
Stéphane MOTTELET [Fri, 19 Oct 2018 21:48:38 +0000]
[elementary_functions] linspace() c++ gateway gives tremendous speedup

40x speedup for typical sizes:

Scilab 6.0.1:
--> tic;for i=1:100000;linspace(0,2*%pi,1000);end;toc()
 ans  =
   20.667936

Scilab master:
--> tic;for i=1:100000;linspace(0,2*%pi,1000);end;toc()
 ans  =
   0.476891

and linear interpolation between arrays of any dimensions, e.g.

--> linspace(rand(2,2),rand(2,2),5)
 ans  =

(:,:,1)

   0.8782165   0.5608486
   0.068374    0.6623569
(:,:,2)

   0.84025     0.5567008
   0.1009091   0.5547864
(:,:,3)

   0.8022836   0.552553
   0.1334442   0.4472159
(:,:,4)

   0.7643171   0.5484051
   0.1659793   0.3396453
(:,:,5)

   0.7263507   0.5442573
   0.1985144   0.2320748

Change-Id: I81362a2d858f1a465f4becc6ae8a29aea4dbda28

10 months ago* Bug 15781 fixed: display of complex matrix was ugly 89/21089/6
Stéphane MOTTELET [Wed, 18 Sep 2019 10:13:44 +0000]
* Bug 15781 fixed: display of complex matrix was ugly

https://bugzilla.scilab.org/show_bug.cgi?id=15781

This patch strictly adresses the complex display problem.

Alignment is fixed and homegeneity is obtained by always displaying
a real and an imaginary part even when both are zero in all cases:
scalar, vector and matrix.

Change-Id: I1bb92a5387bbd939d998b1ae7e9fc6df46c30528

10 months ago[ast] improved polynomial display with unicode superscripts 00/21100/3
Stéphane MOTTELET [Thu, 3 Oct 2019 14:58:32 +0000]
[ast] improved polynomial display with unicode superscripts

Example:

--> [(1+%s)^7; 1+%s^12]
 ans  =

   1 +7s +21s² +35s³ +35s⁴ +21s⁵ +7s⁶ +s⁷

   1 +s¹²

Change-Id: I122941b9e35eb622ad36718e0e9ee311603bb8ae

10 months ago* Bug 16191 fixed: now mode(0) and mode(1) are really compact. 93/21093/6
Stéphane MOTTELET [Wed, 18 Sep 2019 17:18:03 +0000]
* Bug 16191 fixed: now mode(0) and mode(1) are really compact.

https://bugzilla.scilab.org/show_bug.cgi?id=16191

Change-Id: Ib69a6d17d2da00c64be28fa0ca79b6ba319c0efe

10 months ago* Bug 16209 fixed: grand(n,m,exp,1) may freeze Scilab with default generator 98/21098/2
Stéphane MOTTELET [Wed, 2 Oct 2019 10:18:44 +0000]
* Bug 16209 fixed: grand(n,m,exp,1) may freeze Scilab with default generator

http://bugzilla.scilab.org/show_bug.cgi?id=16209

Change-Id: I11bb954a7a70d0d2862dba8dddc42d9dcada2fd0

10 months ago* Bug 16208 fixed: 3D string matrix may crash old C-api gateways 02/21102/3
Stéphane MOTTELET [Mon, 7 Oct 2019 11:39:08 +0000]
* Bug 16208 fixed: 3D string matrix may crash old C-api gateways

http://bugzilla.scilab.org/show_bug.cgi?id=16208

Change-Id: I5de8e746ce2f1976a9b2cb1f5a2bbe8e697ee4f0

10 months ago[doc] fix typo in dec2base help page 31/21131/2
Federico Miyara [Tue, 19 Nov 2019 08:58:38 +0000]
[doc] fix typo in dec2base help page

Change-Id: Ibbf83fc03e0bf5e437455adfc9e372395ad8e693

10 months ago[atoms] prevent unzip of spurious __MACOSX under Darwin 16/21116/5
Stéphane MOTTELET [Tue, 5 Nov 2019 10:57:55 +0000]
[atoms] prevent unzip of spurious __MACOSX under Darwin

This directory is created when zip archives are made from the Finder,
i.e. not from the command line. It breaks the installation process of
the package, as a single directory is expected after unzip.

http://mailinglists.scilab.org/Scilab-users-lincos-instruction-example-file-pendulum-anim45-zcos-is-corrupted-Buggzilla-16221-tp4039887p4039990.html

Change-Id: I0aa658b1deff9a8c3ad051ae36e7309dabf6d1ef

10 months ago[OSX] allow Scilab to run on Catalina 17/21117/2
Stéphane MOTTELET [Tue, 5 Nov 2019 12:21:53 +0000]
[OSX] allow Scilab to run on Catalina

Change-Id: I27c0c8eb8d55790f3997576072c979070ca7ecf3

10 months agoAllow Scilab compilation under OSX Catalina 18/21118/3
Stéphane MOTTELET [Tue, 5 Nov 2019 12:31:43 +0000]
Allow Scilab compilation under OSX Catalina

Change-Id: Id3344f86e985e3795ac1a4ca0e720b4847f6407e

10 months agofix llabs()/_abs64() on unsigned warnings 23/21123/2
Clément DAVID [Thu, 7 Nov 2019 08:21:40 +0000]
fix llabs()/_abs64() on unsigned warnings

Change-Id: Ia1d7e89f649a871172c13eb2211d02e4eda793bd

10 months agoRemove the deprecated (c++11) bind1st and bind2nd 21/21121/2
Clément DAVID [Wed, 6 Nov 2019 10:41:26 +0000]
Remove the deprecated (c++11) bind1st and bind2nd

Change-Id: I20e656d1d15596c34350ca51a1ebdbd6abdd4f63

10 months agoLinux dynamic link: remove pre-c++11 ABI compat 32/21132/3
Clément DAVID [Tue, 19 Nov 2019 10:37:57 +0000]
Linux dynamic link: remove pre-c++11 ABI compat

This is needed after 0068b70 to have a clean post c++11 ABI usage. On
rebuild, each toolbox will use the C++11 ABI without source code change.

Change-Id: I9988cdca033939346c5ce543ec8715b865085fb2

10 months ago[doc] misc. fix & improvements 77/20877/49
Samuel GOUGEON [Fri, 22 Feb 2019 14:11:29 +0000]
[doc] misc. fix & improvements

  * JKFLIPFLOP_content: useless after https://codereview.scilab.org/20745
  * dct: typo fixed: http://bugzilla.scilab.org/15982
  * chdir: b not documented in (fr): http://bugzilla.scilab.org/10882
           + improvements: default path, + <screen>, see also.
  * convol2d: result's length error fixed: http://bugzilla.scilab.org/16042
  * stdev (en) typo : http://bugzilla.scilab.org/16099
  * backslash: history version fixed.
  * lcm.xm: removed. Bad extension. Duplicate of lcm.xml
  * name2rgb: + names are case insensitive.
  * m2scideclare: one useless itemizedlist level suppressed.
                  Examples: required \n added.
  * SCIHOME, startup: See also: extra <simplelist> removed
  * gettext: protect \n in some samples of the table of syntaxes.
     + remark % blanks delimiting messages id in XML and XSL.
  * SP/Howto chapter: empty section removed (fr,ja)
  * exp (fr): the input matrix does not need to be square.
  * calendar:
    - fix c = calendar => c = calendar()
    - fix "from sunday to saturday" => "from monday to sunday"
    - fix shifted translations of days series.
    - examples extended and illustrated.

Change-Id: Ib875d0268129be395456b103453d64668029f52a

10 months agofix missing-override warnings on Scilab types 20/21120/2
Clément DAVID [Wed, 6 Nov 2019 10:39:34 +0000]
fix missing-override warnings on Scilab types

Change-Id: I94bd9ad3a002247cfd140d259a1b0572c3a2c4c1

11 months agoLinux: enforce a c++17 compiler usage 05/21105/1
Clément DAVID [Fri, 18 Oct 2019 10:14:09 +0000]
Linux: enforce a c++17 compiler usage

Change-Id: If6d8116190e9ab428a6dc2207bc71741ea798a71

11 months ago[doc] misc. patchs & small improvements 23/21023/31
Samuel GOUGEON [Tue, 25 Jun 2019 13:17:32 +0000]
[doc] misc. patchs & small improvements

  api_common, api_integer: bad formatting fixed
             https://help.scilab.org/docs/6.0.2/en_US/api_common.html
             https://help.scilab.org/docs/6.0.2/en_US/api_integer.html
  corr: puzzled ASCII formula replaced with LaTeX
  TMPDIR: tempname added to See also
  fromc, fromjava, istssession, getscilabmode: cross-referencing improved
  test_run: See also section added
  rowinout: Ascii art unpuzzled.
  isoview (fr): typo
  primes: short description more explicit. <screen> added.
  getvalue: list of values => table (not list of vars).
            "lis" not implemented. descriptions improved.
            variablelist nesting error for (fr)

Change-Id: I01bf8ddfcc20130f79b8912f62937cc7cd7baaf5

11 months agoLinux: update to automake 1.16.1 01/21101/1
Clément DAVID [Fri, 4 Oct 2019 07:42:44 +0000]
Linux: update to automake 1.16.1

Change-Id: I7cd40ec68f2d9af93c5bf2fba9db471f2b0ae6e6

12 months agoremove watches from scilab debugger 83/21083/1
Cedric Delamarre [Wed, 4 Sep 2019 15:39:41 +0000]
remove watches from scilab debugger

Change-Id: I6042f8328e1b98f2f04c175d40b129bac1693b12

12 months ago[debugger] do not stop execution inside a macro witout source file 72/21072/2
Cedric Delamarre [Mon, 26 Aug 2019 08:37:57 +0000]
[debugger] do not stop execution inside a macro witout source file

Change-Id: I1d3179065f3e1bf28750ef73d56389c38718286a

13 months ago* Bug 16174 fixed: now libraryinfo() yields [] for lib without macro 71/21071/4
Stéphane MOTTELET [Fri, 23 Aug 2019 09:13:44 +0000]
* Bug 16174 fixed: now libraryinfo() yields [] for lib without macro

https://bugzilla.scilab.org/show_bug.cgi?id=16174

Change-Id: I3dcdb7c66d01fcde800cc522357c376c534eae8e

13 months ago[debugger] use an InternalType as watch value instead of string 59/21059/2
Cedric Delamarre [Tue, 30 Jul 2019 10:11:57 +0000]
[debugger] use an InternalType as watch value instead of string

Change-Id: Id7432387a6c68a0c72fa0e536cb457097866bc84

13 months agoreduce overhead of debugger and improve output of functions 60/21060/2
Antoine ELIAS [Tue, 30 Jul 2019 13:30:28 +0000]
reduce overhead of debugger and improve output of functions

Change-Id: I2e628ffb6acb06a06fba58f4d4e03c76ecb57426

14 months ago[casd] trzeros crashed under OSX when using gfortran 59/20959/5
Stéphane MOTTELET [Wed, 24 Apr 2019 14:58:40 +0000]
[casd] trzeros crashed under OSX when using gfortran

Change-Id: I7fedb7f2058d1b6bd98f6df38927a2bd816d8842

14 months ago* Bug 14557 fixed: now csim work when system has no state 13/21013/4
Stéphane MOTTELET [Wed, 19 Jun 2019 11:22:42 +0000]
* Bug 14557 fixed: now csim work when system has no state

http://bugzilla.scilab.org/show_bug.cgi?id=14557

Change-Id: I872d72f8435bfe5fc0ee6d4dacea61ed0bd75210

14 months agoast: fix ArrayOf<T>::insertNew out-of-bounds access 50/21050/4
Clément DAVID [Wed, 24 Jul 2019 08:13:57 +0000]
ast: fix ArrayOf<T>::insertNew out-of-bounds access

Will fix Coverity ID #1401289 as well as running ast tests using
valgrind or ASAN.

Change-Id: If8141f3c9776116eb47d36555ecff8902421c631

14 months ago* Bug 15715 fixed: now %nan indexes do not crash Scilab 16/21016/2
Stéphane Mottelet [Thu, 20 Jun 2019 08:53:06 +0000]
* Bug 15715 fixed: now %nan indexes do not crash Scilab

http://bugzilla.scilab.org/show_bug.cgi?id=15715

Change-Id: Ic3958e233c34548a1b873cda84ae3f42f962e16a

14 months ago* Bug 16144 fixed: addition of sparse matrices gave incorrect results 32/21032/5
Stéphane MOTTELET [Wed, 10 Jul 2019 11:50:18 +0000]
* Bug 16144 fixed: addition of sparse matrices gave incorrect results

http://bugzilla.scilab.org/show_bug.cgi?id=16144

Change-Id: I45b06e55ccae711d1add233e9d0692b36f82c76d

14 months agofix vfproj after f1c2002 47/21047/1
Antoine ELIAS [Mon, 22 Jul 2019 07:37:01 +0000]
fix vfproj after f1c2002

Change-Id: If7ebd7d5664ee979455b496932f2aae22d72f9aa