Hello Pierre,
FYI your reported issue is probably not related at all to the matrix printing
in the console. The Xcos simulation engine is kind of a gateway from the Scilab
interpreter point of view (like optim() for instance), let's keep them separate
issues.
Thanks,
--
Clément
>
On my iMac macOS Catalina 10.15.3
Processor Name:Quad-Core Intel Core i7
Processor Speed: 3.1 GHz
Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020;
root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
Should anybody be interested
Heinz
2.107417
0.564745
tic
u = u(:)
Hello,
On another way, see bugzilla #16359 in Xcos
I've provided the program to ESI
Results :
Xcos Scilab 5.5.2 :
Durée de la simulation : 258.3 s
Xcos Sciab 6.1.0 :
Durée de la simulation : 4353.4 s
Stack? Mallloc ?
Regards
Before printing, think about ENVIRONMENTAL responsabity
Hello,
I also ran some tests and it seems that the regression is clearly line-based:
ie the regression is worse for vector than for matrix because there more lines
to print to display a vector than a matrix of similar length.
See my test code below.
n1=300;
n2=100;
mat=rand(n1,n2);
tn=[];
/*
Stéphane,
I simplified and diversified the test:
tic
u = rand(100,1000)
toc
takes
16 s in 6.1
10 s in 6.0.2
tic
u = u(:)'
toc
takes
66 s in 6.1
1.29 s in 6.0.2
tic
u = u(:)
toc
takes
107 s in 6.1
1.52 s in 6.0.2
tic
u = matrix(u,1000,100)
toc
takes
16 s in 6.1
10 s in 6.0.2
tic
u =
Hi Frederico,
Thanks for reporting. Can you test if the regression also holds for
matrices ?
S.
Le 30/03/2020 à 11:56, Federico Miyara a écrit :
Fs = 44100
T = 2.5
t = [0:T*Fs]/Fs;
ximp = exp(-t/0.3).*rand(t,"normal") + 0.004*rand(t,"normal");
tic
ximp = ximp(:)
toc
--