« first day (571 days earlier)      last day (2881 days later) » 

10:53
@excaza hmm, there's a little more to it in Julia, it seems
> You can now do:

X .= f.(2 .* X.^2 .+ 6 .* X.^3 .- sqrt.(X))

and the whole computation will be fused into a single loop, operating in-place, and performance will be comparable to the hand-written “devectorized” loop
"and performance will be comparable to the hand-written “devectorized” loop", while in matlab and numpy the vectorized version is considerably faster due to slow loops
> - What is the overhead of traditional “vectorized” code? Isn’t vectorized code supposed to be fast already?
- Ordinary vectorized code is fast, but not as fast as a hand-written loop (assuming loops are efficiently compiled, as in Julia) because each vectorized operation generates a new temporary array and executes a separate loop, leading to a lot of overhead when multiple vectorized operations are combined.
> For library functions like sqrt, this means that the library authors have to guess at which functions should have vectorized methods, and users have to guess at what vaguely defined subset of library functions work for vectors.
how about documenting stuff?:D
 
7 hours later…
17:30
1 message moved to friendly bin
17:41
is there a way to use imshowpair with more than 2 photo?
17:55
@asys that^ isn't a very good question either
although it's at least clear what the inputs and used function are, I'll give you that
sorry I can't delete neither edit it now
I've got some photo by camera on Matlab. now I wanna show the process of it. they are just some unsaved images that I can show them just with image or imshow
I can plot them with subplot but I wanna show them side by side as it show in "doc imshowpair"
18:11
then read the docs on how they did it obviously
19:06
@AndrasDeak It's self-documenting.

« first day (571 days earlier)      last day (2881 days later) »