« first day (520 days earlier)      last day (2703 days later) » 

12:19 AM
@Suever Since you don't always get pings in MATL CHATL:
in MATL CHATL on The Stack Exchange Network Chat, 2 hours ago, by flawr
@Suever Thanks for your online MATL interpreter that allows for graphical output, I just used it for the first time=)
:-D
 
if his name auto-completes, he's pingable (I think this is an iff)
 
1:14 AM
@LuisMendo I actually got pinged on that one! Thanks though :)
 
 
7 hours later…
8:23 AM
@rayryeng yeah! In CT the different batches give a different name to the algorithms. SART, OS-SART, SIRT, being the first one, dimension (variable) by dimension update (stochastic I think), the second one small batches and the last one full batch update. Look at the differences with the same amount of iterations:
surely the stocastic gradient descend takes more time per iteration, but converges also in less iterations
this is just 30 iteration, which is very few for CT
 
9:19 AM
Hi folks!
Long time no see
 
How are you doing?
 
fine :D friday is always good, but cold in the UK
 
Yup
But don't worry it's also cold down there in France
 
yup, it's time to move to the Caribbean and enjoy sunshine everyday
work remote would be good
 
9:29 AM
Or stay here and have an excuse to drink irish coffee
 
9:44 AM
@GameofThrows Do you have the possibility to run some code for me? Just a time trial between 2 solutions (Got calculations running)
 
@BillBokeey Matlab Code? I only have 2010b in office, but yeah, I could run it if you want
I'm not sure timing is the same between 2010b and your version, I think things got a lot faster since 2010, but yeah, I could definitely run if you want
 
Nice, thanks
It's related to this question I asked : stackoverflow.com/questions/40928442/…
Change the loop indexes if you don't want it to take too much time
 
It's fine, should I just run as it is? You just want to timing right? (the tic toc result?)
 
Yeah just that
To know if the difference is significant or not
I don't think so but even a 5% improve would mean a lot on 1 week calculation times
^^
There might be a problem with the fact that A is random (might be ill conditionned)
 
cool, running now on 4 core - i7-4510 2.00GHz*4 - 8GB RAM - Matlab 2010b unix on Ubuntu 16.04
 
9:59 AM
Okay, that's pretty nice as it's comparative with my setup
 
BTW: Warning: Matrix is singular to working precision.
> In Untitled at 25
 
Hmm yeah dammit
 
Dunnow how to create a non singular matrix
hmm
 
Case 2 time per iteration :0.82127
Case 1 time per iteration :0.82481
 
10:01 AM
Doens't seem to be improving it much
I guess i'll stick with my 1 week calculations p^^
 
:D this code could achieve much faster speeds in Hadoop /Spark
 
Yeah but unfortunately I don't get to choose the language :(
Must stick to MATLAB
 
Can you try with the new code I edited
I added a line to force A to be invertible
 
10:15 AM
Thanks :)
 
Case 1 time per iteration :0.40203
Case 2 time per iteration :0.73407
 
Oh damn
lel
That's not what I want :D
 
"Dammit MATLAB, you were the chosen one!!"
 
11:17 AM
oh, its you @BillBokeey
the question about Ax=b
I may be able to help on that
 
11:32 AM
Hey @AnderBiguri
Yeah I know that you work on that topic ^^
Any help would be greaaatly appreciated
But first things first
How are you doing?
 
haha great, thanks :D
I hope you are ok too!
 
Yeah all good!
Friday
Holidays approaching
 
yeah I really need weekend :P
 
How could I not be fine ^^
 
anyway, to the point!
 
11:33 AM
Yup
 
it all depends on A
 
I had already seen the algorithm you showed
 
in your real problem, what are the sizes of A
 
So
My matrix A would be 'almost' symmetrical but not really
Neither triangular nor diagonal
not upper heissenberg
 
well, indepednently on that. Whats its size? and whats its sparsity?
 
11:34 AM
It's quite full (I'd say 70% full)
1700*1700
And not too big
 
yeah, thats full
have you tried gpu array?
 
Isn't it in the parralel computing toolbox?
I don't have it
 
:(
damn
 
I think
How do I check?
 
that will most likely solve your problem
just type ver
if you go and do A=gpuarray(a);b=gpuarray(b); it may just speed up about ~20 times
 
11:36 AM
I don't have access to MATLAB before 4pm neither
Oh really??
 
also, the Pc has to have an NVIDIA gpu
 
Damn
 
let me check with your pseudocode
 
amd graphics card
And not a good one i'm afraid
Our computer mostly have a large amount of ram and good processors
Oh and you might know the answer to an other question I'm asking myself
Basically I'm running time step integration
 
@BillBokeey you dont need a good one
as long its an Nvidia one will do for those sizes
 
11:39 AM
ok
 
the TESLA GPU is slower than some of the laptop GPUs
 
Yeah it's amd radeon card
 
damn
If I replace your second test in your demo by
A=gpuArray(A);
b=gpuArray(b);
tic;

for ii=1:10

      x=A\b;
end
out2=toc;
I get
Case 1 time per iteration :0.011133
Case 2 time per iteration :0.006456
 
Oh wow that would be a 50% gain
 
you may want to get hold a PC with a Nvidia GPU :P
 
11:40 AM
almost
Yeah I can't unfortunately :((((
 
also because its small. At small sizes memory management takes some signiifcant time
@BillBokeey no? not even a laptop?
 
Actually I have to work on the work computer
 
And I manipulate sensible data
Because it's encrypted
 
Ok, for the shake of Stackoverflow, I will add it as answer, but I will also add that I know thats not what you want
 
11:42 AM
Okay go for it, it might help someone else ^^
I have another question aswell
 
I am afraid that if you do not have more information about your matrix, that is about as fast as you will get
 
Okay
 
@BillBokeey go for it
 
Okay
Sooo
I'm basically doing time step integration (Thus the repeated linear systems solving)
 
@AnderBiguri give Tesla or riot!
 
11:48 AM
Actually my question has non sense
nvm
I was about to say that I don't change a lot in the matrix but actually all coefficients might be slightly changed
I'll ask it another way
Do you know if there exists some some of Taylor formulas for linear systems?
some sort of *
 
not sure...
probably your linear system is the first term of a taylor series of whatever thing you are actualyl evaluating
in a way
 
Well it is already
But I need to simulate a non linear effect inside all timesteps
In addition to that
So for now for a given timestep i'll integrate the system until the non linear algortihm converges
Meaning I basically have to invert the system betwenn 5 and 7 times per timestep
Even if the matrix A doesn't change much
 
@BillBokeey I assumed it was non linear, due to that "non symetric" thing
yes, yes you need to
 
Okay
Well I'm out of ideas :(
I guess I'll have to be patient about calculations
^^
 
other ways are completelly avoiding creating the matrix, wich is what I do
My matrix is supposed to simulate a phisical thing
in my case X-ray propagation, but it could be anything
sometimes you can simulate whatever effect without explicitly building a matrix
and sometimes thats faster
 
11:58 AM
Hmm
Do you have a dummy example for that?
I don't know if this would work for me
 
Generally you go:
I have equation b(x)->nonlinearcomplexmaths(x)
And I linearize as Ax=b
sometimes simulating f(x) is faster than computing A
 
hmm
i see
Yeah it wouldn't apply to my case
As we have no idea what that f would be
Are you finishing your phd soon btw?
@AnderBiguri
 
1:02 PM
@BillBokeey september
@BillBokeey you dont need to accept my answer!
if it doesnt work for you, leave it unaccepted with a comment saying that you need a CPU approach
maybe someone else will come with a CPU way of doing it
 
Okay
Oh so you'll be reaching soon the redaction part :/
 
In April I decided
I am finishing "the paper" of my PhD, and If I have time in 3 months, I will try to get a side paper, a small addition to the current one or something like that
then write up!
 
Yup
Good luck for that!
Where are you defending the pdh?
phd*
 
hum... In the UK you defend it in the department you are in
 
Okay (It was the country information I wanted hehe)
 
1:12 PM
Oh, I am at University of Bath
 
Who knows, I might be at a conference around there at that point and I could come drink on your account :D
 
Hahaha there may be!
What is your specfic field?
 
Mechanics (More specifically gear dynamics))
 
Oh, Bath is really good at mechanics
and they do alot of things with gears for mainly automotive stuff, but also general mechanics
A friend of mine is doing a PhD on fault detection in complex gear systems
where moves the gear in specific ways, measures the output of the vibration and can diagnose accuratedly what is faulty in the gear system
 
Lel
I got a friend who is working on the exact same thing here
For aeronautics
 
1:15 PM
hahaha nice
I think my friend works in a generic new method
rather than an application
 
2:01 PM
posted on December 02, 2016 by Jiro Doke

Jiro‘s pick this week is Tabbed Figure by Curtis. Have you ever wanted to visualize a bunch of data so that you can quickly explore through them? Well, that sounds like a pretty standard thing to do in MATLAB. I can easily create plots, perhaps on separate figure windows, or subplots,... read more >>

 
@GameOfThrows lol
is the GPU still faster in your case?
 
