7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

9 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

9 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

9 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

10 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

11 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

11 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

11 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

11 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 months ago[interpolation] mesh2d gateway introduced 81/20681/11
Stéphane Mottelet [Tue, 9 Oct 2018 16:35:12 +0000]
[interpolation] mesh2d gateway introduced

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

Change-Id: I8d5a80579a1c056b02fb0ce8abba5394395f0088

12 months ago* Bug 14498 fixed: size([],3) returned 1 instead of 0 40/21040/3
Samuel GOUGEON [Thu, 18 Jul 2019 16:16:42 +0000]
* Bug 14498 fixed: size([],3) returned 1 instead of 0

  http://bugzilla.scilab.org/14498

Change-Id: I2cfce9306d1a268a1374ec34f851c0fa71c21103

12 months ago* Bug 16111 fixed: now isglobal supports array of strings 28/21028/4
Stéphane MOTTELET [Mon, 1 Jul 2019 15:08:58 +0000]
* Bug 16111 fixed: now isglobal supports array of strings

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

Change-Id: I5fefe90e3e688a9dd8699f365c275cfbb603459e

12 months agoLinux/macOS `-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0` 36/21036/1
Clément DAVID [Wed, 17 Jul 2019 15:47:58 +0000]
Linux/macOS `-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0`

This change will use -std=c++11 mode but will keep a pre-C++11 ABI on Scilab
and toolboxes builds. Some distribution use a c++11 ABI by default which
lead to incompatibilities with the stock release.

Change-Id: Ia088ce1590de277c6490c178da3decb1ba16ef00

12 months agoprovide 2 logging functions, 1 for errors and 1 for outputs 35/21035/3
Antoine ELIAS [Wed, 17 Jul 2019 13:21:46 +0000]
provide 2 logging functions, 1 for errors and 1 for outputs

scilab -nwni -quit -e "1+1;1+'a';" 2> errors.log > outputs.log

Change-Id: Ie733ab6df1b808e4f15351110c25362fd3e09562

12 months agocore: on error, a crash could happen 00/21000/2
Clement DAVID [Thu, 6 Jun 2019 19:30:29 +0000]
core: on error, a crash could happen

The most trivial example is `atomsInstall non_existing_file` but this
might also crash on inner-function definition/clearing.

On error, the call stack have to be copied to the error stack as values
rather than reference to Callable; on stack return, intermediate
Callable will be release as any other variable and the error stack
printed when hitting either a catch or the top level.

Change-Id: Iac132fb0771057c6364dffe66ca0266d6ea60111

12 months agoLinux: add a debug option to launch Scilab under rr 82/20982/3
Clément DAVID [Tue, 21 May 2019 10:07:24 +0000]
Linux: add a debug option to launch Scilab under rr

Change-Id: I806733b72c3ead0dee5b7f6190fe95b77d77c81b

12 months agoScilab debugger updates 05/21005/14
Cedric Delamarre [Tue, 11 Jun 2019 16:06:59 +0000]
Scilab debugger updates

Change-Id: I6c50133a304daa406908c1419ac9a9c00174ca2a

13 months ago* Bug 15984 fixed: display scale fixed for Retina displays under OSX 98/20998/6
Stéphane Mottelet [Tue, 4 Jun 2019 15:21:52 +0000]
* Bug 15984 fixed: display scale fixed for Retina displays under OSX

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

Before fix : http://bugzilla.scilab.org/attachment.cgi?id=4966
After fix  : http://bugzilla.scilab.org/attachment.cgi?id=4967

see also:

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

for generalization of patch for other platforms.

Change-Id: I0ceed485605abe30dedce8d28b0a8514d2a5fa4b

13 months agofix: deletion does not return correct empty matrix 20/21020/1
Antoine ELIAS [Tue, 25 Jun 2019 11:40:38 +0000]
fix: deletion does not return correct empty matrix

Change-Id: I1524e570e6dd2cf0365be8ebfce948d50c6f88a5

13 months ago* Bug 15248: lsq() was leaking memory 18/21018/3
Stéphane MOTTELET [Fri, 21 Jun 2019 10:11:17 +0000]
* Bug 15248: lsq() was leaking memory

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

Change-Id: I6b1358f7f1509f70e89598782628fcff32922c45

13 months ago* Bug 15321: lu() was leaking memory 17/21017/2
Stéphane MOTTELET [Fri, 21 Jun 2019 07:45:16 +0000]
* Bug 15321: lu() was leaking memory

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

Change-Id: I9cd52ba473e71ff159bc9acffc1a561dd90db5e9

13 months ago[types] fix broken .giws.xml file 01/21001/4
Stéphane Mottelet [Fri, 7 Jun 2019 10:08:50 +0000]
[types] fix broken .giws.xml file

