From: Joachim Wesner <joachim.wesner@frankfurt.netsurf.de>
Subject: Re: request for perf improvement suggestions
Date: Thu, 26 Nov 1998 16:48:15 +0100 [thread overview]
Message-ID: <365D783F.2FC425B0@frankfurt.netsurf.de> (raw)
In-Reply-To: <Pine.LNX.3.96.981125155452.6224A-100000@bec.physics.udel.edu>
Stefan Schroepfer wrote:
>
> Jonathan L Dubois wrote:
> >
> > void r12(double *rij,double *x1,double *x2){
> > int i;
> > double tmp1,tmp2;
> >
> > tmp2 = 0;
> > for(i=0;i<3;i++){
> > tmp1 = x1[i]-x2[i];
> > tmp2 += tmp1*tmp1;
> > }
> > tmp2 = sqrt(tmp2);
> > *rij = tmp2;
> > }
>
> - you really need the distance computed every time you call
> this function and not its sqare (an alternative would be
> to do the sqrt () selectively in the calling functions)
>
What also will help is to use the vectorized sqrt functions by Goto
that are in the new version of libffm. Even if initially wanted to
wait for all routines to have full arguments checking in version 0.30, I
now think I should better already release the actual status as, say
0.28. Give me one or two more days, it will be out this weekend.
JW
prev parent reply other threads:[~1998-11-26 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-25 21:15 request for perf improvement suggestions Jonathan L Dubois
1998-11-25 21:44 ` Adam
1998-11-26 9:45 ` Stefan Schroepfer
1998-11-26 15:48 ` Joachim Wesner [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox