Community Profile

David Romero-Antequera


26 total contributions since 2010

I am a Ph. D. Optics student. I have a wife and a son, and much more interested in helping people (even researchers) to compute stuff than proposing new ideas.

Professional Interests: Optics, Numerical Methods

Contact

Contributions in
View by

Posted


ODE Solvers
A simple question... Is any of the ODE solvers provided with Matlab symplectic?

6 years ago | 1477 views

Submitted


Text progress bar for ODEs
A simple text/console progress bar for the builtin ODE solvers

6 years ago | 3 downloads |

Thumbnail

Responded


Re: Speeding up a complex exponential
I have tried this. It is slower than computing the exponential itself.

6 years ago | 2629 views

Posted


Speeding up a complex exponential
Hello, there. I have a code where the slowest part is to compute hundreds of time something like exp(1i*t*D), where t is an sca...

6 years ago | 2629 views

Responded


Re: Really need help to speed up piece of code
You're totally right about these suggestions. Thanks. The thing is that in my first version, I wasn't using an initialization pr...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Well, this is a preliminary version, I still need to check accuracy and stuff. Suggestions and advice are very welcome. functi...

6 years ago | 3672 views

Posted


Really need help to speed up piece of code
THANKS TO EVERYONE. I must say that this discussion have been really helpful, and I reached my goal. Hope this helps somebody el...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
I have to made some more testing, specially to see if I am not compromising the accuracy of the whole computation. However, up t...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Yeah, I realized this. As this is a very special case for this routine only, I've created a new "local" function in the same fil...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Thanks for the suggestion. It was actually even more simple. As I am expecting 1D-vectors or 2D-matrices ONLY, I could replace i...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Thanks for the suggestion. It was actually even more simple. As I am expecting 1D-vectors or 2D-matrices ONLY, I could replace i...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Yes, M is held constant, no t it is not equally spaced. I was thinking about that idea, but it is not clear to me how to choose ...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Thanks for the suggestion (actually, double suggestion) of profile. Here are a piece of the results: SpectralBPM>NLF 139 4.905 ...

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
Probably that is something that I did not mention. Y is a complex valued function. Even if it is not, I do some Fourier transfor...

6 years ago | 3672 views

Posted


Really need help to speed up piece of code
This helped a little. Thanks!

6 years ago | 3672 views

Posted


Really need help to speed up piece of code
Suppresing feval does not do that much for the computing, but it is far more elegant. Thanks!

6 years ago | 3672 views

Responded


Re: Really need help to speed up piece of code
That's something that it is not in my hands. On the other hand, the user provided function, can be something that can't be optim...

6 years ago | 3672 views

Posted


Really need help to speed up piece of code
Actually, it does. It is working, that is for sure. However, I have just modified in order to make it easier to change it to a "...

6 years ago | 3672 views

Posted


Really need help to speed up piece of code
Hello, everyone. I need some suggestion to make the following function faster. function psi=NLF(z,y,funvector,orig_size) end ...

6 years ago | 3672 views

Responded


Re: Install problem: error while loading shared libraries: libXp.so.6
Actually, the solution was pretty lame. Just install the libXp package. emerge libXp Hope this help somebody. Sorry if I misgu...

6 years ago | 12003 views

Posted


Advanced Stop ODEs
Hello! I am integrating a PDE using the ODE solvers from Matlab. The problem is that, as I'm in (2+1)D, the matrices are pretty...

6 years ago | 973 views

Posted


Detecting meshgrids
Hello, I'm working on a program to solve 2D PDEs. I need a technique to detect if a matrix is part of a meshgrid and in wich di...

6 years ago | 1090 views

Submitted


1D Linear BPM
FFT-based Beam Propagation Method for linear operators.

6 years ago | 1 downloads |

Thumbnail

Submitted


Computing refractive index with Sellmeier formula
A totally vectorized function to compute refractive index using Sellmeier formula (BETA version)

6 years ago | 16 downloads |

Thumbnail

Responded


Re: Install problem: error while loading shared libraries: libXp.so.6
Sorry, my bad. It seems that the problem goes a little bit beyond just installation. I can't use MATLAB in 64 bits at all. I wil...

6 years ago | 12003 views

Responded


Re: Install problem: error while loading shared libraries: libXp.so.6
After a while of having no problem with Matlab's university license, when I tried to install in a laptop with broken video card ...

6 years ago | 12003 views