From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,db88d0444fafe8eb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe7-gui.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: Surprise in array concatenation User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.ada References: <1125544603.561847.32140@g47g2000cwa.googlegroups.com> <1125610942.747981.280770@f14g2000cwb.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Mon, 05 Sep 2005 11:29:07 GMT NNTP-Posting-Host: 80.4.127.115 X-Complaints-To: http://www.ntlworld.com/netreport X-Trace: newsfe7-gui.ntli.net 1125919747 80.4.127.115 (Mon, 05 Sep 2005 12:29:07 BST) NNTP-Posting-Date: Mon, 05 Sep 2005 12:29:07 BST Organization: ntl Cablemodem News Service Xref: g2news1.google.com comp.lang.ada:4437 Date: 2005-09-05T11:29:07+00:00 List-Id: On Mon, 05 Sep 2005 10:34:01 +0200, Jean-Pierre Rosen wrote: > Jacob Sparre Andersen a �crit : > >>>The values are integral multiples of small, which can be supplied by >>>the user. So I'd expect to be able to use fixed point types as >>>array indices etc. You cant :( Wouldn't fixed point be *much* more >>>useful if it was discrete? >> > That's the view of the solution space. The view of the problem space is > that they are a different approximation of real numbers (floating point > values being the other one). And you can't index an array with real > values, whether float or fixed. Yes it is a solution space view. The point that I was making was that there were straightforward implementations available to compilers. The view of the problem space is that an array indexed by a real value represents an arbitrary univariate function. I use these "all the time" in generating probability density estimates. And also for lookup of complicated functions. The example of computing histograms from Jacob is closely related. So I'm slightly surprised to hear you say you can't index an array with real value (approximations). -- Adrian