Change-Id: I3372e46fa985a9d5a3e177ad708a016d482c0071

13 months ago* Bug 13548 fixed: now Slider values can be int. multiples of sliderStep 37/19937/8
Stéphane Mottelet [Fri, 6 Apr 2018 13:19:34 +0000]
* Bug 13548 fixed: now Slider values can be int. multiples of sliderStep

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

This patch adds a new "SnapToTicks" property and also fixes:

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

Change-Id: I9db479f8cf7a7a4294f9ffb9a314cc2425d68053

13 months agoast: use a human-readable memory number on allocation error 06/21006/2
Clément DAVID [Wed, 12 Jun 2019 08:48:07 +0000]
ast: use a human-readable memory number on allocation error

Change-Id: Id4ef7ad049e6e2a1e6248ad4b07e5b738f186cec

13 months agoStandardization of Inf and NaN. 08/21008/3
Clément DAVID [Wed, 12 Jun 2019 11:24:03 +0000]
Standardization of Inf and NaN.
Provided by NumericConstants class.

Change-Id: I2e616bb2ed275910bd0f0387aff01bcab879eaeb

13 months agoBrowseVar: report used memory with SI prefix 89/20989/4
Clement DAVID [Wed, 29 May 2019 10:10:58 +0000]
BrowseVar: report used memory with SI prefix

Change-Id: I7bc6e28cba10ee907bf65e0d96fc4431174c5653

13 months ago* Bug 15087 fixed: deleting rows or cols from matrix was slow 65/20965/7
Stéphane MOTTELET [Fri, 3 May 2019 12:11:30 +0000]
* Bug 15087 fixed: deleting rows or cols from matrix was slow

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

Change-Id: Ia9e7161a684b2dee75a78f323c98264182d26a73

13 months ago* Bug 14741: frexp() actually undocumented 03/21003/3
Samuel GOUGEON [Mon, 10 Jun 2019 03:34:24 +0000]
* Bug 14741: frexp() actually undocumented

 Comes after https://codereview.scilab.org/21002

Change-Id: I8280e2488b91fd93bae78939cda9730c7c595771

13 months ago* Bug 14741 fixed: [m,e]=log2(x) documented. frexp()=>internal 02/21002/4
Samuel GOUGEON [Mon, 10 Jun 2019 02:58:26 +0000]
* Bug 14741 fixed: [m,e]=log2(x) documented. frexp()=>internal

  http://bugzilla.scilab.org/14741

  New log2() page (PDF): http://bugzilla.scilab.org/attachment.cgi?id=4969

Change-Id: I0984bcc505bd428a0d5df97d94dac45c39b101b2

13 months ago* Bug 16067 fixed: now matrices of signed integers are displayed correctly 74/20974/5
Stéphane MOTTELET [Fri, 10 May 2019 16:13:44 +0000]
* Bug 16067 fixed: now matrices of signed integers are displayed correctly

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

Change-Id: I214dadbba27169d0d032400ed1be1bb0f3c1a4fc

13 months ago* Bug 16003 fixed: now mousewheel zoom works with triangles 99/20899/4
Stéphane Mottelet [Thu, 14 Mar 2019 16:26:35 +0000]
* Bug 16003 fixed: now mousewheel zoom works with triangles

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

In fact Fac3d triangle entities were not considered at all by
the entity picker (I was not aware of this). The failsafe
(no intersection claimed) was broken by
https://codereview.scilab.org/#/c/20581, which added
true "smart" 3D zoom.

Change-Id: Ic7562efed44b6fe880d7c29feadadfdfeab81136

13 months ago* Bug 16015 fixed: intg(a,b,f) called f(x) with x outside domain 05/20905/6
Stéphane Mottelet [Fri, 22 Mar 2019 17:24:21 +0000]
* Bug 16015 fixed: intg(a,b,f) called f(x) with x outside domain

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

Change-Id: I3123ca77777d16f25b645c99de83bb88cc3688ba

13 months agofix build after 31430aee 07/21007/1
Clément DAVID [Wed, 12 Jun 2019 10:07:47 +0000]
fix build after 31430aee

Change-Id: I30340843469ee204b53116e1f8a7a76731c765c1

13 months ago* Bug 16013 fixed: load environment does not fail any more 04/20904/5
Stéphane Mottelet [Fri, 22 Mar 2019 14:20:42 +0000]
* Bug 16013 fixed: load environment does not fail any more

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

Change-Id: I6fae79b58a7ffc5203b1f0e10b2f290142ee7d76

13 months ago* Bug 15668 fixed: save(file) don't save predefined variables any more 03/20903/3
Stéphane Mottelet [Fri, 22 Mar 2019 13:31:40 +0000]
* Bug 15668 fixed: save(file) don't save predefined variables any more

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

