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,5c1125c290d9dd14 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ANN: Ada 2005 Math Extensions, 20100810 release Date: Sat, 14 Aug 2010 20:16:31 +0100 Organization: A noiseless patient Spider Message-ID: References: <82ocd8m826.fsf@stephe-leake.org> <82sk2ivwa7.fsf@stephe-leake.org> <9b04znr94b2i$.pxsxi24sc9zv.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sat, 14 Aug 2010 19:16:32 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="7644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dOFfL9QIIYN5SXfFv9KHdzpzA8CmUHRI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:uR+RUVhIzQLcyW2Nwlu83QiTwBg= sha1:K7isUmbGMfTIqzQ0r0PQ5k/jlnQ= Xref: g2news1.google.com comp.lang.ada:13296 Date: 2010-08-14T20:16:31+01:00 List-Id: "Dmitry A. Kazakov" writes: > On Sat, 14 Aug 2010 17:26:20 +0100, Simon Wright wrote: > >> Given that, the function taking Complex_Matrix and returning >> Complex_Vector has "obviously" to be in a child of >> Generic_Complex_Arrays. >> >> So I thought that the function taking Real_Matrix should be in a child >> of Generic_Real_Arrays, in spite of the fact it returns a Complex_Vector. >> >> Clearly this is not the way Nature intended! > > Hmm, a complex valued function is complex to me. Consider exp(jwt). The > argument is real t, the result is complex. Where does it belong? I think maybe I'll meet Stephe halfway: Ada.Numerics.Generic_Arrays! Another problem, of course .. Ada 2017 might implement something in this space.