POV-Ray : Newsgroups : povray.programming : what is quicker ? : Re: what is quicker ? Server Time
5 May 2024 10:58:51 EDT (-0400)
  Re: what is quicker ?  
From: Le Forgeron
Date: 15 Oct 2007 12:21:45
Message: <47139399$1@news.povray.org>
Le 14.10.2007 21:49, Christian Froeschlin nous fit lire :
> 
> If product is 0 and d[i] is 0 you still need to compute z[i]
> using option 1/?

No, in such case, z[i]=1/count of null in d[] | for i where d[i]=0, and
z[j]=0 for everyone else.
Does not really matter, as anyway, at the end, sum of z[] is made to 1.
So, setting z[i]=1 is just fine here.

> 
> That would be a sensible course of action if the
> actual numbers can be very large or very small.
They do.
Thanks you.

-- 
The superior man understands what is right;
the inferior man understands what will sell.
-- Confucius


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.