Change-Id: Ia46f3167b7cc7763de518f087aa203d74374cf17

13 months ago* Bug 8088 fixed: norm() now accepts %nan and %inf terms 74/20774/3
Stéphane Mottelet [Thu, 20 Sep 2018 14:40:36 +0000]
* Bug 8088 fixed: norm() now accepts %nan and %inf terms

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

Change-Id: I5c30b4dbbc3f643197fd0b4ffb7130adb90c54f8

13 months ago* Bug 15964 fixed: now the sparse empty matrix is always real 66/20866/5
Stéphane Mottelet [Wed, 20 Feb 2019 09:38:58 +0000]
* Bug 15964 fixed: now the sparse empty matrix is always real

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

Change-Id: I6d9456d87d688044970dec0d55f25b156053631b

13 months ago[sparse] now sparse([]) is sparse 27/20727/6
Stéphane Mottelet [Wed, 23 Jan 2019 11:00:01 +0000]
[sparse] now sparse([]) is sparse

Note: also fixes other cases when [] was created instead of a
(0,0) sparse matrix.

Change-Id: I2f5eb43cafab1da1888c7d8cd5fea0d5cbc863b9

13 months ago* Bug 9673 fixed: colon operator precedence was too low 21/20621/3
Stéphane Mottelet [Wed, 14 Nov 2018 08:03:19 +0000]
* Bug 9673 fixed: colon operator precedence was too low

http://bugzilla.scilab.org/show_bug.cgi?id=9673
https://github.com/rdbyk/balisc/issues/601

Change-Id: I42358f7fd938af65232dc063461d4d3506561d85

13 months agoCoverityFix-CID:1350525 Dereference null return value 14/20114/3
Nimish Kapoor [Wed, 6 Jun 2018 06:53:49 +0000]
CoverityFix-CID:1350525 Dereference null return value

Change-Id: Ia9330a817bc3c16056394df144719c6237ca5339

13 months agoCoverityFix-CID:1350493 Dereference null return value 39/20439/2
Nimish Kapoor [Sun, 5 Aug 2018 17:51:43 +0000]
CoverityFix-CID:1350493 Dereference null return value

Change-Id: I1dcc07e09b3e9a44820de779855e45eb1021e445

14 months agoMakefile update 99/20999/1
Cedric Delamarre [Thu, 6 Jun 2019 08:01:44 +0000]
Makefile update

Change-Id: I5884faf21f92806774ca2d132c45136a95a1fedb

14 months agoCoverityFix-CID:1351082 Unread field should be static 69/20269/3
Nimish Kapoor [Mon, 16 Jul 2018 08:50:28 +0000]
CoverityFix-CID:1351082 Unread field should be static

Change-Id: I9b7e286c20cdafdecf88013a3525669da5e7547f

14 months agoCoverityFix CID:1360856 Problems with implementation of equals() 34/20234/4
Nimish Kapoor [Fri, 6 Jul 2018 18:19:38 +0000]
CoverityFix CID:1360856 Problems with implementation of equals()

Change-Id: Ia1e175445e2006435b6abd408804b36b008482fe

14 months ago[scicos_blocks] Capacitor Inductor Resistor: issue with µ unit on icons 01/20901/3
Samuel GOUGEON [Wed, 20 Mar 2019 23:31:53 +0000]
[scicos_blocks] Capacitor Inductor Resistor: issue with µ unit on icons

  Reported at http://mailinglists.scilab.org/Capacitor-value-issue-tt4039249.html

Change-Id: I675c3ce7f93914fa0f873be1318dfb3ecc68df46

14 months agoExample of implicitplot function failed 22/20922/2
Adeline CARNIS [Fri, 5 Apr 2019 10:00:20 +0000]
Example of implicitplot function failed

Change-Id: I3d7cd6c937267af3e3aaa5583af618909b2d2153

14 months ago* Bugs 16012, 16014, 16085: fixed regression of insertion in structs 77/20977/10
Stéphane Mottelet [Tue, 14 May 2019 21:02:22 +0000]
* Bugs 16012, 16014, 16085: fixed regression of insertion in structs

http://bugzilla.scilab.org/show_bug.cgi?id=16014
http://bugzilla.scilab.org/show_bug.cgi?id=16012
http://bugzilla.scilab.org/show_bug.cgi?id=16085
http://bugzilla.scilab.org/show_bug.cgi?id=16087

Change-Id: If3f1b7204698450d731575af46558adf504fcb7f

