5 years agofix library path 27/15527/2
Antoine ELIAS [Fri, 14 Nov 2014 09:56:37 +0000]
fix library path

Change-Id: Ib254a147e4755035d1fcb7ce81972ddbcc9bb78e

5 years agoFix Scilab compilation without fftw 26/15526/3
Vincent COUVERT [Fri, 14 Nov 2014 09:30:31 +0000]
Fix Scilab compilation without fftw

Change-Id: I0da88809d450dd90664bc54b227df988f837e12e

5 years agoFix .dia.ref after https://codereview.scilab.org/#/c/15524/ 25/15525/1
Vincent COUVERT [Fri, 14 Nov 2014 08:48:49 +0000]
Fix .dia.ref after https://codereview.scilab.org/#/c/15524/

Change-Id: I9145d3ea44c0a3180f019ef78f40ac7a2f0243b7

5 years agoupdate completion test 24/15524/4
Antoine ELIAS [Thu, 13 Nov 2014 14:44:58 +0000]
update completion test

Change-Id: I80f07d0cc0b5bc7c8bae185a2914565016bb2d8b

5 years agoadd globals variables in completion list 23/15523/4
Antoine ELIAS [Thu, 13 Nov 2014 14:42:03 +0000]
add globals variables in completion list

Change-Id: Ib52ee04f84944b5f1bc80601e2ca7ac324e7e0b1

5 years agoreplug fftw module 22/15522/3
Antoine ELIAS [Thu, 13 Nov 2014 14:40:29 +0000]
replug fftw module

Change-Id: Ibfc55a56ed62df900601a43a0f2a06b23d4ba6ab

5 years agofix ascii : convert unicode to utf-8 99/15499/4
Sylvain GENIN [Fri, 7 Nov 2014 10:00:29 +0000]
fix ascii :  convert unicode to utf-8

test_run("string","ascii");

Change-Id: I0446e27709a058b675923cc9f9bc43c15958a9d3

5 years agoast : fix insert and library tests 19/15519/2
Antoine ELIAS [Thu, 13 Nov 2014 10:20:45 +0000]
ast : fix insert and library tests

Change-Id: Ic653416b8f9f3c7a2f4ea23c5c3a2dc637479036

5 years agovariable print, disp and string fixed. 16/15516/4
Cedric Delamarre [Mon, 10 Nov 2014 16:51:06 +0000]
variable print, disp and string fixed.

test_run("api_scilab","bug_11046",["no_check_error_output" ]);
test_run("string","blanks",["no_check_error_output" ]);

Change-Id: I228770c70b583c216af18727a233102a61a3140f

5 years agoerror compilation under windows, patch for LinkAdapter 15/15515/6
Sylvain GENIN [Mon, 10 Nov 2014 16:21:37 +0000]
error compilation under windows, patch for LinkAdapter

Change-Id: Icb0c3734e6a90988d86a0d7a8fbc1cb3980c8da0

5 years agoXcos MVC: add a test and use unnamed functions parameters 04/15404/6
Paul Bignier [Tue, 21 Oct 2014 09:48:25 +0000]
Xcos MVC: add a test and use unnamed functions parameters

Change-Id: Ib49b7da4b48570da6c0446a763daff71ada5dbd0

5 years agoXcos MVC: 'exprs' now allow Modelica tlists 82/15382/5
Paul Bignier [Wed, 15 Oct 2014 13:08:13 +0000]
Xcos MVC: 'exprs' now allow Modelica tlists

--> loadXcosLibs();
--> exec("SCI/test/xcos/Platform.cosf")

Change-Id: Idb6f56f6df7b03117d63c726ba9e82d61aacf1be

5 years agoXcos MVC: implement 'equations' 67/15367/10
Paul Bignier [Fri, 10 Oct 2014 14:20:02 +0000]
Xcos MVC: implement 'equations'

 * For the moment it can only contain scalar reals in 'parameters' value.
   To extend that, the information would require to be saved in the view (Adapters) instead of the model.

Change-Id: Iac3fa05cfd7054b28d932daa04e153a1b106e4c5

5 years agoRevert "fix bug 13421 test" 14/15514/1
Vincent COUVERT [Mon, 10 Nov 2014 15:39:25 +0000]
Revert "fix bug 13421 test"

This reverts commit f2f22aa322a782141060bc176bfc327631e4e975.

Does not fix the test

