On Mon, Oct 12, 2020 at 10:50 AM Hongyi Zhao wrote:
> On Mon, Oct 12, 2020 at 10:41 PM Andrea Gavana
> wrote:
>
> > That is not what I meant: what I meant is: write the time consuming part
> of your code in C or Fortran and then bridge it to Python using Cython or
> f2py.
>
> I understand your m
On Mon, Oct 12, 2020 at 10:41 PM Andrea Gavana wrote:
>
> Hi,
>
> On Mon, 12 Oct 2020 at 16.22, Hongyi Zhao wrote:
>>
>> On Mon, Oct 12, 2020 at 9:33 PM Andrea Gavana
>> wrote:
>> >
>> > Hi,
>> >
>> > On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote:
>> >>
>> >> On Sun, Oct 11, 2020 at 3:42 PM
Hi,
On Mon, 12 Oct 2020 at 16.22, Hongyi Zhao wrote:
> On Mon, Oct 12, 2020 at 9:33 PM Andrea Gavana
> wrote:
> >
> > Hi,
> >
> > On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote:
> >>
> >> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
> >> wrote:
> >> >
> >> > On Sun, Oct 11, 2020 at 9:55 A
On Mon, Oct 12, 2020 at 9:33 PM Andrea Gavana wrote:
>
> Hi,
>
> On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote:
>>
>> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
>> wrote:
>> >
>> > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
>> > wrote:
>> > >
>> > > The script seems to be computing
Hi,
On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote:
> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
> wrote:
> >
> > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
> > wrote:
> > >
> > > The script seems to be computing the particle numbers for an array of
> chemical potentials.
> > >
> >
On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
wrote:
>
> On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
> wrote:
> >
> > The script seems to be computing the particle numbers for an array of
> > chemical potentials.
> >
> > Two ways of speeding it up, both are likely simpler then using dask:
On Sun, Oct 11, 2020 at 2:56 PM Evgeni Burovski
wrote:
>
> The script seems to be computing the particle numbers for an array of
> chemical potentials.
>
> Two ways of speeding it up, both are likely simpler then using dask:
>
> First: use numpy
>
> 1. Move constructing mu_all out of the loop (np
Just remove %%timeit
пн, 12 окт. 2020 г., 5:56 Hongyi Zhao :
> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
> wrote:
> >
> > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
> > wrote:
> > >
> > > The script seems to be computing the particle numbers for an array of
> chemical potentials.
> >
On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
wrote:
>
> On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
> wrote:
> >
> > The script seems to be computing the particle numbers for an array of
> > chemical potentials.
> >
> > Two ways of speeding it up, both are likely simpler then using dask:
вс, 11 окт. 2020 г., 13:31 Hongyi Zhao :
> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
> wrote:
> >
> > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
> > wrote:
> > >
> > > The script seems to be computing the particle numbers for an array of
> chemical potentials.
> > >
> > > Two ways of
On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski
wrote:
>
> On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
> wrote:
> >
> > The script seems to be computing the particle numbers for an array of
> > chemical potentials.
> >
> > Two ways of speeding it up, both are likely simpler then using dask:
On Sun, Oct 11, 2020 at 2:56 PM Evgeni Burovski
wrote:
>
> The script seems to be computing the particle numbers for an array of
> chemical potentials.
>
> Two ways of speeding it up, both are likely simpler then using dask:
What do you mean by saying *dask*?
>
> First: use numpy
>
> 1. Move co
On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski
wrote:
>
> The script seems to be computing the particle numbers for an array of
> chemical potentials.
>
> Two ways of speeding it up, both are likely simpler then using dask:
>
> First: use numpy
>
> 1. Move constructing mu_all out of the loop (np
The script seems to be computing the particle numbers for an array of
chemical potentials.
Two ways of speeding it up, both are likely simpler then using dask:
First: use numpy
1. Move constructing mu_all out of the loop (np.linspace)
2. Arrange the integrands into a 2d array
3. np.trapz along a
On Sun, Oct 11, 2020 at 2:02 PM Andrea Gavana wrote:
>
>
>
> On Sun, 11 Oct 2020 at 07.52, Hongyi Zhao wrote:
>>
>> On Sun, Oct 11, 2020 at 1:33 PM Andrea Gavana
>> wrote:
>> >
>> >
>> >
>> > On Sun, 11 Oct 2020 at 07.14, Andrea Gavana
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> On Sun, 11 Oct 20
On Sun, 11 Oct 2020 at 07.52, Hongyi Zhao wrote:
> On Sun, Oct 11, 2020 at 1:33 PM Andrea Gavana
> wrote:
> >
> >
> >
> > On Sun, 11 Oct 2020 at 07.14, Andrea Gavana
> wrote:
> >>
> >> Hi,
> >>
> >> On Sun, 11 Oct 2020 at 00.27, Hongyi Zhao
> wrote:
> >>>
> >>> On Sun, Oct 11, 2020 at 1:48 AM
On Sun, Oct 11, 2020 at 1:33 PM Andrea Gavana wrote:
>
>
>
> On Sun, 11 Oct 2020 at 07.14, Andrea Gavana wrote:
>>
>> Hi,
>>
>> On Sun, 11 Oct 2020 at 00.27, Hongyi Zhao wrote:
>>>
>>> On Sun, Oct 11, 2020 at 1:48 AM Robert Kern wrote:
>>> >
>>> > You don't need to use vectorize() on fermi(). f
On Sun, 11 Oct 2020 at 07.14, Andrea Gavana wrote:
> Hi,
>
> On Sun, 11 Oct 2020 at 00.27, Hongyi Zhao wrote:
>
>> On Sun, Oct 11, 2020 at 1:48 AM Robert Kern
>> wrote:
>> >
>> > You don't need to use vectorize() on fermi(). fermi() will work just
>> fine on arrays and should be much faster.
>>
Hi,
On Sun, 11 Oct 2020 at 00.27, Hongyi Zhao wrote:
> On Sun, Oct 11, 2020 at 1:48 AM Robert Kern wrote:
> >
> > You don't need to use vectorize() on fermi(). fermi() will work just
> fine on arrays and should be much faster.
>
> Yes, it really does the trick. See the following for the benchma
On Sun, Oct 11, 2020 at 1:48 AM Robert Kern wrote:
>
> You don't need to use vectorize() on fermi(). fermi() will work just fine on
> arrays and should be much faster.
Yes, it really does the trick. See the following for the benchmark
based on your suggestion:
$ time python mu.py
[-10.999 -10.9
You don't need to use vectorize() on fermi(). fermi() will work just fine
on arrays and should be much faster.
On Sat, Oct 10, 2020, 8:23 AM Hongyi Zhao wrote:
> Hi,
>
> My environment is Ubuntu 20.04 and python 3.8.3 managed by pyenv. I
> try to run the script
> <
> https://notebook.rcc.uchicag
21 matches
Mail list logo