[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uniform random variable in oct file?
From: |
Paul Kienzle |
Subject: |
Re: uniform random variable in oct file? |
Date: |
Fri, 8 Sep 2006 20:36:38 -0400 |
On Sep 8, 2006, at 8:45 AM, Michael Creel wrote:
I'm using this in the samin.cc code. I have switched to the liboctave
version. The samin_example.m code (in o-f) took about 6.5 seconds to
run on the machine I'm working at, using the old method, and it now
takes about 5.25 seconds (timings are inherently random here). So I'm
guessing that the fact that the call is made many times, and that
caching is working, plus the effect of other overhead, mean that the
speedup in this case is not so high as the theoretical speedup for a
single call. But it is faster and the code is nicer to read. Thanks,
M.
I suspect the objective function is taking a lot of time.
If the random number generator was only taking a fifth of the time
before then speeding it up can only speed up the whole process by a
fifth at best.
Even an oct-file objective function won't solve all your problems since
you will still need to translate values to and from octave values. With
a bit of work you could send a pointer to the underlying C++ function
through octave to the optimizer, but still have the function callable
directly from octave. I did this in Python without too much
difficulty.
- Paul
- uniform random variable in oct file?, Michael Creel, 2006/09/08
- Re: uniform random variable in oct file?, Paul Kienzle, 2006/09/08
- Re: uniform random variable in oct file?, Michael Creel, 2006/09/08
- Re: uniform random variable in oct file?,
Paul Kienzle <=
- Re: uniform random variable in oct file?, michael . creel, 2006/09/09
- Re: uniform random variable in oct file?, Paul Kienzle, 2006/09/09
- Re: uniform random variable in oct file?, Michael Creel, 2006/09/10
- Re: uniform random variable in oct file?, Michael Creel, 2006/09/10
- Re: uniform random variable in oct file?, Paul Kienzle, 2006/09/10
- Re: uniform random variable in oct file?, Michael Creel, 2006/09/11
- Re: uniform random variable in oct file?, John W. Eaton, 2006/09/11
- Re: uniform random variable in oct file?, Michael Creel, 2006/09/11