or did you just tested the CPU case?
 
I just tested the CPU case
I thought he was looking for CPU case anyways :D
but my GPU sucks compare to yours
 
yes, yes
but my CPU takes 0.01 per iteration :P
 
2:10 PM
what!
how many cores?
 
what I show in my answer is CPU vs GPU
 
Case 2 time per iteration :0.73407
That's on my CPU
how did yours achieve 73x my speed
 
yes, but my case 2 is just case 1 but in GPU
 
ah
but your CPU is faster as well
why is that
 
my CPU is Intel Core i7-4930K @3.4Ghz
its a pretty good CPU
like one of the best XD
(when bought)
 
2:13 PM
ah an 8 core one?
 
yeah I believe
however I dont think MATLAB can use all cores unless I parfor
 
hmmmm..mb it's time for me to get a desktop
donno, parallel optimization with cores is under the hood
 
Yes, but I believe someone in this chat (some of our local pros) did mention in the past that MATLAB uses maximum 2 cores
something like that
 
really? Maybe the older versions? I think 2016 for example - does multi-threading really well and most functions go in parallel
the loop will slow it down, but the time taken per iteration should be quite fast no?
 
If I launch 2 instances of MATLAB it uses all 4 cores though
 
2:18 PM
I think there's a preference for how many cores it can use
 
@Suever huh, how can one set this up?
its a perfect Q&A for SO, btw
 
Hmmm I can't seem to find it in 2015b, I wonder if that was only an option in older ones
you used to be able to check "use multiple cores" etc.
Oh and it may be limited to however many cores are in a physical processor
 
I think I have this in 2010
 
2:35 PM
Yea I don't have all of my older versions on this computer so I can't check it
 
 
1 hour later…
3:44 PM
I like how they still call it massively scalable
 
I like the escort convoy available option, I want my data protected by laser guided missile turrets
screw the 256bit data encryption, we are doing it old fashioned way
 
3:59 PM
@excaza its quite an smart way of solving an interesting problem
 
for sure, it's just the "ship us a hard drive" option on steriods
 
does take 6 months
better than downloading anyways, it'd take tens of years
 
doesn't seem that bad for the scale of data that's being transferred
6 months to completely move a datacenter of that scale seems pretty quick tbh
 
exabytes
yeah those are a lot of road trips XD
I'd like to know in what distances that has been calculated
maybe that time is if you live like 1h drive from the datacenter
 
4:31 PM
0
A: Matlab, Ubuntu: preview and local scope not accessible while debugging nested scripts

FrascoOk, I figured it out. In the function script that I wanted to debug there were definitions of multiple functions. By placing each definition in a separate file the debugger works as fine as usual. I guess that Matlab is not capable of debugging scripts with multiple function definitions because ...

wat
 
@excaza Lol
I bet he's not actually stepping into the other functions and instead just opens the file in the editor
 
It also wouldn't be the first time the debugger has had issues
I remember the variable viewer being broken in R2015b for specific callers
 
Real pros use the command line
Works great
 
One of the regulars was doing something with datatips and I noticed it, if the caller was hgfeval and you stopped your data tip callback in the debugger the variable window wouldn't show anything
my brain can't keep track of command line
I need pretty pictures
I wish I could get the example code from the service request
 
Oh I completely believe there would be issues with hgfeval-invoked functions. In general, callback-ish things are pretty wonky
 
5:09 PM
1
A: Passing information back and forth between multiple figures in GUIDE GUI, Matlab

Mohamed JahirshaU can try using global variables to retrieve handles for all the figures created by assigning handles values to a global variable in a structure format. Global variable persists in memory until you close the figures.

> Global variable persists in memory until you close the figures
oh no
 
5:23 PM
Um. nope
SMH
I really hate how GUIDE hides the data etc. because it really prevents people from understanding where the handles variables lives
 
5:53 PM
there really isn't another way to do it without the OOP approach that wasn't really available when GUIDE started
 
well you could not pass handles and rely on people using guidata(hObject) explicitly
Then they at least realize where to access the data
 
I don't think that's particularly less hidden, since guidata implicitly traverses upwards until it gets to a figure object
though I can't really argue that data sharing in programmatic GUIs is clunky at best, regardless of whether it's GUIDE or not
with OOP more or less on par it's at least a little more sane
but there's a lot of momentum for the old style
 
yea it's pretty brutal I tend to stick to OOP
And actually designing things such that I have independent controls that I pass a data object to
 
well they're forcing it now so we're in luck :)
 
6:10 PM
Is South Park a thing outside 'Murica?
 
very much so
 