Change-Id: I17afbe70139c48ad4de17b3522cae2a3fe36e27e

5 years agofix bug 13421 test 13/15513/1
Anais AUBERT [Wed, 5 Nov 2014 09:57:16 +0000]
fix bug 13421 test

Change-Id: I0c5c00936e6bdd5734c8b674d1206bbbf4c95d47
(cherry picked from commit 5b04d52300ea3648f75b6425e8513b64b4b1e1e3)

5 years agoRevert "fix blank : there have more than one resultat display" 11/15511/2
Vincent COUVERT [Mon, 10 Nov 2014 14:41:33 +0000]
Revert "fix blank :  there have more than one resultat display"

This reverts commit 7060be13796ee010583589e387c95453a421021c.

Makes test_run("api_scilab", "bug_11046") fail.

Change-Id: I00ce0b86412153204537fc278f8edfd78ba51942

5 years agoXcos MVC: Avoid leaking memory and pass the tests 27/15427/23
Clément DAVID [Wed, 29 Oct 2014 16:37:23 +0000]
Xcos MVC: Avoid leaking memory and pass the tests

 * Fixed empty 'context' and '*_implicit' properties returning empty string (of size 0)
 * Fixed empty Port signal not returning '0'
 * Use Link constructors to propagate connections on model modification
 * Delete ports on blocks deletion
 * Implement clone() as a copy constructor call
 * All tests pass on valgrind

Change-Id: Ie2a45462c9feb9194dba99f8d47b150b0e5f926c

5 years agofix blank : there have more than one resultat display 06/15506/4
Sylvain GENIN [Fri, 7 Nov 2014 15:58:36 +0000]
fix blank :  there have more than one resultat display

test_run("string","blanks",["no_check_error_output" ]);

Change-Id: I41c0f5f61c16d92f6f9327727046270527324f8f

5 years agoReplace MALLOC.h by sci_malloc.h 05/15505/2
Vincent COUVERT [Fri, 7 Nov 2014 15:53:05 +0000]
Replace MALLOC.h by sci_malloc.h

Only completion.tst is FAILED in completion module now.

Change-Id: I38e91b4f8a8da716401d31a2eff8b85299a42406

5 years agofix tostring for the macro 50/14950/11
Sylvain GENIN [Fri, 25 Jul 2014 13:33:40 +0000]
fix tostring for the macro

mymatrix=[ 94  0   0   0    0   28  0   0   32  0
0   59  13  5    0   0   0   10  0   0
0   13  72  34   2   0   0   0   0   65
0   5   34  114  0   0   0   0   0   55
0   0   2   0    70  0   28  32  12  0
28  0   0   0    0   87  20  0   33  0
0   0   0   0    28  20  71  39  0   0
0   10  0   0    32  0   39  46  8   0
32  0   0   0    12  33  0   8   82  11
0   0   65  55   0   0   0   0   11  100];
b = [154.
87.
186.
208.
144.
168.
158.
135.
178.
231.];
function y=Atimesx(x,mymatrix)
    y=mymatrix*x
endfunction
Alist = list(Atimesx,mymatrix)

function myfunc()
endfunction

list(cos, acosh, myfunc)

Change-Id: Ie02690fab3bf55af9597bd41a96d75c05d46f6eb

5 years agoleek in bug_8688 fixed. 03/15503/2
Cedric Delamarre [Fri, 7 Nov 2014 15:10:02 +0000]
leek in bug_8688 fixed.

Change-Id: I0b5288a3094bc760a901ae05749a34dc09eb9915

5 years agoapi_scilab : big_9708 fixed. 02/15502/2
Cedric Delamarre [Fri, 7 Nov 2014 14:46:52 +0000]
api_scilab : big_9708 fixed.

Change-Id: I5ee797f3d381bb78d8598db304e4449c7c86dc9c

5 years agoapi_scilab : variable name check in createNamed functions. 00/15500/2
Cedric Delamarre [Fri, 7 Nov 2014 13:49:48 +0000]
api_scilab : variable name check in createNamed functions.

test_run("api_scilab","bug_9707",["no_check_error_output" ]);

Change-Id: I77db4d72060ebda625d220a07e3dfef8100133a8

5 years agoFix dynamic link in Linux binary versions: 01/15501/1
Vincent COUVERT [Fri, 7 Nov 2014 14:44:40 +0000]
Fix dynamic link in Linux binary versions:
 - Eigen detection with prerequirements are used
 - Missing file in installation.

