Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: How to make...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 60 of 72 Topic 25415 of 28006
Post > Topic >>

Re: How to make it faster?

by istillshine@[EMAIL PROTECTED] Apr 9, 2008 at 10:52 AM

On Apr 9, 1:19 pm, Hallvard B Furuseth <h.b.furus...@[EMAIL PROTECTED]
>
wrote:
> istillsh...@[EMAIL PROTECTED]
 writes:
> >> Can also get rid of the multiplications with exp0:
> >> Instead of exp1, exp2, x0, ... z2, keep variables
> >> with values (current exp1)/exp0 ... (current z2)/exp0.
>
> > I don't understand this
>
>   exp1 = exp(x->data[0] - 1.0);
>   exp2 = exp(x->data[1] - 1.0);
>   for (i = 0; i < sz; i++) {
>     x0 = g0[i];
>     y0 = f0[i];
>     (no other changes in the loop)
>   }
>
> Variables <exp,x,y,z><0,1,2> now have values (original value / exp0).
> sum and df->data do not change (except due to rounding), since
> they get values (foo/exp0) / (bar/exp0) instead of foo/bar.

Got it.  So smart.
 




 72 Posts in Topic:
How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 10:39:49 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 10:43:03 
Re: How to make it faster?
"Bartc" <bc@  2008-04-07 18:36:53 
Re: How to make it faster?
Wolfgang Draxinger <wd  2008-04-08 01:56:47 
Re: How to make it faster?
"Malcolm McLean"  2008-04-07 18:50:28 
Re: How to make it faster?
Flash Gordon <spam@[EM  2008-04-07 20:32:51 
Re: How to make it faster?
Willem <willem@[EMAIL   2008-04-07 18:03:25 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-07 18:27:45 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-07 15:04:29 
Re: How to make it faster?
jacob navia <jacob@[EM  2008-04-07 22:54:29 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-07 21:39:12 
Re: How to make it faster?
Fei Liu <fei.liu@[EMAI  2008-04-07 17:31:33 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-07 21:34:46 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 15:40:39 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 11:04:45 
Re: How to make it faster?
roberson@[EMAIL PROTECTED  2008-04-08 15:58:13 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 15:46:35 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-07 23:00:23 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-07 23:02:57 
Re: How to make it faster?
Keith Thompson <kst-u@  2008-04-07 21:23:54 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-07 20:31:19 
Re: How to make it faster?
Keith Thompson <kst-u@  2008-04-07 21:30:20 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-08 10:30:26 
Re: How to make it faster?
user923005 <dcorbit@[E  2008-04-07 22:46:43 
Re: How to make it faster?
Richard Heathfield <rj  2008-04-08 06:18:06 
Re: How to make it faster?
Bart <bc@[EMAIL PROTEC  2008-04-08 02:49:03 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 06:07:18 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 06:14:19 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-08 14:42:58 
Re: How to make it faster?
Bart <bc@[EMAIL PROTEC  2008-04-08 06:51:35 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-08 07:25:31 
Re: How to make it faster?
richard@[EMAIL PROTECTED]  2008-04-08 14:51:25 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:47:08 
Re: How to make it faster?
Willem <willem@[EMAIL   2008-04-08 15:51:08 
Re: How to make it faster?
jacob navia <jacob@[EM  2008-04-08 18:16:09 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:53:20 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 12:35:41 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 14:00:33 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:14:56 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:54:49 
Re: How to make it faster?
Flash Gordon <spam@[EM  2008-04-08 18:47:21 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 08:57:11 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 09:00:34 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 10:16:57 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 13:59:57 
Re: How to make it faster?
jacob navia <jacob@[EM  2008-04-08 20:17:06 
Re: How to make it faster?
Bart <bc@[EMAIL PROTEC  2008-04-08 11:26:53 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 14:15:38 
Re: How to make it faster?
Eric Sosman <Eric.Sosm  2008-04-08 17:28:57 
Re: How to make it faster?
Ben Bacarisse <ben.use  2008-04-08 22:30:54 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 15:26:42 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 15:31:31 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-08 15:37:34 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:09:03 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:19:58 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:17:56 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:35:48 
Re: How to make it faster?
Hallvard B Furuseth <h  2008-04-09 19:44:01 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:20:02 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 10:52:44 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-09 11:01:59 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 11:29:25 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 11:44:39 
Re: How to make it faster?
Keith Thompson <kst-u@  2008-04-09 13:42:16 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 11:48:08 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-09 11:50:56 
Re: How to make it faster?
istillshine@[EMAIL PROTEC  2008-04-09 15:51:42 
Re: How to make it faster?
Peter Nilsson <airia@[  2008-04-09 16:20:48 
Re: How to make it faster?
Paul Hsieh <websnarf@[  2008-04-09 16:54:47 
Re: How to make it faster?
"christian.bau"  2008-04-11 15:35:24 
Re: How to make it faster?
"christian.bau"  2008-04-11 15:56:18 
Re: How to make it faster?
user923005 <dcorbit@[E  2008-04-11 18:35:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 10:57:59 CST 2008.