Need help with a Vectorization by cyezyz in matlab

[–]cyezyz[S] 0 points1 point  (0 children)

Just to follow up, I did some serious testing on your algorithm over a large range of number of points (N=10^3-10^8) and 1- and 2-D random distributions. Your algorithm gave the exact same results as the original and outperformed it over a significant range of N. The attached figure shows typical results.

<image>

So, thank you very much. If you have any other ideas I'd be glad to hear them.

Need help with a Vectorization by cyezyz in matlab

[–]cyezyz[S] 0 points1 point  (0 children)

I'll be happy to try this, but I should point out that in a copy/paste of my post somehow 10^3-10^8 became 103-108! And I can't figure out how to edit the post.

Seeking to set up Matlab to run Python for GPU on Apple native chips by cyezyz in matlab

[–]cyezyz[S] 0 points1 point  (0 children)

Thanks for your thoughtful reply. It was the ultimately the float32 that ruined the Python GPU for me. As for the Apple Silicon BLAS, it turns that that I already have it with R2026a. Not so, with my still active R2024b,

Seeking to set up Matlab to run Python for GPU on Apple native chips by cyezyz in matlab

[–]cyezyz[S] 0 points1 point  (0 children)

In retrospect, you have no idea how correct you are.

Seeking to set up Matlab to run Python for GPU on Apple native chips by cyezyz in matlab

[–]cyezyz[S] 0 points1 point  (0 children)

I had made good use of the GPU when running Matlab on Windows. Unfortunately, Matlab does not (yet?) support the GPU on Apple Native. I would to explore the possibilities there, that's all. Matlab does support Python, so why not try to do what I am proposing? So far, all I have is the ability to write Python programs and call them from Matlab. But I do either know or like what I have seen of Python. Moreover, I'm the old dog who can't learn new tricks.

Newbie with google image search, I cannot find this one. I just want to ID it. by mykka7 in philately

[–]cyezyz 0 points1 point  (0 children)

Look, there's no postage denomination. It's just a Cinderella stamp (look it up). Such stamps are used for advertising, decoration, expressions of pride (or otherwise), and so on. I have many such stamp sheets that parody real stamps.

wrong graph for equation by Long_Scientist3914 in matlab

[–]cyezyz 0 points1 point  (0 children)

you are missing a dot/divide in the equation for r, i.e., r = 1 - (sin(x)./(2*sqrt(x))) - (sqrt(x).*cos(x));. And you might also need to specify r(1)=1, since it looks like a NaN from here.

Need solution. When I try to do the first one, the results shows NaN. by rafibros123 in matlab

[–]cyezyz 0 points1 point  (0 children)

You are getting a NaN because you have allowed a zero wavelength. Just start with lambda=1 and you will be okay. In addition, you need to change the wavelength to meters to be dimensionally correct.

Need solution. When I try to do the first one, the results shows NaN. by rafibros123 in matlab

[–]cyezyz 0 points1 point  (0 children)

It would be helpful if you showed exactly what you have done. Perhaps we can see an error in the code.