Change-Id: I8894a88603793d7ca27fa9ea6b1d849b95147818

5 years agofix bug_7666.tst : comparisons made on the same types 92/15492/3
Sylvain GENIN [Thu, 6 Nov 2014 16:12:39 +0000]
fix bug_7666.tst : comparisons made on the same types

test_run("boolean","bug_7666",["no_check_error_output" "short_summary" ]);

Change-Id: I46e09a39d09efbbb953a17fe64647813ddca6bf9

5 years agofix dbphi and phasemag for hm 88/15488/3
Anais AUBERT [Wed, 5 Nov 2014 13:58:06 +0000]
fix dbphi and phasemag for hm

Change-Id: Id2cb5a484781a2632eed6c06a9e6135c44382994

5 years agoisnum function finds %i which is at the beginning of imaginary part 77/15477/6
Sylvain GENIN [Wed, 5 Nov 2014 10:06:52 +0000]
isnum function finds %i which is at the beginning of imaginary part

test_run("string","bug_4401",["no_check_error_output" ]);

Change-Id: I823f84bae5d2e121bc4492cf537c0f26e0aeb043

5 years agoadd exp and epsilon from stringToDoubleW function 72/15472/8
Sylvain GENIN [Tue, 4 Nov 2014 16:06:24 +0000]
add exp and epsilon from stringToDoubleW function

isnum("%e")
isnum("%eps")
isnum("+%eps")
isnum("-%eps")

test_run("string","bug_4401",["no_check_error_output" ]);

Change-Id: I1581d7894156fa9a376c5d7fa118509d2abece10

5 years agoapi_scilab : bug_11538 fixed. 97/15497/2
Cedric Delamarre [Fri, 7 Nov 2014 10:07:50 +0000]
api_scilab : bug_11538 fixed.

test_run("api_scilab","bug_11538",["no_check_error_output" ]);

Change-Id: Ib71056d7e7910d03ae0ece81d0441ba8c9e6f4ce

5 years agoupdate c gateway of api_scilab test for YaSp 95/15495/4
Cedric Delamarre [Fri, 7 Nov 2014 08:43:55 +0000]
update c gateway of api_scilab test for YaSp

test_run("api_scilab","bug_12426",["no_check_error_output" ]);
test_run("api_scilab","bug_7409",["no_check_error_output" ]);

Change-Id: Ib14ab1df599197b6fee6c6d740aab153c630a1da

5 years agoapi_scilab : deleteNamedVariable fixed. 94/15494/3
Cedric Delamarre [Thu, 6 Nov 2014 16:47:05 +0000]
api_scilab : deleteNamedVariable fixed.

test_run("api_scilab","deleteNamedVariable",["no_check_error_output" ]);

Change-Id: I40370af02de5b1b1cb58b6aae245643fd3238c43

5 years agosome diary of api_scilab test updated. 93/15493/2
Cedric Delamarre [Thu, 6 Nov 2014 16:24:34 +0000]
some diary of api_scilab test updated.

test_run("api_scilab","booleanSparseExample",["no_check_error_output" ]);
test_run("api_scilab","list_createlist_api",["no_check_error_output" ]);
test_run("api_scilab","read_write_bsparse_api",["no_check_error_output" ]);
test_run("api_scilab","sparseExample",["no_check_error_output" ]);

Change-Id: I76feeec246eaaaab662b11cde58fe4cce759adb9

5 years agoapi_hypermat removed and hdf5 exit fixed. 91/15491/5
Cedric Delamarre [Thu, 6 Nov 2014 09:23:50 +0000]
api_hypermat removed and hdf5 exit fixed.

a = h5open(TMPDIR + "/tutu.sod")
exit

a = h5open(TMPDIR + "/test.sod")
x=matrix(1:8,2,2,2)
i=int32(x);

h5write(a, "x", x)
h5write(a, "i", i)
a("/x").data
a("/i").data

Change-Id: I8e38f22e9f8f0de85e151845b66a4ca83a2ffa76

5 years agomanagement of --std=c++11 for toolboxes. 62/15462/5
Cedric Delamarre [Tue, 4 Nov 2014 09:16:54 +0000]
management of --std=c++11 for toolboxes.

test_run api_scilab

Change-Id: I9984008c6b0eed5453628be387ac5150f1c17f25

