Re: [Scilab-users] int2d

2018-02-28 Thread fujimoto2005
Hi Samuel I fixed it as you pointed out and it worked. There was another mistake. I misunderstood the function len () of another language as size () and used it. Was mesh2d internalized? I have not downloaded the Metanet module, but int2d worked fine. I have not used the ATOMS yet, but I will

Re: [Scilab-users] int2d

2018-02-28 Thread Samuel Gougeon
Hello Masahiro, function rt=multNormDensFunc(x_V, m_V, cov_M); I am not sure about the semi-colon... ? [I2,e]=int2d(X,Y,list(multNormDensFunc,[0,0],[1,0;0,1]),[0.0001, 1, 20*20, 4000, 0]) The function expects only one parameter after both 2D operands x_V, m_V, while the list

[Scilab-users] int2d

2018-02-28 Thread fujimoto2005
In order to calculate the expected value of a certain two-variable function, I have created a density function of two-dimensional normal distribution. I created a code like the attached file to check the correctness of the function, but it does not work. Where is the code wrong? I have been

[Scilab-users] hdf5 format and

2018-02-28 Thread paul . carrico
Hi In the following example, I'm digging into the Scilab help pages in order to understand how I can use hdf5 format; nevertheless I'm still wondering how I can have access to the sub-structure (sub-groups and datasets on them) ? (I'm thinking in programming recursive search ...) Thanks

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Stéphane Mottelet
Le 28/02/2018 à 18:48, Samuel Gougeon a écrit : Le 28/02/2018 à 16:30, Stéphane Mottelet a écrit : Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 16:30, Stéphane Mottelet a écrit : Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled macros of a library : in the following code (that can

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
About http://mailinglists.scilab.org/Scilab-users-Scilab-and-hdf5-format-small-survey-tp4037711p4037718.html : Le 28/02/2018 à 14:52, Stéphane Mottelet a écrit : .../... Doing things like this is not possible any more. It was was also to add persistent variables in libraries, with the same

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 17:43, Samuel Gougeon a écrit : Le 28/02/2018 à 17:21, Samuel Gougeon a écrit : On my side, with the following lib file: it is possible to load the library, but then, first issue, only fun2 is reported: --> lib ./ ans = Functions files location : TMPDIR\test.

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 17:21, Samuel Gougeon a écrit : On my side, with the following lib file: it is possible to load the library, but then, first issue, only fun2 is reported: --> lib ./ ans = Functions files location : TMPDIR\test. fun2 And then, also in this case, calling fun2(1)

Re: [Scilab-users] Clone a function, continued

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 16:30, Stéphane Mottelet a écrit : Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled macros of a library : in the following code (that can

[Scilab-users] Clone a function, continued

2018-02-28 Thread Stéphane Mottelet
Thanks Samuel, the problem is that save('macros/%axesData_i_h.bin', '%axesData_i_h') will produce a .sod file with a .bin extension. Both formats cannot be used indifferently for compiled macros of a library : in the following code (that can be copy/pasted), a library is built, the "fun1"

Re: [Scilab-users] clone a function in a library

2018-02-28 Thread Samuel Gougeon
Le 28/02/2018 à 15:17, Samuel Gougeon a écrit : Another way would be to clone the source file with a hard link with your OS. It is possible with Linux. It should be possible with powershell under Windows. With MacOS, i don't know. Likely possible as well. Could you confirm? Then, try genlib()

Re: [Scilab-users] clone a function in a library

2018-02-28 Thread Samuel Gougeon
Another way would be to clone the source file with a hard link with your OS. It is possible with Linux. It should be possible with powershell under Windows. With MacOS, i don't know. Likely possible as well. Could you confirm? Then, try genlib() and see if it considers such a link.. In Linux,

Re: [Scilab-users] clone a function in a library

2018-02-28 Thread Samuel Gougeon
Hello Stéphane, I would try the following: After genlibing the set of regular .sci files, * save the clone with save('macros/%axesData_i_h.bin', "%axesData_i_h") * add a line in the lib file The MD5 hash is of the content of the .sci file, that here does not exist. It is use by genlib to

Re: [Scilab-users] "intg" and i"ntegrate"

2018-02-28 Thread fujimoto2005
Dear Samuel. Thank for your advice. I will fill in a wish report on Bugzilla. Best regards. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org

[Scilab-users] clone a function in a library

2018-02-28 Thread Stéphane Mottelet
Hello, With the new library system, it is no longer possible to clone a function in a library. This feature is still documented in the help page of "lib" but is not working anymore since saving a user-defined scilab function uses the sod/hdf5 format. Maybe one can ask why such a feature is

[Scilab-users] Scilab and hdf5 format (small survey)

2018-02-28 Thread paul . carrico
Hi All I'm playing with hdf5 format into Scilab (I'm currently in an early stage that consists in understanding what the structures are); the goal is to deal with huge amount of data coming from Finite Element Analyses, and to perform additional calculations. I'm wondering if there are a lot