From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <365D783F.2FC425B0@frankfurt.netsurf.de> Date: Thu, 26 Nov 1998 16:48:15 +0100 From: Joachim Wesner Subject: Re: request for perf improvement suggestions In-Reply-To: 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