5 years agoXcos MVC: let LoggerView log the object kind. 51/15451/5
Clément DAVID [Fri, 31 Oct 2014 13:18:19 +0000]
Xcos MVC: let LoggerView log the object kind.

Change-Id: Id10f7a0ac3b4d33677993078b1e94847ea44da9e

5 years agoupdate dotdivide test after eye() fix 89/15489/1
Antoine ELIAS [Wed, 5 Nov 2014 15:46:18 +0000]
update dotdivide test after eye() fix

Change-Id: I12ac5229e780003a3a9497ed1630cabec1aa0bc5

5 years agofix sparse addition 48/15348/3
Anais AUBERT [Wed, 8 Oct 2014 07:56:46 +0000]
fix sparse addition

sprand(1, 1, 0.01) + sprand(1, 1, 0.01) * %i

Change-Id: Ib72bc017a303a040e316600bece0457bde272575

5 years agofix divide Sparse by Double 36/15436/5
Sylvain GENIN [Tue, 28 Oct 2014 14:51:44 +0000]
fix divide Sparse by Double

test_run("ast","divide",["no_check_error_output" ]);

Change-Id: Ia511d8edacb9d93f39328655e1e313aa2c4a560c

5 years agofix dotpower for the Sparse 28/15428/8
Sylvain GENIN [Mon, 27 Oct 2014 15:49:57 +0000]
fix dotpower for the Sparse

test_run("linear_algebra","bug_10178",["no_check_error_output" ]);
B = [ 5 -2; %i 0];
S = sparse(B);
S.^3
S.^2
S.^0

Change-Id: Ic9a6d700af9b8d8166d4d32576f0c3f26831e322

5 years agofix and test 52/15452/3
Anais AUBERT [Fri, 31 Oct 2014 15:02:22 +0000]
fix and test

Change-Id: Ic94dd2bda3bf4b3d1a946971b1a80235661d185b

5 years agoeye, rand, ones, zeros can manage sparse/boolean sparse as input argument 87/15487/1
Antoine ELIAS [Wed, 5 Nov 2014 13:22:42 +0000]
eye, rand, ones, zeros can manage sparse/boolean sparse as input argument

Change-Id: I586f0b30c81b51d15d75899022f29526d1e81451

5 years agosinc test updated 24/15424/2
Cedric Delamarre [Fri, 24 Oct 2014 14:27:13 +0000]
sinc test updated

Change-Id: I0a44da5d8a758f5cce919b3305693cf389c06698

5 years agofix return of getDimsFromArguments in elem_func module 86/15486/2
Antoine ELIAS [Wed, 5 Nov 2014 12:58:57 +0000]
fix return of getDimsFromArguments in elem_func module

Change-Id: I2185a61c0c3e0f7092d65802447cd670584b17e0

5 years agoJVM is not mandatory for these tests 85/15485/1
Vincent COUVERT [Wed, 5 Nov 2014 12:58:21 +0000]
JVM is not mandatory for these tests

Change-Id: I8443129026dffccbc1020271540da16724bb3329

5 years agoJVM is not mandatory for these tests 84/15484/1
Vincent COUVERT [Wed, 5 Nov 2014 12:48:17 +0000]
JVM is not mandatory for these tests

Change-Id: I35040f48e67cec56edbf22ca35e6cea3389d9a9b

5 years agofix index order for string sort 81/15481/1
Antoine ELIAS [Wed, 5 Nov 2014 12:25:23 +0000]
fix index order for string sort

Change-Id: I9fc4f225c8d65e23a3d08ab6c4bfec42aa0af22a

5 years agoupdate test of bug_10168 78/15478/1
Antoine ELIAS [Wed, 5 Nov 2014 10:10:10 +0000]
update test of bug_10168

Change-Id: Ib7eb27985f8ca9c5331ba721bcdff5dd8276a933

5 years agoThese tests do not require JVM 74/15474/2
Vincent COUVERT [Wed, 5 Nov 2014 09:26:18 +0000]
These tests do not require JVM

Change-Id: I9d83b9494f561daa4506029ee70dec357a2a4609

5 years agofix bug in eye() 76/15476/2
Antoine ELIAS [Wed, 5 Nov 2014 09:58:40 +0000]
fix bug in eye()

Change-Id: I23aff5f7ae650327cd5407c5113c76a977ca3100