14 months ago* Bugs 16071+16072+16075 fixed: prettyprint() debugged & a bit improved 58/20958/26
Samuel GOUGEON [Sat, 20 Apr 2019 22:09:27 +0000]
* Bugs 16071+16072+16075 fixed: prettyprint() debugged & a bit improved

  * http://bugzilla.scilab.org/16071 :
    - 0*%z : 0 => 0z  (to show the symbolic variable)
    - complex(1,%nan): 1NaNi => 1 + Nani
    - text input
      => tex|latex:
        $ \ % & { } ~ ^ characters were not protected.
        Spaces were not protected (words were concatenated).
      => mathML: <mi></mi> were missing. "<" was not protected

    - MathML:
      . MathJax does not support <infinity/> => <mi>∞</mi>
      . Any syslin was parenthesed, even with delimiter=""

    - Documentation:
      . ")" was wrongly indicated as supported delimiter.
      . "" as possible delimiter was not documented, to not use any
        matrix bracketting.

    - Improvements:
      . 6.21D+23 : 6.21  x  10^+23  => 6.21 x 10^23
      . 1 + (-2-3i)z  => 1 - (2+3i)z
      . exportFormat was uselessly case-sensitive => no longer the case
      . Default argins had to be explicitly provided when an explicit
        argin follows => now just skip them with ,,.
      . polynomials => tex|latex: a space-free unbreakable string result
        was delivered => now 1 space added after each power term,
        to ease wrapping when required.
      . MathML : formatting of the output improved = \n (ascii(10))
        added before and/or after each <mtable>, </mtable>, <mtr>, </mtr>,
        <mtd>, <mfenced> and </mfenced> for and around tables, enabling
        to easily split the result and then properly indent it with
        external tools.

  * http://bugzilla.scilab.org/16072
      encoded integers were actually NOT supported

  * http://bugzilla.scilab.org/16075
      prettyprint() was broken for cells arrays

  * Unit tests added for texts, integers, complex numbers, polynomials
    with complex coefficients, cells, linear systems, and extended for
    decimal numbers.

Change-Id: Id2fca732444e0cfe1932a3a82825aa09489d7ae5

14 months agoLinux: fix build after e78c5951 - ASAN support 80/20980/1
Clément DAVID [Thu, 16 May 2019 20:05:15 +0000]
Linux: fix build after e78c5951 - ASAN support

 * reset CFLAGS to the previous one
 * disable ASAN by default

Change-Id: I506fccc527b5925c8c25833c3ccdb5b11aea55ab

14 months ago* Bug 15840 fixed: now grand(1,prm,x) has same dims as x 75/20975/3
Stéphane MOTTELET [Mon, 13 May 2019 08:41:23 +0000]
* Bug 15840 fixed: now grand(1,prm,x) has same dims as x

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

Change-Id: If7d1d918d46826a3e783f826c926db1e266308ab

14 months agoAddressSanitizer: allow reports on dyn. loaded libs 61/20861/2
Clément DAVID [Thu, 7 Feb 2019 16:53:15 +0000]
AddressSanitizer: allow reports on dyn. loaded libs

Add a ./configure --enable-address-sanitizer flag to ease usage.

Change-Id: Ibd06bb00b8247b1646158931b0dc2673a88f838c

14 months agoBug #12502 fixed: Rotate, flip did not work on ports 34/20934/3
Clement DAVID [Fri, 22 Mar 2019 09:29:37 +0000]
Bug #12502 fixed: Rotate, flip did not work on ports

Change-Id: I34e3918685e2a6500accc30746bc01a78d2f64eb

14 months agocoverity: fix #1401290 to #1401299 ; use default values on error 69/20969/2
Clément DAVID [Mon, 6 May 2019 09:54:40 +0000]
coverity: fix #1401290 to #1401299 ; use default values on error

Change-Id: Ic89cb3105d5c35bd0a9f96c8a23aef0f74415420

14 months agomgetl: fix trouble with 'continuous' read on Windows 91/20891/4
Antoine ELIAS [Wed, 27 Feb 2019 23:45:46 +0000]
mgetl: fix trouble with 'continuous' read on Windows

Change-Id: I2cbbf601bd78f794f254e3de7f7b5f5eeb216cc1

14 months ago[elementary_functions] added bitstring function 61/20961/9
Stéphane MOTTELET [Thu, 25 Apr 2019 15:15:14 +0000]
[elementary_functions] added bitstring function

help page @ http://www.utc.fr/~mottelet/scilab/download/bitstring.pdf

--> bitstring(%pi)
 ans  =

 0100000000001001001000011111101101010100010001000010110100011000

--> bitstring([1; 1+%eps])
 ans  =

!0011111111110000000000000000000000000000000000000000000000000000  !
!                                                                  !
!0011111111110000000000000000000000000000000000000000000000000001  !

--> bitstring(int8(-1))
 ans  =

 11111111

Change-Id: If911c3582c585072844a27186a81fda16f2fc740