From nomiya at galaxy.dti.ne.jp Wed May 1 04:04:32 2013 From: nomiya at galaxy.dti.ne.jp (Masaru Nomiya) Date: Wed, 01 May 2013 11:04:32 +0900 Subject: [Scilab-Dev] Can't compile the head In-Reply-To: <517FF074.2050801@scilab-enterprises.com> References: <87k3npbsy1.wl%nomiya@galaxy.dti.ne.jp> <87ehdwia95.wl%nomiya@galaxy.dti.ne.jp> <87txmo7n7g.wl%nomiya@galaxy.dti.ne.jp> <517FF074.2050801@scilab-enterprises.com> Message-ID: <87y5bzv4jz.wl%nomiya@galaxy.dti.ne.jp> Hello, In the Message; Subject : Re: [Scilab-Dev] Can't compile the head Message-ID : <517FF074.2050801 at scilab-enterprises.com> Date & Time: Tue, 30 Apr 2013 18:25:24 +0200 Sylvestre Ledru has written: > You confirm that you are starting ./configure without argument ? Yes, I did, but I got the same error. Thanks, --- ????? Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ???? ???? "Bill! You married with Computers. Not with Me!" "No..., with money." From sylvestre.ledru at scilab-enterprises.com Thu May 2 09:19:09 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Thu, 02 May 2013 09:19:09 +0200 Subject: [Scilab-Dev] Can't compile the head In-Reply-To: <87y5bzv4jz.wl%nomiya@galaxy.dti.ne.jp> References: <87k3npbsy1.wl%nomiya@galaxy.dti.ne.jp> <87ehdwia95.wl%nomiya@galaxy.dti.ne.jp> <87txmo7n7g.wl%nomiya@galaxy.dti.ne.jp> <517FF074.2050801@scilab-enterprises.com> <87y5bzv4jz.wl%nomiya@galaxy.dti.ne.jp> Message-ID: <5182136D.8080603@scilab-enterprises.com> On 01/05/2013 04:04, Masaru Nomiya wrote: > Hello, > > In the Message; > > Subject : Re: [Scilab-Dev] Can't compile the head > Message-ID : <517FF074.2050801 at scilab-enterprises.com> > Date & Time: Tue, 30 Apr 2013 18:25:24 +0200 > > Sylvestre Ledru has written: > >> You confirm that you are starting ./configure without argument ? > > Yes, I did, but I got the same error. Are you sure you don't have any conflict on the file ? (git status should tell you that) Could you share the sci_warnBlockByUID.cpp file ? Thanks Sylvestre From nomiya at galaxy.dti.ne.jp Thu May 2 14:02:01 2013 From: nomiya at galaxy.dti.ne.jp (Masaru Nomiya) Date: Thu, 02 May 2013 21:02:01 +0900 Subject: [Scilab-Dev] Can't compile the head In-Reply-To: <5182136D.8080603@scilab-enterprises.com> References: <87k3npbsy1.wl%nomiya@galaxy.dti.ne.jp> <87ehdwia95.wl%nomiya@galaxy.dti.ne.jp> <87txmo7n7g.wl%nomiya@galaxy.dti.ne.jp> <517FF074.2050801@scilab-enterprises.com> <87y5bzv4jz.wl%nomiya@galaxy.dti.ne.jp> <5182136D.8080603@scilab-enterprises.com> Message-ID: <87r4hpa8ue.wl%nomiya@galaxy.dti.ne.jp> Hello, In the Message; Subject : Re: [Scilab-Dev] Can't compile the head Message-ID : <5182136D.8080603 at scilab-enterprises.com> Date & Time: Thu, 02 May 2013 09:19:09 +0200 [Sylvestre] == Sylvestre Ledru has written: Sylvestre> On 01/05/2013 04:04, Masaru Nomiya wrote: Sylvestre> > Hello, Sylvestre> > Sylvestre> > In the Message; Sylvestre> > Sylvestre> > Subject : Re: [Scilab-Dev] Can't compile the head Sylvestre> > Message-ID : <517FF074.2050801 at scilab-enterprises.com> Sylvestre> > Date & Time: Tue, 30 Apr 2013 18:25:24 +0200 Sylvestre> > Sylvestre> > Sylvestre Ledru has written: Sylvestre> > Sylvestre> >> You confirm that you are starting ./configure without argument ? Sylvestre> > Sylvestre> > Yes, I did, but I got the same error. Sylvestre> Are you sure you don't have any conflict on the file ? Sylvestre> (git status should tell you that) No, I don't any conflict. This is the ./configure & make result; [...] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/jni/ -I./src/cpp/ -I./src/c/ -I../../modules/jvm/includes/ -I../../modules/output_stream/includes/ -I../../modules/commons/src/jni/ -I../../modules/localization/includes/ -I../../modules/fileio/includes/ -I../../modules/scicos_blocks/src/jni/ -I../../modules/api_scilab/includes/ -I/usr/lib64/jvm/java/include -I/usr/lib64/jvm/java/include/linux -DNDEBUG -fno-stack-protector -g -O2 -MT libscixcos_la-sci_warnBlockByUID.lo -MD -MP -MF .deps/libscixcos_la-sci_warnBlockByUID.Tpo -c sci_gateway/cpp/sci_warnBlockByUID.cpp -fPIC -DPIC -o .libs/libscixcos_la-sci_warnBlockByUID.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/jni/ -I./src/cpp/ -I./src/c/ -I../../modules/jvm/includes/ -I../../modules/output_stream/includes/ -I../../modules/commons/src/jni/ -I../../modules/localization/includes/ -I../../modules/fileio/includes/ -I../../modules/scicos_blocks/src/jni/ -I../../modules/api_scilab/includes/ -I/usr/lib64/jvm/java/include -I/usr/lib64/jvm/java/include/linux -DNDEBUG -fno-stack-protector -g -O2 -MT libscixcos_la-sci_closeXcosFromScilab.lo -MD -MP -MF .deps/libscixcos_la-sci_closeXcosFromScilab.Tpo -c sci_gateway/cpp/sci_closeXcosFromScilab.cpp -fPIC -DPIC -o .libs/libscixcos_la-sci_closeXcosFromScilab.o sci_gateway/cpp/sci_Xcos.cpp:28:17: error: 'org_scilab_modules_xcos' is not a namespace-name sci_gateway/cpp/sci_Xcos.cpp:28:40: error: expected namespace-name before ';' token sci_gateway/cpp/sci_Xcos.cpp: In function 'int callXcos(char*, char*, char*)': sci_gateway/cpp/sci_Xcos.cpp:220:9: error: 'Xcos' has not been declared make[3]: *** [libscixcos_la-sci_Xcos.lo] error 1 make[3]: *** ??????????????.... sci_gateway/cpp/sci_warnBlockByUID.cpp:27:17: error: 'org_scilab_modules_xcos' is not a namespace-name sci_gateway/cpp/sci_warnBlockByUID.cpp:27:40: error: expected namespace-name before ';' token sci_gateway/cpp/sci_warnBlockByUID.cpp: In function 'int sci_warnBlockByUID(char*, long unsigned int)': sci_gateway/cpp/sci_warnBlockByUID.cpp:59:5: error: 'Xcos' has not been declared make[3]: *** [libscixcos_la-sci_warnBlockByUID.lo] error 1 Sylvestre> Could you share the sci_warnBlockByUID.cpp file ? I can't understand what do you mean by the word "share"? How to to it? Thanks, --- ????? Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ???? ???? "Bill! You married with Computers. Not with Me!" "No..., with money." From sylvestre.ledru at scilab-enterprises.com Thu May 2 14:29:39 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Thu, 02 May 2013 14:29:39 +0200 Subject: [Scilab-Dev] Can't compile the head In-Reply-To: <87r4hpa8ue.wl%nomiya@galaxy.dti.ne.jp> References: <87k3npbsy1.wl%nomiya@galaxy.dti.ne.jp> <87ehdwia95.wl%nomiya@galaxy.dti.ne.jp> <87txmo7n7g.wl%nomiya@galaxy.dti.ne.jp> <517FF074.2050801@scilab-enterprises.com> <87y5bzv4jz.wl%nomiya@galaxy.dti.ne.jp> <5182136D.8080603@scilab-enterprises.com> <87r4hpa8ue.wl%nomiya@galaxy.dti.ne.jp> Message-ID: <51825C33.8040702@scilab-enterprises.com> On 02/05/2013 14:02, Masaru Nomiya wrote: > Hello, > > In the Message; > > Subject : Re: [Scilab-Dev] Can't compile the head > Message-ID : <5182136D.8080603 at scilab-enterprises.com> > Date & Time: Thu, 02 May 2013 09:19:09 +0200 > > [Sylvestre] == Sylvestre Ledru has written: > > Sylvestre> On 01/05/2013 04:04, Masaru Nomiya wrote: > Sylvestre> > Hello, > Sylvestre> > > Sylvestre> > In the Message; > Sylvestre> > > Sylvestre> > Subject : Re: [Scilab-Dev] Can't compile the head > Sylvestre> > Message-ID : <517FF074.2050801 at scilab-enterprises.com> > Sylvestre> > Date & Time: Tue, 30 Apr 2013 18:25:24 +0200 > Sylvestre> > > Sylvestre> > Sylvestre Ledru has written: > Sylvestre> > > Sylvestre> >> You confirm that you are starting ./configure without argument ? > Sylvestre> > > Sylvestre> > Yes, I did, but I got the same error. > > Sylvestre> Are you sure you don't have any conflict on the file ? > Sylvestre> (git status should tell you that) > > No, I don't any conflict. As I said, I am pretty sure it is a problem with your system then. > > Sylvestre> Could you share the sci_warnBlockByUID.cpp file ? > > I can't understand what do you mean by the word "share"? Send the file... Sylvestre From nomiya at galaxy.dti.ne.jp Thu May 2 14:38:13 2013 From: nomiya at galaxy.dti.ne.jp (Masaru Nomiya) Date: Thu, 02 May 2013 21:38:13 +0900 Subject: [Scilab-Dev] Can't compile the head In-Reply-To: <51825C33.8040702@scilab-enterprises.com> References: <87k3npbsy1.wl%nomiya@galaxy.dti.ne.jp> <87ehdwia95.wl%nomiya@galaxy.dti.ne.jp> <87txmo7n7g.wl%nomiya@galaxy.dti.ne.jp> <517FF074.2050801@scilab-enterprises.com> <87y5bzv4jz.wl%nomiya@galaxy.dti.ne.jp> <5182136D.8080603@scilab-enterprises.com> <87r4hpa8ue.wl%nomiya@galaxy.dti.ne.jp> <51825C33.8040702@scilab-enterprises.com> Message-ID: <87ppx9a762.wl%nomiya@galaxy.dti.ne.jp> Hello, In the Message; Subject : Re: [Scilab-Dev] Can't compile the head Message-ID : <51825C33.8040702 at scilab-enterprises.com> Date & Time: Thu, 02 May 2013 14:29:39 +0200 [Sylvestre] == Sylvestre Ledru has written: [...] Sylvestre>>> Sylvestre> Are you sure you don't have any conflict on the file ? Sylvestre>>> Sylvestre> (git status should tell you that) Sylvestre>> No, I don't any conflict. Sylvestre> As I said, I am pretty sure it is a problem with your system then. Hum, I doubt so. Sylvestre>>> Could you share the sci_warnBlockByUID.cpp file ? Me>> I can't understand what do you mean by the word "share"? Sylvestre> Send the file... I see. I send you the file. Thanks, --- ????? Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ???? ???? "Bill! You married with Computers. Not with Me!" "No..., with money." From etienne.delclaux at inria.fr Fri May 3 14:53:04 2013 From: etienne.delclaux at inria.fr (Etienne Delclaux) Date: Fri, 3 May 2013 14:53:04 +0200 (CEST) Subject: [Scilab-Dev] =?iso-8859-1?q?Demande_=E9claircissements_sur_wrappi?= =?iso-8859-1?q?ng_bilat=E9ral_C++/Scilab?= In-Reply-To: <141849139.3364528.1367585405156.JavaMail.root@inria.fr> Message-ID: <1661050301.3364756.1367585584667.JavaMail.root@inria.fr> Bonjour, Nous travaillons sur un framework C++, avec une architecture bas?e sur des plugins. Dans ce contexte, on aimerait bien rendre du code/script/functions scilab interop?rables avec des plugins en C ou C++. Avec scilab 5.4.1, compil? depuis les sources sous Ubuntu (12.10 et 13.04), nous parvenons ? faire fonctionner : - ?criture/Lecture de variables dans l'environnement Scilab depuis C/C++ ( api_scilab.h ) - Ex?cution d'un code Scilab depuis C/C++ ( call_scilab.h ) - Ex?cution d'un code C/C++ natif depuis Scilab (commandes link et call de scilab). Nous avons besoin, dans certains contextes, de pousser l'utilisation jusqu'? l?ex?cution depuis un moteur scilab d'une fonction C/C++, ex?cutant elle m?me un script scilab (via api_scilab et call_scilab ) . La compilation et la cr?ation des libs se passent tr?s bien. Mais, ? l?ex?cution, scilab crash e avec le message suivant : "Erreur lors de la cr?ation de la Machine Virtuelle Java : Erreur JNI inconnue" Par ailleurs, nous avons test? avec scilab et scilab-cli. Ce dernier semble rentrer dans une boucle infinie . Avez-vous d?j? rencontr? ce type de situation auparavant ? Avez-vous une id?e de la mani?re dont nous pourrions proc?der ? Nous sommes ? votre disposition pour de plus amples informations, type descriptions, code source, etc. En vous remerciant par avance, Etienne Delclaux Service Exp?rimentation et D?veloppement Inria Sophia Antipolis -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Pierre.Dussault at Usherbrooke.CA Tue May 7 01:23:55 2013 From: Jean-Pierre.Dussault at Usherbrooke.CA (Jean-Pierre Dussault) Date: Mon, 06 May 2013 19:23:55 -0400 Subject: [Scilab-Dev] IEEE rounding modes Message-ID: <51883B8B.6070008@Usherbrooke.CA> Hi all, is there a way to specify the IEEE rounding mode (up, down, nearest, 0) for scilab computations? Thx! JPD From krotersv at gmail.com Sat May 11 16:11:51 2013 From: krotersv at gmail.com (Stanislav) Date: Sat, 11 May 2013 07:11:51 -0700 (PDT) Subject: [Scilab-Dev] Documentation system: notification about changes of the original help page In-Reply-To: <1366125900530-4026560.post@n3.nabble.com> References: <1366125900530-4026560.post@n3.nabble.com> Message-ID: <1368281511114-4026674.post@n3.nabble.com> Hi. I have written a function which makes a list of all help pages. This list has 5972 files. I wonder if it is correct. Is there a file with full list of help pages (in all languages) or a program (function, script) which makes this list? I want to check my function. Stanislav -- View this message in context: http://mailinglists.scilab.org/Documentation-system-notification-about-changes-of-the-original-help-page-tp4026560p4026674.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sun May 12 14:12:59 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 12 May 2013 14:12:59 +0200 Subject: [Scilab-Dev] Documentation system: notification about changes of the original help page In-Reply-To: <1368281511114-4026674.post@n3.nabble.com> References: <1366125900530-4026560.post@n3.nabble.com> <1368281511114-4026674.post@n3.nabble.com> Message-ID: <518F874B.5000308@free.fr> Le 11/05/2013 16:11, Stanislav a ?crit : > Hi. > I have written a function which makes a list of all help pages. This list > has 5972 files. I wonder if it is correct. Is there a file with full list of > help pages (in all languages) or a program (function, script) which makes > this list? I want to check my function. Yes, it is roughtly this (depending on the release of sources that you use). With //cd SCI_sources\modules; // from the modules dir of sources L = unix_g("dir /s /b *.xml"); nL = grep(L,"\help\"); Lok = L(nL); size(Lok,1) i get 5844 files for 5.5.0 sources git ~2 months ago. Samuel From ierturk at ieee.org Sun May 12 16:06:54 2013 From: ierturk at ieee.org (Ibrahim ERTURK) Date: Sun, 12 May 2013 14:06:54 +0000 Subject: [Scilab-Dev] JIMS missing data type jvoid Message-ID: Hi, I've tried to demos for JIMS. However, It seems that data type jvoid is undefined. My config as follow... - Win7 64bit - Scilab 5.4.1 - JIMS 1.2-1 Are there an extra step to define "jvoid" ? Best regards, ierturk -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun May 12 22:03:11 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 12 May 2013 22:03:11 +0200 Subject: [Scilab-Dev] SEP#96 : cross() Message-ID: <518FF57F.3070904@free.fr> Hello, The cross() function was wished by http://bugzilla.scilab.org/9941. It is being designed at https://codereview.scilab.org/#/c/11469/ through the Scilab Enhancement Proposal SEP#96 https://codereview.scilab.org/cat/11469%2C2%2CSEP/SEP_096_cross.odt It's a good new! Despite this SEP has not been posted here, here are some free comments about its present implementation Rationale cross is an elementary function that exists in Matlab which is used to return the vector cross product of two column vectors of size 3-by-1. It may be useful in mathematics, mechanics, etc... Why refering to Matlab? If the simple fact that something exists in Matlab should turn it useful to implement in Scilab, this opens many ways to downgrade Scilab. We should publish a list, if needed. Matlab has its own drawbacks, due to its own history. Is it really useful to add them to Scilab, when Scilab has sometimes better solutions and is fighting its own pitfalls, bad designs, etc to reduce them? If obviously features existing elsewhere can't be all bad, IMO to be available elsewhere is not an intrinsic argument. cross() is actually expected in mechanics and many other fields of physics: electromagnetism, fluid dynamics, etc. and if it was'nt available elsewhere, it would be useful anyway for these reasons. So, IMO, no need to point other lab. Syntax and semantics Only one calling sequence is available: C = cross(A,B) A and B can be: real, complex, polynomial, sparse or boolean matrix of size 3-by-1. The extension to polynomials beyond decimals is excellent. AFAIK, it is not available in the other lab. The processing of booleans should be more clearly indicated: * => AND , + => OR or %T => 1, %F => 0 (that is to say, as if bool2s() was applied before processing. Since this is not yet illustrated with an example, writting something about would be useful, as well as in the help page). Rational fractions are not supported. It could be worthwhile to indicate this limit. Sparsity is an encoding type rather than a data type. It could be indicated rather after data types. The 3x1 size of required args is uselessly demanding and should be extended (see below). *Present implementation* (patch set 2) function c=cross(a,b) // This function returns the cross product of a and b // (checking input arguments). Then: ) a=[a;a]; b=[b;b]; c=a(2:4).*b(3:5)-b(2:4).*a(3:5); endfunction It is tricky and efficient. 1) Unless willing to stick to the weak implementation of other labs, Scilab's one can be easily vectorized: c = a(2:4,:).*b(3:5,:) - b(2:4,:).*a(3:5,:); 2) About accepted formats for input args, here is a suggestion: - a and b must have the same format. One of their dimensions must be 3. If both dimensions have a size of 3, calculations are done column-wise. Else, calculations are done along the dimension of size 3. - the result r has the same format as a and b (by the way, this is the way Matlab accepts a and b and returns r: if a and b are rows, r is a row). 3) (Option) If hypermatrices are provided, argument tests could be done after applying squeeze() to them. Hypermatices are not rare in physics. This is even rather the rule. Hope to read comments from other potential users Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sun May 12 22:18:23 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 12 May 2013 22:18:23 +0200 Subject: [Scilab-Dev] SEP 95: issquare() Message-ID: <518FF90F.20807@free.fr> Hi, A SEP 95 was recently submitted in CodeReview: https://codereview.scilab.org/cat/11455%2C2%2CSEP/SEP_095_ismatrix_isrow_iscolumn_issquare.odt Despite no input is expected since the SEP has not been posted here (as not foreseen by the SEP#0), here are a few comments about the proposal, for issquare(). Other comments about other proposed functions will be posted in a separated thread. The full rationale says: /These functions are some elementary functions that exist in Matlab to check if a matrix or a // //vector is a matrix, a row, a column or a square matrix / I have already written about the weight of any Matlab-mania. It looks here the main and even single input argument for Scilab Enterprises. Then, i am wondering about what should be the output, and if there is some tacit agreement between both companies. By the way, AFAIK, issquare() is not a native Matlab function. It is only proposed by a matlaber in FileExchange. IMO, the gain of introducing issquare() is very small. The proposed implementation is also very restricted: https://codereview.scilab.org/#/c/11455/2/scilab/modules/elementary_functions/macros/issquare.sci : function r=issquare(v) // (checking input parameters. Then:) if size(size(v),'*') == 1 | size(v,1) ==1 then r = %f; elseif size(v,1) == size(v,2) r=%t; else r=%f; end endfunction *Suggested definition*: issquare(v) should return %T as soon as all non-null dimensions of v (that are not singleton) are equal. For example, this means, for any type of data in matrix or hypermatrix, with dense or sparse encoding: issquare([]) // => %F : this could be conventional issquare(%pi) // => %T: yes, a scalar is a square matrix issquare(emptystr(2,2)) // => %T, as expected issquare(rand(2,1,2)) // => %T, oriented along (x,z) instead of (x,y), but truly square. issquare(rand(2,2,2)) // => %T: a straighforward extension to 3D. // There is no reason to implement specific iscube(), ishypercube().. functions issquare(rand(2,2,3)) // => %F : only cubes accepted issquare(rand(2,2,2,2)) // => %T... While the present implementation disagrees in the following cases: -->issquare([]) ans = T -->issquare(%pi) ans = F -->issquare(rand(2,1,2)) ans = F -->issquare(rand(2,2,3)) ans = T So, what do we do? Here is an alternate implementation, if one is really required: function r =issquare(v) s = size(squeeze(v)) s = s(s>0) // to reject [ ] r = length(unique(s))==1 endfunction To be tested on sparse samples. Since there are here likely hundreds of subscribers, other inputs would be welcome. Designing Scilab should be the matter of all present and forthcoming users. Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon May 13 01:49:35 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 13 May 2013 01:49:35 +0200 Subject: [Scilab-Dev] SEP #95 : ismatrix(), isrow(), iscolumn(), IsAScalar() Message-ID: <51902A8F.9030807@free.fr> Hello, This SEP has been posted under the review https://codereview.scilab.org/#/c/11455/ : https://codereview.scilab.org/cat/11455%2C2%2CSEP/SEP_095_ismatrix_isrow_iscolumn_issquare.odt The case of issquare() is discussed in the separated thread http://mailinglists.scilab.org/SEP-95-issquare-tt4026683.html The full rationale of this SEP says: /These functions are some elementary functions that exist in Matlab to check if a matrix or a // //vector is a matrix, a row, a column or a square matrix / No more comments about this a-priori Matlab worship. About these 4 functions: difficult to me thinking that their implementation is a priority, or even really needed. Let's consider that they could be useful, and start with the most provocative one: *IsAScalar()*: * is replacing size(A,"*")==1withIsAScalar(A)worthwhile?? About it: where are the capitals? I have already forgotten... Happily, there are 5 help maintained pages in en, fr, ru, pt and ja to get them. Ouf. Pushing Scilab on this side, it should finally fall... By the way, won't matlabers -- that are expected to love it -- shout "Is it isscalar(), or something else ?" It would rather deserve a class action against it, wouldn't it? At least. By the way, the posted help page says that IsAScalar() could be applied only to decimals. I agree, it will never be too weak :-) How is it possible to still weaken it? Sorry for this bad mood... For the next 3 functions that are proposed:*isrow(), iscolumn() and ismatrix()*, the following features are discussed: * case of [] : The answer should be conventional: either the answer is %T for the 3 functions, or it is %F for the 3. Matlab answers look unconsistent. They are: isrow([]) => 0 iscolumn([]) => 0 but ismatrix([]) => 1 Could anyone explain how and why, while any other non-empty column or row is detected as a matrix, [] is also claimed to be a matrix() but neither a row nor a column.. The present Scilab implementation gives: isrow([]) => %F iscolumn([]) => %F but ismatrix([]) => %T So, it is Matlab-compatible. It is likely its overal business. * case of a scalar (says %pi): Matlab returns: isrow(pi) => 1 iscolumn(pi) => 1 ismatrix(pi) => 1 I definitely agree with Matlab, despite the Matlab-mania of Scilab is weakening...: isrow(%pi) => %F iscolumn(%pi) => %F ismatrix(%pi) => %F * case of an hypermatrix with singleton dimension(s): - Matlab returns always 0 (false) for any input hypermatrix, for the 3 functions, even when it has singleton dimension, say: ismatrix(rand(2,1,2)) => 0 - This behaviour is debattable. Scilab could be more comprehensive at no expenses: * Here are some suggested implementations (without overhead): function r = ismatrix(A) s = size(squeeze(A)) s = length(s(s>0)) r = s>0 & s<3 endfunction giving: ismatrix([]) // %F ismatrix(%pi) // %T ismatrix([1,1]) // %T ismatrix([1;1]) // %T ismatrix(rand(2,3)) // %T ismatrix(rand(2,3,2)) // %F ismatrix(rand(2,1,3)) // %T function r = isrow(A) s = size(A) s2 = s(find(s(2:$)>=1)) r = s(1)==1 & (length(s2)==1 | prod(s2)==1) endfunction giving: isrow([]) // %F isrow(%pi) // %T isrow([1,1]) // %T isrow([1;1]) // %F isrow(rand(2,3)) // %F isrow(rand(1,3,2)) // %F isrow(rand(1,1,3)) // %T isrow(rand(2,1,1)) // %F and finally: function r = iscolumn(A) s = size(A) r = s(1)>=1 & length(find(s(2:$)>1))==0 endfunction giving: iscolumn([]) // %F iscolumn(%pi) // %T iscolumn([1,1]) // %F iscolumn([1;1]) // %T iscolumn(rand(2,3)) // %F iscolumn(rand(1,1,3)) // %F iscolumn(rand(3,1,1)) // %T Comments of any forthcoming user would be very appreciable. Hope to read them soon, Regards Samuel Gougeon -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at contrib.scilab.org Thu May 16 22:22:24 2013 From: michael.baudin at contrib.scilab.org (michael.baudin at contrib.scilab.org) Date: Thu, 16 May 2013 22:22:24 +0200 Subject: [Scilab-Dev] IEEE rounding modes In-Reply-To: <51883B8B.6070008@Usherbrooke.CA> References: <51883B8B.6070008@Usherbrooke.CA> Message-ID: <281c73590bbac0ad2cfb266bc76064d1@contrib.scilab.org> Hi, No : this is not possible, to my knowledge in Scilab. As far as I know, Matlab has an undocumented function which allows to do this: http://undocumentedmatlab.com/blog/undocumented-feature-function/ But this is undocumented, probably because it is not portable. Do you know another numerical tool where this is possible ? Anyway, if you know of a C source code, portable, which can do this, then please send a message to me. Best regards, Micha?l Le 2013-05-07 01:23, Jean-Pierre Dussault a ?crit?: > Hi all, > > is there a way to specify the IEEE rounding mode (up, down, nearest, > 0) for scilab computations? > > Thx! > > JPD > > _______________________________________________ > dev mailing list > dev at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/dev From ierturk at ieee.org Sat May 18 13:43:10 2013 From: ierturk at ieee.org (ierturk) Date: Sat, 18 May 2013 04:43:10 -0700 (PDT) Subject: [Scilab-Dev] JIMS missing data type jvoid In-Reply-To: References: Message-ID: <1368877390688-4026717.post@n3.nabble.com> on the first try to run function with "jvoid", it works fine, but on the second one, it gives error regarding undefined "jvoid" ierturk -- View this message in context: http://mailinglists.scilab.org/JIMS-missing-data-type-jvoid-tp4026678p4026717.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com. From sgougeon at free.fr Sat May 18 14:09:52 2013 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 18 May 2013 14:09:52 +0200 Subject: [Scilab-Dev] SEP #95 : ismatrix(), isrow(), iscolumn(), IsAScalar() In-Reply-To: <51902A8F.9030807@free.fr> References: <51902A8F.9030807@free.fr> Message-ID: <51976F90.8090404@free.fr> In addition, the suggested implementations work also for arrays of structures or/ and cell(), with unchanged answers. Tests are provided here-below for structures. Other remarks have been posted on bugzilla: http://bugzilla.scilab.org/show_bug.cgi?id=10456#c4 Samuel Gougeon ---------------------------------------------- // Scalar structure clear s s.a = "test"; isscalar(s) isrow(s) iscolumn(s) ismatrix(s) issquare(s) // Column array of structures clear s s(3,1).a = %pi; isscalar(s) isrow(s) iscolumn(s) ismatrix(s) issquare(s) // Row array of structures clear s s(1,3).a = %e; isscalar(s) isrow(s) iscolumn(s) ismatrix(s) issquare(s) // 2D array of structures (not square) clear s s(3,2).a = %z; isscalar(s) isrow(s) iscolumn(s) ismatrix(s) issquare(s) // 3D (cubic) array of structures clear s s(2,2,2).a = %s; isscalar(s) isrow(s) iscolumn(s) ismatrix(s) issquare(s) // 3D array of structures with a singleton dimension (=>square) clear s s(2,1,2).a = %s; isscalar(s) isrow(s) iscolumn(s) ismatrix(s) issquare(s) From peter.senna at gmail.com Wed May 22 14:31:32 2013 From: peter.senna at gmail.com (Peter Senna Tschudin) Date: Wed, 22 May 2013 14:31:32 +0200 Subject: [Scilab-Dev] scilab YaSp on Fedora Message-ID: Are there instructions on how to compile Scilab YaSp on Fedora? There are missing dependencies... -- Peter From sylvestre.ledru at scilab-enterprises.com Wed May 29 16:50:09 2013 From: sylvestre.ledru at scilab-enterprises.com (Sylvestre Ledru) Date: Wed, 29 May 2013 16:50:09 +0200 Subject: [Scilab-Dev] scilab YaSp on Fedora In-Reply-To: References: Message-ID: <51A615A1.4070004@scilab-enterprises.com> Hello, Le 22/05/2013 14:31, Peter Senna Tschudin a ?crit : > Are there instructions on how to compile Scilab YaSp on Fedora? There > are missing dependencies... > Hmm, Scilab being packaged in fedora, I think most of the dependencies are packaged. Which one are missing for you ? Sylvestre From rhamoy at gmail.com Wed May 29 23:46:51 2013 From: rhamoy at gmail.com (Rhandy) Date: Wed, 29 May 2013 14:46:51 -0700 (PDT) Subject: [Scilab-Dev] Project java using javasci, error for call of method scilab.get("") Message-ID: <1369864011200-4026744.post@n3.nabble.com> I started using the Javasci in my project to create a graph with one hundred numbers generated with the Poisson distribution. In my search I've found reference to Scilab and the method grand(m,n,'poi'mu) which creates a matrix: sci.exec("y=grand(10,1,'poi',0.1);"); But when i take the value with ScilabType yoo=sci.get("y") the message shows up: org.scilab.modules.javasci.JavasciException$UndefinedVariableException: Could not find variable 'y' and below this message appears: HDF5: infinite loop closing library A previous error has been detected while loading libscirandlib.so: //scilab-5.4.1/lib/scilab/libscirandlib.so: undefined symbol: pvApiCtx D,T,F,FD,P,FD,P,FD,P,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E I don't have any idea of what the problem is. Can anyone help me? -- View this message in context: http://mailinglists.scilab.org/Project-java-using-javasci-error-for-call-of-method-scilab-get-tp4026744.html Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.