5 years agochange bug_13358 to interactive test 73/15473/2
Antoine ELIAS [Wed, 5 Nov 2014 09:14:55 +0000]
change bug_13358 to interactive test

Change-Id: I0266bc5625c34f45d81b5df0b43096ddb803ade5

5 years agofix reshape to remove last dimensions at 1 for dims > 2 71/15471/2
Antoine ELIAS [Tue, 4 Nov 2014 14:24:26 +0000]
fix reshape to remove last dimensions at 1 for dims > 2

Change-Id: Ie72de95009751dba5dcd9b68bf25abe1e06b055a

5 years agofix dotdivide opeation to show "divide by zero" messages 68/15468/3
Antoine ELIAS [Tue, 4 Nov 2014 13:26:04 +0000]
fix dotdivide opeation to show "divide by zero" messages

Change-Id: I9879a75dbcb48a008220e0c48de246e485fc057e

5 years agoMerge remote-tracking branch 'origin/master' into YaSp 70/15470/1
Vincent COUVERT [Tue, 4 Nov 2014 13:35:07 +0000]
Merge remote-tracking branch 'origin/master' into YaSp

Conflicts:
scilab/configure
scilab/modules/core/src/fortran/inisci.f
scilab/modules/javasci/Makefile.in
scilab/modules/polynomials/sci_gateway/fortran/sci_f_bezout.f

Change-Id: I67f2e75a70e0c2a48b325f3b817f0a1581dbaedd

5 years agoMerge remote-tracking branch 'origin/5.5' 69/15469/1
Vincent COUVERT [Tue, 4 Nov 2014 13:32:48 +0000]
Merge remote-tracking branch 'origin/5.5'

Conflicts:
scilab/configure

Change-Id: Ief160371c4ff8843faf74162524f0bee912658dd

5 years agoInterative test fixed for Linux. 65/15465/5
Cedric Delamarre [Tue, 4 Nov 2014 11:27:34 +0000]
Interative test fixed for Linux.

exec SCI/modules/api_scilab/tests/nonreg_tests/bug_12426.tst

Change-Id: I434661dddb621ff2f6c30246aa22af14107a5569

5 years agoapi_scilab : check_matrix_dimension diary updated. 67/15467/2
Cedric Delamarre [Tue, 4 Nov 2014 13:14:12 +0000]
api_scilab : check_matrix_dimension diary updated.

Change-Id: Ib46741f62312aaade3f6ec9bb93165f30cb0cd77

5 years agofix overload in dsearch function and overload for all call with more than 2 parameters 63/15463/2
Antoine ELIAS [Tue, 4 Nov 2014 09:29:30 +0000]
fix overload in dsearch function and overload for all call with more than 2 parameters

Change-Id: Ifae91f4e24cfa04daae236da6c159a2bb0848ee5

5 years agoFix error message 61/15461/1
Vincent COUVERT [Mon, 3 Nov 2014 13:51:04 +0000]
Fix error message

Change-Id: I453ebd3b26991e7d7dde755ae234f3a64ae2b28b

5 years agouse common function to manage input arguments in eye, ones, zeros 31/15431/7
Antoine ELIAS [Tue, 28 Oct 2014 11:00:28 +0000]
use common function to manage input arguments in eye, ones, zeros

Change-Id: I5fd04209f3020ffab53ed3344014ccaa418cdcc7

5 years agosparse-bool : add isTrue function 45/15445/4
Sylvain GENIN [Thu, 30 Oct 2014 11:22:34 +0000]
sparse-bool : add isTrue function

  a = sparse([%t, %t])
  if a then
    %t
  end

Change-Id: I3ce2fc9944653ebb8461efbb858bfcec2f948441

5 years agodisplay of sparse bool 39/15439/3
Sylvain GENIN [Wed, 29 Oct 2014 09:42:42 +0000]
display of sparse bool

dense=[%F, %F, %T];
sp=sparse(dense)

Change-Id: I4c647a7297c4da543952e12523f483ca7239d09a

5 years agobugs 3880 and 4943 fixed again 60/15460/1
Anais AUBERT [Mon, 3 Nov 2014 13:04:39 +0000]
bugs 3880 and 4943 fixed again

Change-Id: If82c7e0162e9a10db274f72f3bdf40c06b390235

5 years agobug 568 fixed again 59/15459/2
Anais AUBERT [Mon, 3 Nov 2014 12:57:27 +0000]
bug 568 fixed again

