Joachim Wesner (joachim.wesner@frankfurt.netsurf.de)
Thu, 26 Nov 1998 16:48:15 +0100
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
This archive was generated by hypermail 2.0b3 on Thu Nov 26 1998 - 22:57:52 EST