Ah, Good to know the meme may not be entirely lost then.
 
6:41 PM
This season of South Park has been so good
Unfortunately they have a lot of material
 
7:10 PM
> I believe I should be using Local Histogram Equalization method for that, but am currently losing me hands and not being able to get anything working.
I'M LOSING ME HANDS
 
hehehe
 
 
3 hours later…
10:43 PM
I laughed with this one. We should invite Gnovice to the chat room
5
A: Hide lines of code in MATLAB

gnovice(wringing hands with evil grin on face) If you really want to mess with people like this, you're going to want to go down the operator overloading route. Come with me on a journey where you will almost certainly shoot yourself in the foot while trying to play a joke on someone else! (lightning ...

I consider inputname uglier than eval. I mean, evaluating a string as code is of course dangerous, but it may make sense sometimes, or at least it may seem to. But to know the caller's workspace variable name?? Why-T-H does a function need to know the name in the caller's workspace? That goes against the very essence of the function paradigm
(which means this answer was even funnier!)
 
:D
 
eval is overrated. Real awful code should use inputname
ìnputname considered ugly
eval's just a wannabe
 
oh, i don't know... any function that can rewrite your entire drive is pretty evil
 
Hm, that's true
But str2num is better at that
More inconspicuous :-)
(I never ^ get to use that word a lot)
Yay! Another MATL answer got accepted
 
hehehe... i like the gif :D
 
10:54 PM
LICEcap :-) Ray's great suggestion
 
24 hours ago, by Andras Deak
evalin('caller',[inputname(1) '=' inputname(1) '*3;']);
:D
 
Ewwww
:-D
> it's very horrible
Indeed!
 
I remember a similar horror I experienced a while back
Mar 27 at 22:47, by Andras Deak
what the actual f*ck
 
Ugly indeed. And scary. How do functions know that?
 
Mar 27 at 23:44, by Andras Deak
Ooooh, the anon function introspection stuff comes from func2str(). It's still crazy
@LuisMendo the existence of inputname suggests that they just do
it's probably MATLAB's version of introspection
except it's not a property of the function, but a property of the function call?
 
11:03 PM
Introspection I never quite got that concept in my little attempts at Java
 
I don't know what func2str does to a named function
@LuisMendo I have a simple picture of it from python:)
I consider it introspection how a python function (explicitly) knows about its arguments, its keyword arguments, etc.
but that's about the function definition, not the function call
maybe that's not introspection at all, dunno
 
>> func2str(@(x,y)x+y)
ans =
@(x,y)x+y
>> func2str(@(a,b)a+b)
ans =
@(a,b)a+b
^ Scary how it know the names
 
yup
 
@AndrasDeak So like Matlab's varargin etc?
 
I think so, yes, in my picture:)
but my naive picture might be completely wrong as I never learned any of this stuff
 
11:06 PM
Ah, that's not bad at all. The ugly thing is when that introspection trespasses workspaces
 
yes, that's not actually introspection, since inputname depends on how you call the same function
introspection makes sense as long as it's about the function itself, inside the function
 
Yes
 
similarly, depending on the internal name of an input argument from the outside would be awful in MATLAB
it's great in python, but the function calling dynamics are entirely different there
the key difference in my opinion is this:
In [23]: def foo(a,b,c):
    ...:     pass
    ...:

In [24]: help(foo)
Help on function foo in module __main__:

foo(a, b, c)
you can always know the signature of a function complete with argument names, unlike MATLAB where it's entirely hidden and up to the dev's discretion to write something in the help that gives you hints
 
Yes, because of Python's calling-by-key (or whatever it's called) as opposed to calling-by-position, right?
 
yeah, you can pass args in order without names, but you can also skip args with default values and only specify certain ones by name (passing kwargs)
and of course you need to know the kwargs in order to do this
 
11:11 PM
kwargs sounds like an expression of disgust :-)
 
3 close votes. Worst net votes. 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 (batch 104) if interested
 
you splat the kwargs;D
heya Drew
 
miseur
 
Hi, Drew
 
greetings :p
 
11:13 PM
@LuisMendo it's what Klingons pick up after their dogs
4
 
Hahaha
Good one!
 
oh, now that looks like a winner of a question title...
 
11:24 PM
Simulink doesn't allow recursion?
 
I stay away from Simulink, and tend to avoid recursion :-D
 
proof by Luis
 
Are you guys familiar with statistics and sequential estimation, by any chance? I need help with terminology
 
Something like RANSAC? Nope.
 
not so much, sorry
 
11:40 PM
 

« first day (520 days earlier)      last day (2703 days later) »