Change-Id: I4ca078cb0ca8d38cfce26d1c8f18633e66c74b6d

5 years agotest the access to the sparse and bool-sparse 37/15437/4
Sylvain GENIN [Tue, 28 Oct 2014 17:01:24 +0000]
test the access to the sparse and bool-sparse

dense=[0., 1];
sp=sparse(dense);
sp(0)
sp(0,0)
sp(1,0)
sp(0,1)
dense=[%F, %F, %T];
sp=sparse(dense);
sp(0)
sp(0,0)
sp(1,0)
sp(0,1)

Change-Id: Ib489e54aa7ca78ea20be48824da710daac6d2898

5 years agostrtod no more ignoring tabs 58/15458/2
Anais AUBERT [Mon, 3 Nov 2014 12:39:46 +0000]
strtod no more ignoring tabs

test_run("string","bug_13524",["no_check_error_output" ]);

Change-Id: Ied14ac1e660460046c383943aa2456ab513eb918

5 years agoupdated bug 2812 test : no more truncation in variables name 76/15376/2
Anais AUBERT [Tue, 14 Oct 2014 14:10:02 +0000]
updated bug 2812 test : no more truncation in variables name

Change-Id: I364f06b64289bc5bb0e9c4ca73693e47fa8aea1e

5 years agofix bug 568 test 72/15372/2
Anais AUBERT [Tue, 14 Oct 2014 08:33:55 +0000]
fix bug 568 test

Change-Id: Ib6f75049b44cf2feb65731fe25aba31beb6aefa2

5 years agofix bug 120 test 74/15374/2
Anais AUBERT [Tue, 14 Oct 2014 10:31:45 +0000]
fix bug 120 test

Change-Id: I39e20bf82ed1e50752cc2d3f1477e8d5a397a3ac

5 years agofix bug 3880 test 80/15380/2
Anais AUBERT [Wed, 15 Oct 2014 08:40:39 +0000]
fix bug 3880 test

Change-Id: If8e99fe9d02e9960eb4c590fd7ded9489bc293e0

5 years agofix bug 4943 test 55/15455/2
Anais AUBERT [Mon, 3 Nov 2014 09:34:40 +0000]
fix bug 4943 test

Change-Id: I7b3437a7acfcff2ee4880c652b57db3f7c7c33ca

5 years agofix bug 6901 test 56/15456/2
Anais AUBERT [Mon, 3 Nov 2014 09:37:58 +0000]
fix bug 6901 test

Change-Id: Ic0ef72bd9034471a531b12cfa44b337496f1cc5a

5 years agowindows hooks : now nw mode is in wscilex, no longer in scilex 54/15454/1
Antoine ELIAS [Mon, 3 Nov 2014 09:13:32 +0000]
windows hooks : now nw mode is in wscilex, no longer in scilex

Change-Id: I4560aad7f6b8e33e55249ad6125037be92a70fcf

5 years agofix return in while/for expression 53/15453/1
Antoine ELIAS [Mon, 3 Nov 2014 09:02:04 +0000]
fix return in while/for expression

Change-Id: I6c4816e1b6f08f63f6fddbb3547e51f398cebdf1

5 years agonon_reg test of module double moved in ast 49/15449/2
Cedric Delamarre [Fri, 31 Oct 2014 11:18:46 +0000]
non_reg test of module double moved in ast

Change-Id: I053800e10c58476c60af9e074081e8ccd44bb243

5 years agoallow macrolib.function 46/15446/2
Antoine ELIAS [Thu, 30 Oct 2014 13:54:23 +0000]
allow macrolib.function

Change-Id: I84eae61272d38285f14e1bf8c993dfc748890291

5 years agotypes::Dollar can been added to a table of values 12/15412/6
Sylvain GENIN [Thu, 23 Oct 2014 15:17:20 +0000]
types::Dollar can been added to a table of values

b = [$ 2]
b = [2 $]

https://codereview.scilab.org/15412

Change-Id: If8f57631cc7e041bbb015ed979dc7e6ffb2a24ce

5 years agofix bug 2003 test 42/15442/2
Anais AUBERT [Thu, 30 Oct 2014 10:59:15 +0000]
fix bug 2003 test

Change-Id: I9d966e55e761d659bf5eafe254ca18f7017d3c10

5 years agoisScalar moved in GenericType. 25/15325/4
Cedric Delamarre [Mon, 6 Oct 2014 15:18:58 +0000]
isScalar moved in GenericType.

Change-Id: I7974b9a34af2a74675e7aab5d34196caf61d1475

5 years agogsort fixed, positions must be sorted. 47/15447/2
Cedric Delamarre [Thu, 30 Oct 2014 15:21:40 +0000]
gsort fixed, positions must be sorted.

test_run elementary_functions members

x = [6 5 4 3 2 1 0 2 9 2 0 8 3 1 2 6 1 4]';
[x1,k] = gsort(x,"g","d")

Change-Id: I1675873d9a6bc89a0c8828ca5fc30d99d8442d82

5 years agosubtraction between two sparses fixed 43/15443/3
Cedric Delamarre [Thu, 30 Oct 2014 10:58:38 +0000]
subtraction between two sparses fixed

a=rand(5,2)*rand(2,5);A=sparse(a);
[hand,rk]=lufact(A);[P,L,U,Q]=luget(hand);
full(L), P*L*U*Q-A

sparse([1 2 3]) - sparse([1 2 1])

Change-Id: I9d9fe831bfcddd7cc05bbdf8e7f87bb80d6c5904

5 years agowho 40/15440/5
Cedric Delamarre [Wed, 29 Oct 2014 15:24:59 +0000]
who

Change-Id: I24fe1039637e62916819234727a698d6159a0cde

5 years agoludel 41/15441/6
Anais AUBERT [Thu, 30 Oct 2014 10:02:49 +0000]
ludel

a=rand(5,5);b=rand(5,1);A=sparse(a);
[h,rk]=lufact(A);
ludel(h)
h

Change-Id: I8fbf720d6c96598c2bc8230f268573e6ba59f92f

5 years agoluget 38/15438/7
Anais AUBERT [Wed, 29 Oct 2014 09:01:50 +0000]
luget

a=rand(5,2)*rand(2,5);A=sparse(a);
[hand,rk]=lufact(A);[P,L,U,Q]=luget(hand);
full(L), P*L*U*Q-A

Change-Id: Ifb223340fb736de6e6866f69d977dc6e48a0bf3a

5 years agolusolve 09/15409/7
Anais AUBERT [Thu, 23 Oct 2014 14:36:55 +0000]
lusolve

non_zeros=[1,2,3,4];rows_cols=[1,1;2,2;3,3;4,4];
sp=sparse(rows_cols,non_zeros);
[h,rk]=lufact(sp);x=lusolve(h,[1;1;1;1])

non_zeros=[1,2,3,4];rows_cols=[1,1;2,2;3,3;4,4];
sp=sparse(rows_cols,non_zeros);
x=lusolve(sp,-ones(4,1))

Change-Id: I3641f702eb3b2b7df1e7bbbaab2d142dba562221

5 years agoXcos MVC: use shared_ptr on the Model 16/15416/6
Clément DAVID [Fri, 24 Oct 2014 09:36:39 +0000]
Xcos MVC: use shared_ptr on the Model

Model object pointers can be retrieve by any C++ View through
Model::getObject. To track the associated memory and avoid double
delete (on the View then the Model), shared_ptr is used.

Note: this pointer access is not mapped to Java Views so these views
are just allowed to createObject / deleteObject using ScicosID.

Change-Id: Ifbab7d1bfda28105c3680bd28f52c9e35faf1824

5 years agocall_scilab: fix error "TMPDIR not defined" in fortran example 85/15385/2
Simon Marchetto [Wed, 29 Oct 2014 10:27:50 +0000]
call_scilab: fix error "TMPDIR not defined" in fortran example

Change-Id: I5546673d36daed10ea921ddb5c067bb4580b16f5

5 years agoleak in cell fixed and insertion in 10% allocated. 35/15435/4
Cedric Delamarre [Tue, 28 Oct 2014 13:55:21 +0000]
leak in cell fixed and insertion in 10% allocated.

%_iconvert(5,1);

a = matrix(1:100, 50, 2);
a(51,2) = 5;
a(52,2) = 6;
a($+2,2) = 7;
a($+2,:) = [8 9];

Change-Id: I41bd8c54fa9587fc261532cc891f14ad10453320

5 years agocall_scilab: fix access violation in fortran example 84/15384/2
Simon Marchetto [Tue, 28 Oct 2014 13:56:39 +0000]
call_scilab: fix access violation in fortran example

Change-Id: I11e27d6dea9fba23470801ab8ca77225638b0d5f

5 years ago[](:) = 1 fixed 33/15433/2
Cedric Delamarre [Tue, 28 Oct 2014 12:50:15 +0000]
[](:) = 1 fixed

Change-Id: I55b19b2c56929288e7d5f57b591ac0796c37cd52

5 years agodotPower with polynom and insertion a poly in constant fixed. 32/15432/1
Cedric Delamarre [Tue, 28 Oct 2014 11:02:49 +0000]
dotPower with polynom and insertion a poly in constant fixed.

x = matrix(1:24, [3 2 4]);
inv_coeff([x(:,:,1) x(:,:,2) x(:,:,3) x(:,:,4) [0;1;2]], 2)

a=[1 2 3]
a(1) = %s

Change-Id: I68fbbed6864fcfb9685f783e0a113805381f67bb

5 years agoinsertion implicitList in callExp/cellExp fixed. 25/15425/7
Cedric Delamarre [Mon, 27 Oct 2014 09:13:21 +0000]
insertion implicitList in callExp/cellExp fixed.

test_run elementary_functions find

A=[];A(2,3,2) = 0;A(:)=1:12;

ml = mlist(["toto", "f1"], 14);
a.b = ml;
a.b(2) = 12; // leek after overload error

c{:} = 1:12

st.b(2).c = ml;
st.b(2).c(2) = 12; // leek after overload error

Change-Id: I61992aa9300301a7d544963382867021b896ee39

6 years agolength test updated with sparse. 56/15356/3
Cedric Delamarre [Thu, 9 Oct 2014 11:53:03 +0000]
length test updated with sparse.

Change-Id: I3890da3d22cf830eb2a3c74b3964a6f98d07b3a7

6 years agofix the number of data returned by a function when it is encapsulated 46/14946/7
Sylvain GENIN [Thu, 24 Jul 2014 09:33:53 +0000]
fix the number of data returned by a function when it is encapsulated

example:

[a,b] = (3 , int32(5))
[a,b] = (3 , (int32(5), 2)) // error
[a,b,c] = (3 , (int32(5), 2))

Change-Id: I4a3ca20dabdd36a65b7025b371b954dd55833cbc

6 years agoremove useless Increase/DecreaseRef 10/15410/2
Cedric Delamarre [Thu, 23 Oct 2014 14:41:48 +0000]
remove useless Increase/DecreaseRef

Change-Id: Ib52c508f6ab35bace7aa7c5e235702ea77b5b89b

6 years agooperator & with boolean fixed 19/15419/2
Cedric Delamarre [Fri, 24 Oct 2014 12:36:30 +0000]
operator & with boolean fixed

%t & []
[] & [%t %f]
3 & []
[] & [1 12]

test_run elementary_functions acoth

Change-Id: I91b28fadd1386781304921893413496dc87b4ea3

6 years agocumprod fixed 22/15422/3
Cedric Delamarre [Fri, 24 Oct 2014 13:39:46 +0000]
cumprod fixed

s=%s;p=[s s+1;s^2 0];
cumprod(p)

test_run elementary_functions cumprod

Change-Id: I6cca22869d767073f0f2dd9646456ea208032f5d

6 years agocumsum fixed 23/15423/2
Cedric Delamarre [Fri, 24 Oct 2014 14:06:14 +0000]
cumsum fixed

s=%s;p=[s s+1;s^2 0];
cumsum(p)

test_run elementary_functions cumsum

Change-Id: I16a810e51bd267d74fcfac527dbe800db25111a6

6 years agoAST Serialization : 20/15420/1
Antoine ELIAS [Fri, 24 Oct 2014 13:24:11 +0000]
AST Serialization :
 - remove execution flag.
 - add option to remove location.

Change-Id: Ic88925e3c5c9ad62bed3cdf7173fa09da1699344

6 years agoexec must print file content by default 18/15418/1
Antoine ELIAS [Fri, 24 Oct 2014 09:54:20 +0000]
exec must print file content by default

Change-Id: Ibed2d6aaa0c42600af4a0830805f6e765f0b148a

6 years agofix display of nan value 15/15415/1
Antoine ELIAS [Fri, 24 Oct 2014 09:31:59 +0000]
fix display of nan value

Change-Id: I6191b91c3aa983f03849bb9d77b465d260da6a60